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.001033/0.001033, allocations: 99.28 kB / 17.3 MB, free: 6.344 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.00139/0.00139, allocations: 177.5 kB / 18.2 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0005886/0.0005886, allocations: 12 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1433, allocations: 47.58 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003778/0.1472, allocations: 2.565 MB / 331.5 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.1489, allocations: 0.7411 MB / 332.3 MB, free: 444 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.1491, allocations: 4 kB / 332.3 MB, free: 440 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.1493, allocations: 35.69 kB / 332.3 MB, free: 404 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.1495, allocations: 87.31 kB / 332.4 MB, free: 316 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.1499, allocations: 87.88 kB / 332.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.1503, allocations: 394.3 kB / 332.9 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.1506, allocations: 111.9 kB / 333 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.1508, allocations: 123.4 kB / 333.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002023/0.151, allocations: 135.3 kB / 333.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.596e-05/0.1511, allocations: 16 kB / 333.2 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.217e-05/0.1511, allocations: 20 kB / 333.3 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.916e-05/0.1512, allocations: 55.7 kB / 333.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.1514, allocations: 176.9 kB / 333.5 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004151/0.1518, allocations: 390.8 kB / 333.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1518, allocations: 0 / 333.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1518, allocations: 0 / 333.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.1518, allocations: 0 / 333.9 MB, free: 14.82 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.00111/0.1529, allocations: 0.574 MB / 334.4 MB, free: 14.19 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.153, allocations: 12.03 kB / 334.4 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.819e-05/0.1531, allocations: 36.56 kB / 334.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.1535, allocations: 287.5 kB / 334.8 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.1535, allocations: 20.94 kB / 334.8 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.573e-05/0.1536, allocations: 28.31 kB / 334.8 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005609/0.1542, allocations: 292.9 kB / 335.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.1542, allocations: 0 / 335.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.1542, allocations: 12 kB / 335.1 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.1543, allocations: 4 kB / 335.1 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004278/0.1547, allocations: 214.1 kB / 335.3 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.1567, allocations: 1.164 MB / 336.5 MB, free: 12.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005625/0.1572, allocations: 222.6 kB / 336.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.1576, allocations: 148.7 kB / 336.9 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1576, allocations: 4 kB / 336.9 MB, free: 11.63 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003443/0.158, allocations: 170.6 kB / 337 MB, free: 11.44 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.158, allocations: 4 kB / 337 MB, free: 11.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001549/0.1595, allocations: 0.5147 MB / 337.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.1596, allocations: 136.5 kB / 337.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.16, allocations: 240.9 kB / 337.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.16, allocations: 33.69 kB / 337.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.1602, allocations: 176.5 kB / 338.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.257e-05/0.1602, allocations: 67 kB / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.147e-05/0.1603, allocations: 29.7 kB / 338.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1605, allocations: 334.8 kB / 338.5 MB, free: 9.832 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.1607, allocations: 79.91 kB / 338.6 MB, free: 9.754 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.1609, allocations: 117.1 kB / 338.7 MB, free: 9.621 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.1612, allocations: 175.3 kB / 338.9 MB, free: 9.438 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1612, allocations: 0 / 338.9 MB, free: 9.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005639/0.1618, allocations: 298.1 kB / 339.2 MB, free: 9.137 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.1619, allocations: 4 kB / 339.2 MB, free: 9.133 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.1619, allocations: 0 / 339.2 MB, free: 9.133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000426/0.1623, allocations: 96.73 kB / 339.3 MB, free: 9.035 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.1624, allocations: 31.92 kB / 339.3 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002707/0.1652, allocations: 1.944 MB / 341.3 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.1655, allocations: 35.77 kB / 341.3 MB, free: 6.891 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1655, allocations: 8 kB / 341.3 MB, free: 6.883 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.0002489/0.1657, allocations: 157.8 kB / 341.5 MB, free: 6.719 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.765e-05/0.1658, allocations: 27.7 kB / 341.5 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.058e-05/0.1659, allocations: 26.19 kB / 341.5 MB, free: 6.664 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1659, allocations: 7.938 kB / 341.5 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1659, allocations: 0 / 341.5 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.882e-06/0.1659, allocations: 3.984 kB / 341.5 MB, free: 6.652 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.1671, allocations: 0.7771 MB / 342.3 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.1671, allocations: 0 / 342.3 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.1672, allocations: 27.92 kB / 342.3 MB, free: 5.785 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002705/0.1675, allocations: 89.06 kB / 342.4 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.1675, allocations: 11.94 kB / 342.4 MB, free: 5.684 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002259/0.1698, allocations: 1.944 MB / 344.4 MB, free: 3.609 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1698, allocations: 0 / 344.4 MB, free: 3.609 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007157/0.1705, allocations: 460.8 kB / 344.8 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.1707, allocations: 116.8 kB / 344.9 MB, free: 3.004 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.63e-05/0.1707, allocations: 8 kB / 344.9 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.1709, allocations: 23.92 kB / 345 MB, free: 2.973 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.1711, allocations: 32.05 kB / 345 MB, free: 2.941 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.1711, allocations: 15.94 kB / 345 MB, free: 2.926 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002108/0.1713, allocations: 172.5 kB / 345.2 MB, free: 2.758 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1713, allocations: 4 kB / 345.2 MB, free: 2.754 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005234/0.1719, allocations: 91.78 kB / 345.3 MB, free: 2.664 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.000171/0.172, allocations: 103.2 kB / 345.4 MB, free: 2.551 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007473/0.1728, allocations: 362.3 kB / 345.7 MB, free: 2.184 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1728, allocations: 0 / 345.7 MB, free: 2.184 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000395/0.1732, allocations: 262.5 kB / 346 MB, free: 1.914 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.1737, allocations: 52.66 kB / 346 MB, free: 1.863 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.1754, allocations: 0.7424 MB / 346.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007581/0.1762, allocations: 0.7751 MB / 347.6 MB, free: 304 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.1763, allocations: 18.39 kB / 347.6 MB, free: 284 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.763e-05/0.1764, allocations: 23.38 kB / 347.6 MB, free: 260 kB / 286.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1764, allocations: 0 / 347.6 MB, free: 260 kB / 286.1 MB Notification: Performance of Templates: time 0.01039/0.1868, allocations: 4.414 MB / 352 MB, free: 11.85 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