Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 96.39 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 52.3 kB / 280.6 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1402, allocations: 46.63 MB / 327.3 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.006183/0.1465, allocations: 2.878 MB / 330.2 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.1487, allocations: 0.7604 MB / 330.9 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005181/0.1493, allocations: 7.938 kB / 330.9 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.1497, allocations: 51.5 kB / 331 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004705/0.1502, allocations: 95.12 kB / 331.1 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.1507, allocations: 103.8 kB / 331.2 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006914/0.1514, allocations: 410.2 kB / 331.6 MB, free: 152 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.1518, allocations: 131.2 kB / 331.7 MB, free: 24 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003651/0.1521, allocations: 151.6 kB / 331.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003621/0.1525, allocations: 167.2 kB / 332 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.494e-05/0.1526, allocations: 36 kB / 332 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.263e-05/0.1527, allocations: 40 kB / 332.1 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.603e-05/0.1528, allocations: 71.77 kB / 332.2 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.153, allocations: 179.2 kB / 332.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005525/0.1536, allocations: 426.7 kB / 332.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1536, allocations: 0 / 332.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.679e-06/0.1536, allocations: 4 kB / 332.8 MB, free: 14.97 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.1537, allocations: 3.984 kB / 332.8 MB, free: 14.96 MB / 286.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.001445/0.1551, allocations: 0.6129 MB / 333.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.754e-05/0.1552, allocations: 8.031 kB / 333.4 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.1553, allocations: 36.56 kB / 333.4 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005254/0.1558, allocations: 291.5 kB / 333.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.1559, allocations: 20.94 kB / 333.7 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.664e-05/0.156, allocations: 24.38 kB / 333.7 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006046/0.1566, allocations: 296.8 kB / 334 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1566, allocations: 0 / 334 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.1567, allocations: 12 kB / 334 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1567, allocations: 4 kB / 334 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004367/0.1571, allocations: 206.1 kB / 334.2 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.1592, allocations: 1.156 MB / 335.4 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006199/0.1598, allocations: 218.6 kB / 335.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003745/0.1602, allocations: 148.8 kB / 335.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.1603, allocations: 0 / 335.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004183/0.1607, allocations: 170.6 kB / 335.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.1607, allocations: 0 / 335.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001608/0.1623, allocations: 0.5146 MB / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.1624, allocations: 136.5 kB / 336.6 MB, free: 10.87 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002991/0.1627, allocations: 244.9 kB / 336.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.1628, allocations: 33.73 kB / 336.8 MB, free: 10.58 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.1629, allocations: 168.4 kB / 337 MB, free: 10.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.22e-05/0.163, allocations: 71 kB / 337.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.1632, allocations: 49.7 kB / 337.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1633, allocations: 334.8 kB / 337.5 MB, free: 9.953 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.1635, allocations: 67.97 kB / 337.5 MB, free: 9.887 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1637, allocations: 125.1 kB / 337.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.164, allocations: 167.3 kB / 337.8 MB, free: 9.57 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.164, allocations: 0 / 337.8 MB, free: 9.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005263/0.1646, allocations: 298 kB / 338.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.1646, allocations: 11.92 kB / 338.1 MB, free: 9.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1646, allocations: 0 / 338.1 MB, free: 9.258 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003654/0.165, allocations: 88.75 kB / 338.2 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.1651, allocations: 31.98 kB / 338.2 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0029/0.168, allocations: 2.146 MB / 340.4 MB, free: 6.848 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.1683, allocations: 27.92 kB / 340.4 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.1684, allocations: 16 kB / 340.4 MB, free: 6.805 MB / 286.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.0002246/0.1686, allocations: 142.6 kB / 340.6 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.723e-05/0.1687, allocations: 31.64 kB / 340.6 MB, free: 6.625 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.455e-05/0.1688, allocations: 26.19 kB / 340.6 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1688, allocations: 4 kB / 340.6 MB, free: 6.594 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1688, allocations: 4 kB / 340.6 MB, free: 6.59 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.1688, allocations: 3.984 kB / 340.6 MB, free: 6.586 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.17, allocations: 0.7763 MB / 341.4 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.1701, allocations: 112 / 341.4 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.1702, allocations: 27.86 kB / 341.4 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003371/0.1705, allocations: 88.8 kB / 341.5 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.1706, allocations: 4.031 kB / 341.5 MB, free: 5.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002807/0.1734, allocations: 2.142 MB / 343.7 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1734, allocations: 64 / 343.7 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007705/0.1742, allocations: 456.8 kB / 344.1 MB, free: 2.879 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.1744, allocations: 120.8 kB / 344.2 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.288e-05/0.1744, allocations: 4 kB / 344.2 MB, free: 2.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.1746, allocations: 24.05 kB / 344.3 MB, free: 2.715 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.1748, allocations: 35.89 kB / 344.3 MB, free: 2.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.1748, allocations: 4 kB / 344.3 MB, free: 2.676 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002417/0.1751, allocations: 176.5 kB / 344.5 MB, free: 2.504 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.1751, allocations: 0 / 344.5 MB, free: 2.504 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005688/0.1756, allocations: 99.69 kB / 344.6 MB, free: 2.406 MB / 286.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.0002504/0.1759, allocations: 111.2 kB / 344.7 MB, free: 2.285 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009041/0.1768, allocations: 358.3 kB / 345 MB, free: 1.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1768, allocations: 96 / 345 MB, free: 1.922 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005683/0.1774, allocations: 270.4 kB / 345.3 MB, free: 1.645 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005158/0.1779, allocations: 58.3 kB / 345.3 MB, free: 1.59 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.1793, allocations: 0.6064 MB / 345.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.1797, allocations: 0.7674 MB / 346.7 MB, free: 164 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.1799, allocations: 22.28 kB / 346.7 MB, free: 144 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.18, allocations: 23.42 kB / 346.8 MB, free: 120 kB / 286.1 MB Notification: Performance of SimCode: time 3.8e-07/0.18, allocations: 0 / 346.8 MB, free: 120 kB / 286.1 MB Notification: Performance of Templates: time 0.01274/0.1927, allocations: 4.839 MB / 351.6 MB, free: 11.29 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches