Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001353, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002099/0.002099, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.668/1.668, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.42 kB / 307 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1464, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005655/0.1521, allocations: 2.938 MB / 360.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002105/0.1542, allocations: 0.7985 MB / 361.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.1545, allocations: 11.94 kB / 361.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.1547, allocations: 51.52 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.1549, allocations: 99.05 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.1554, allocations: 115.8 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004671/0.1559, allocations: 410.4 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/0.1562, allocations: 131.2 kB / 362.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003166/0.1565, allocations: 159.4 kB / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.1568, allocations: 167.3 kB / 362.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.926e-05/0.1569, allocations: 36 kB / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.157, allocations: 40 kB / 362.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.784e-05/0.1571, allocations: 79.7 kB / 362.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.1573, allocations: 175.2 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00057/0.1579, allocations: 430.8 kB / 363.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1579, allocations: 0 / 363.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1579, allocations: 0 / 363.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.1579, allocations: 0 / 363.1 MB, free: 8.461 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.00132/0.1592, allocations: 0.6284 MB / 363.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.1593, allocations: 8.031 kB / 363.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002393/0.1595, allocations: 44.55 kB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.16, allocations: 284.7 kB / 364.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/0.16, allocations: 28.88 kB / 364.1 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.324e-05/0.1601, allocations: 24.38 kB / 364.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005923/0.1607, allocations: 300.7 kB / 364.4 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1607, allocations: 0 / 364.4 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.1608, allocations: 12 kB / 364.4 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.1608, allocations: 4 kB / 364.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004411/0.1612, allocations: 202.2 kB / 364.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.1632, allocations: 1.152 MB / 365.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006142/0.1638, allocations: 214.6 kB / 366 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.1642, allocations: 144.8 kB / 366.1 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.1642, allocations: 4 kB / 366.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004384/0.1646, allocations: 174.1 kB / 366.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.104e-06/0.1647, allocations: 3.938 kB / 366.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001533/0.1662, allocations: 0.5146 MB / 366.8 MB, free: 4.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.1663, allocations: 136.5 kB / 367 MB, free: 4.336 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.1667, allocations: 241 kB / 367.2 MB, free: 4.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.1667, allocations: 33.73 kB / 367.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.1669, allocations: 176.3 kB / 367.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.7e-05/0.167, allocations: 59.11 kB / 367.5 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1671, allocations: 53.61 kB / 367.5 MB, free: 3.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1673, allocations: 334.8 kB / 367.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.1674, allocations: 71.97 kB / 367.9 MB, free: 3.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.1676, allocations: 129.1 kB / 368 MB, free: 3.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/0.168, allocations: 165 kB / 368.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.168, allocations: 0 / 368.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005445/0.1685, allocations: 298 kB / 368.5 MB, free: 2.734 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.1686, allocations: 11.22 kB / 368.5 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1686, allocations: 4 kB / 368.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003892/0.169, allocations: 92.8 kB / 368.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.1692, allocations: 27.92 kB / 368.6 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003033/0.1722, allocations: 2.135 MB / 370.8 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.1725, allocations: 39.83 kB / 370.8 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.1726, allocations: 7.984 kB / 370.8 MB, free: 284 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002917/0.1729, allocations: 151.4 kB / 371 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-05/0.1729, allocations: 27.66 kB / 371 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.462e-05/0.173, allocations: 34.28 kB / 371 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.173, allocations: 3.938 kB / 371 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1731, allocations: 0 / 371 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1731, allocations: 4 kB / 371 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2637/0.4368, allocations: 0.7654 MB / 371.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.4368, allocations: 5.344 kB / 371.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.437, allocations: 18.3 kB / 371.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003227/0.4373, allocations: 87.44 kB / 371.9 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.4373, allocations: 7.703 kB / 371.9 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002021/0.4394, allocations: 2.147 MB / 374.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.4394, allocations: 0.5156 kB / 374.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007243/0.4401, allocations: 470 kB / 374.5 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.4402, allocations: 118.7 kB / 374.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.082e-05/0.4403, allocations: 6.391 kB / 374.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.4405, allocations: 23.3 kB / 374.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.4406, allocations: 28.77 kB / 374.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.4407, allocations: 8.859 kB / 374.7 MB, free: 18.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.4409, allocations: 175.4 kB / 374.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4409, allocations: 0.5625 kB / 374.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005343/0.4414, allocations: 91.59 kB / 375 MB, free: 17.95 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001581/0.4416, allocations: 111.3 kB / 375.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007275/0.4423, allocations: 365.9 kB / 375.4 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4423, allocations: 0.75 kB / 375.4 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004123/0.4427, allocations: 266.7 kB / 375.7 MB, free: 17.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.4432, allocations: 61.11 kB / 375.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.4444, allocations: 0.5984 MB / 376.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.4446, allocations: 0.7645 MB / 377.1 MB, free: 16.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.4448, allocations: 22.19 kB / 377.1 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.599e-05/0.4448, allocations: 26.62 kB / 377.2 MB, free: 16.42 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4448, allocations: 0 / 377.2 MB, free: 16.42 MB / 302.1 MB Notification: Performance of Templates: time 0.0123/0.4571, allocations: 4.855 MB / 382 MB, free: 16.12 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches