Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009789/0.0009789, allocations: 99.36 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001096, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.7 MB / 246.4 MB, free: 9.793 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002534/0.0002534, allocations: 4 kB / 307.1 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1426, allocations: 51.52 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004201/0.1468, allocations: 3.543 MB / 362.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.1486, allocations: 1.021 MB / 363.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.1488, allocations: 11.94 kB / 363.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.149, allocations: 59.52 kB / 363.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/0.1493, allocations: 154.7 kB / 363.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003735/0.1497, allocations: 143.8 kB / 363.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006328/0.1503, allocations: 0.7275 MB / 364.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/0.1506, allocations: 140.1 kB / 364.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003423/0.1509, allocations: 251.1 kB / 364.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003528/0.1513, allocations: 302.7 kB / 365 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.413e-05/0.1514, allocations: 36 kB / 365 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.1515, allocations: 40 kB / 365 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.1516, allocations: 111.5 kB / 365.1 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.1517, allocations: 125.5 kB / 365.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005214/0.1522, allocations: 0.639 MB / 365.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1522, allocations: 0 / 365.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1522, allocations: 4 kB / 365.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1523, allocations: 0 / 365.9 MB, free: 6.094 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002253/0.1545, allocations: 1.015 MB / 366.9 MB, free: 5.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1546, allocations: 12.03 kB / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002056/0.1548, allocations: 75.23 kB / 367 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004875/0.1553, allocations: 401 kB / 367.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.1553, allocations: 25 kB / 367.4 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-05/0.1554, allocations: 43.95 kB / 367.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.1567, allocations: 0.642 MB / 368.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.1568, allocations: 7.938 kB / 368.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.575e-05/0.1568, allocations: 8 kB / 368.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.1568, allocations: 19.92 kB / 368.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001825/0.1587, allocations: 0.7299 MB / 368.9 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.162, allocations: 2.215 MB / 371.1 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2225/0.3846, allocations: 1.028 MB / 372.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.386, allocations: 450 kB / 372.6 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.494e-05/0.386, allocations: 6.25 kB / 372.6 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001257/0.3873, allocations: 484 kB / 373 MB, free: 18.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.084e-06/0.3873, allocations: 0 / 373 MB, free: 18.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0143/0.4016, allocations: 2.797 MB / 375.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.4017, allocations: 90.73 kB / 375.9 MB, free: 18.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005978/0.4023, allocations: 415.2 kB / 376.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/0.4024, allocations: 34.64 kB / 376.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.4026, allocations: 236.8 kB / 376.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.4027, allocations: 132.3 kB / 376.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.4027, allocations: 5.156 kB / 376.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.591e-05/0.4028, allocations: 355.9 kB / 377.1 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009213/0.4037, allocations: 346.3 kB / 377.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.4048, allocations: 388.5 kB / 377.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009663/0.4057, allocations: 365.4 kB / 378.2 MB, free: 17.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4058, allocations: 4 kB / 378.2 MB, free: 17.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002709/0.4085, allocations: 1.015 MB / 379.2 MB, free: 17.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.4085, allocations: 32.67 kB / 379.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.4085, allocations: 3.844 kB / 379.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.4099, allocations: 491.8 kB / 379.7 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004859/0.4104, allocations: 104.4 kB / 379.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007965/0.4183, allocations: 3.709 MB / 383.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006821/0.419, allocations: 121.2 kB / 383.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.4191, allocations: 10.81 kB / 383.6 MB, free: 15.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003087/0.4194, allocations: 174.7 kB / 383.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.582e-05/0.4195, allocations: 51.16 kB / 383.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.4196, allocations: 61.08 kB / 383.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.4197, allocations: 3.188 kB / 383.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.4197, allocations: 1.062 kB / 383.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.4197, allocations: 2.672 kB / 383.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008375/0.4205, allocations: 0.6143 MB / 384.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4205, allocations: 0 / 384.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000495/0.421, allocations: 99.19 kB / 384.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001336/0.4224, allocations: 486.4 kB / 385.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.291e-05/0.4224, allocations: 12.62 kB / 385.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007444/0.4299, allocations: 3.692 MB / 388.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4299, allocations: 2.312 kB / 388.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005666/0.4356, allocations: 1.723 MB / 390.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.4359, allocations: 182.3 kB / 390.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.92e-05/0.436, allocations: 12.38 kB / 390.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005345/0.4365, allocations: 104.4 kB / 390.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.4367, allocations: 51.22 kB / 390.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.136e-05/0.4367, allocations: 11.81 kB / 390.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003657/0.4371, allocations: 292 kB / 391.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4371, allocations: 0 / 391.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007257/0.4379, allocations: 182.5 kB / 391.3 MB, free: 10.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001615/0.438, allocations: 105.3 kB / 391.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002617/0.4407, allocations: 1.064 MB / 392.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.4407, allocations: 3.25 kB / 392.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.4421, allocations: 0.656 MB / 393.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005226/0.4427, allocations: 88.05 kB / 393.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.4456, allocations: 1.51 MB / 394.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.4459, allocations: 0.8442 MB / 395.6 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002309/0.4462, allocations: 47.08 kB / 395.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.4463, allocations: 31.05 kB / 395.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4463, allocations: 0 / 395.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of Templates: time 0.01719/0.4635, allocations: 12.48 MB / 408.2 MB, free: 11.9 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches