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.001231/0.001231, allocations: 108.7 kB / 17.16 MB, free: 6.305 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.001434/0.001434, allocations: 198 kB / 18.07 MB, free: 5.41 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.508/1.508, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001233/0.001233, allocations: 51.91 kB / 280 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1279, allocations: 46.63 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005853/0.1338, allocations: 2.932 MB / 329.5 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.1358, allocations: 0.7488 MB / 330.3 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004714/0.1363, allocations: 7.938 kB / 330.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000401/0.1368, allocations: 31.77 kB / 330.3 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005008/0.1373, allocations: 91.23 kB / 330.4 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004316/0.1378, allocations: 87.94 kB / 330.5 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000601/0.1384, allocations: 386.2 kB / 330.9 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000273/0.1387, allocations: 111.9 kB / 331 MB, free: 500 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.1389, allocations: 131.5 kB / 331.1 MB, free: 368 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.1391, allocations: 155.2 kB / 331.3 MB, free: 212 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.13e-05/0.1391, allocations: 20 kB / 331.3 MB, free: 192 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.23e-05/0.1392, allocations: 20 kB / 331.3 MB, free: 172 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.576e-05/0.1393, allocations: 59.75 kB / 331.4 MB, free: 112 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002075/0.1395, allocations: 163.2 kB / 331.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004093/0.1399, allocations: 410.8 kB / 331.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1399, allocations: 0 / 331.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1399, allocations: 0 / 331.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.14, allocations: 0 / 331.9 MB, free: 15.55 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.001141/0.1411, allocations: 0.6168 MB / 332.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.1412, allocations: 12.03 kB / 332.5 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.737e-05/0.1412, allocations: 32.56 kB / 332.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.1416, allocations: 291.5 kB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.1417, allocations: 20.94 kB / 332.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.885e-05/0.1417, allocations: 24.38 kB / 332.9 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005114/0.1422, allocations: 296.8 kB / 333.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1422, allocations: 0 / 333.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.1423, allocations: 8 kB / 333.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1423, allocations: 8 kB / 333.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004034/0.1427, allocations: 206.1 kB / 333.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.1446, allocations: 1.156 MB / 334.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.1452, allocations: 226.6 kB / 334.8 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003135/0.1455, allocations: 136.8 kB / 334.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.1455, allocations: 7.938 kB / 334.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003815/0.1459, allocations: 174.6 kB / 335.1 MB, free: 12.14 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.252e-06/0.1459, allocations: 0 / 335.1 MB, free: 12.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001435/0.1474, allocations: 0.5146 MB / 335.6 MB, free: 11.6 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.1475, allocations: 128.5 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.1477, allocations: 244.9 kB / 336 MB, free: 11.2 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.1478, allocations: 33.7 kB / 336 MB, free: 11.16 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1479, allocations: 164.4 kB / 336.2 MB, free: 10.99 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.27e-05/0.148, allocations: 75 kB / 336.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.348e-05/0.1481, allocations: 45.7 kB / 336.3 MB, free: 10.87 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1482, allocations: 334.8 kB / 336.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.1484, allocations: 71.97 kB / 336.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.1486, allocations: 121.1 kB / 336.8 MB, free: 10.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.1489, allocations: 171.3 kB / 337 MB, free: 10.14 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1489, allocations: 0 / 337 MB, free: 10.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004965/0.1495, allocations: 298 kB / 337.3 MB, free: 9.844 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1495, allocations: 8 kB / 337.3 MB, free: 9.836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1495, allocations: 0 / 337.3 MB, free: 9.836 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003411/0.1498, allocations: 92.89 kB / 337.4 MB, free: 9.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.15, allocations: 27.92 kB / 337.4 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.1522, allocations: 1.948 MB / 339.3 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/0.1524, allocations: 27.83 kB / 339.4 MB, free: 7.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.1524, allocations: 12.06 kB / 339.4 MB, free: 7.594 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.0001554/0.1526, allocations: 149.8 kB / 339.5 MB, free: 7.438 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.15e-05/0.1526, allocations: 23.72 kB / 339.5 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.634e-05/0.1527, allocations: 30.17 kB / 339.6 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.1527, allocations: 7.938 kB / 339.6 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1527, allocations: 4 kB / 339.6 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1527, allocations: 0 / 339.6 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009715/0.1537, allocations: 0.7693 MB / 340.4 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1537, allocations: 0 / 340.4 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.1538, allocations: 27.86 kB / 340.4 MB, free: 6.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000264/0.1541, allocations: 92.84 kB / 340.5 MB, free: 6.418 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.1541, allocations: 4 kB / 340.5 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/0.1562, allocations: 1.932 MB / 342.4 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1562, allocations: 0 / 342.4 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006775/0.1569, allocations: 460.9 kB / 342.9 MB, free: 3.879 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.1571, allocations: 120.8 kB / 343 MB, free: 3.742 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.1571, allocations: 4 kB / 343 MB, free: 3.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.1573, allocations: 24.05 kB / 343 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.1575, allocations: 31.95 kB / 343 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.1575, allocations: 7.984 kB / 343 MB, free: 3.676 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001744/0.1577, allocations: 176.6 kB / 343.2 MB, free: 3.504 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.903e-06/0.1577, allocations: 3.938 kB / 343.2 MB, free: 3.5 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.1581, allocations: 99.72 kB / 343.3 MB, free: 3.402 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.000163/0.1583, allocations: 107.2 kB / 343.4 MB, free: 3.285 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006749/0.159, allocations: 350.4 kB / 343.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.159, allocations: 0 / 343.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003923/0.1594, allocations: 266.7 kB / 344 MB, free: 2.656 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.1599, allocations: 44.73 kB / 344.1 MB, free: 2.613 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.1613, allocations: 0.7106 MB / 344.8 MB, free: 1.875 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.1617, allocations: 0.7674 MB / 345.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.1618, allocations: 26.28 kB / 345.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.1619, allocations: 19.44 kB / 345.6 MB, free: 1.039 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1619, allocations: 0 / 345.6 MB, free: 1.039 MB / 286.1 MB Notification: Performance of Templates: time 0.008683/0.1706, allocations: 4.466 MB / 350.1 MB, free: 12.58 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches