Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 89.06 kB / 17.29 MB, free: 6.359 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.001157/0.001156, allocations: 174.4 kB / 18.21 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 1.82/1.82, 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.0006892/0.0006895, allocations: 12 kB / 281.4 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1238, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004888/0.1288, allocations: 3.552 MB / 332.5 MB, free: 204 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003239/0.1321, allocations: 1.326 MB / 333.8 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003385/0.1325, allocations: 7.938 kB / 333.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008545/0.1334, allocations: 227.2 kB / 334.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006185/0.134, allocations: 226.7 kB / 334.3 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000707/0.1347, allocations: 227.6 kB / 334.5 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007717/0.1355, allocations: 0.6812 MB / 335.2 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.1358, allocations: 145.7 kB / 335.3 MB, free: 13.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003987/0.1362, allocations: 247 kB / 335.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000345/0.1365, allocations: 270.7 kB / 335.8 MB, free: 12.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.516e-05/0.1366, allocations: 24 kB / 335.9 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001968/0.1368, allocations: 59.98 kB / 335.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.137, allocations: 127.4 kB / 336.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002882/0.1373, allocations: 292.2 kB / 336.3 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007166/0.138, allocations: 0.6499 MB / 337 MB, free: 11.7 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.138, allocations: 0 / 337 MB, free: 11.7 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.138, allocations: 0 / 337 MB, free: 11.7 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.138, allocations: 0 / 337 MB, free: 11.7 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001591/0.1396, allocations: 0.8597 MB / 337.8 MB, free: 10.78 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.1397, allocations: 8.031 kB / 337.9 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.1398, allocations: 64.19 kB / 337.9 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006053/0.1404, allocations: 406.8 kB / 338.3 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.386e-05/0.1405, allocations: 29.38 kB / 338.3 MB, free: 10.24 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.25e-05/0.1406, allocations: 44.12 kB / 338.4 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007589/0.1413, allocations: 445.5 kB / 338.8 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1414, allocations: 0 / 338.8 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.828e-05/0.1414, allocations: 16 kB / 338.8 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1414, allocations: 8 kB / 338.8 MB, free: 9.719 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006296/0.1421, allocations: 323.8 kB / 339.2 MB, free: 9.402 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.1446, allocations: 1.718 MB / 340.9 MB, free: 7.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000707/0.1453, allocations: 367 kB / 341.2 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.1456, allocations: 192.2 kB / 341.4 MB, free: 7.035 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.1457, allocations: 7.938 kB / 341.4 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004515/0.1461, allocations: 266.4 kB / 341.7 MB, free: 6.738 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 1.883e-06/0.1462, allocations: 0 / 341.7 MB, free: 6.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.00227/0.1484, allocations: 1.032 MB / 342.7 MB, free: 5.613 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.1486, allocations: 187.9 kB / 342.9 MB, free: 5.387 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006944/0.1493, allocations: 0.4902 MB / 343.4 MB, free: 4.879 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.427e-05/0.1493, allocations: 37.7 kB / 343.4 MB, free: 4.836 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.1496, allocations: 260.4 kB / 343.7 MB, free: 4.578 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.1497, allocations: 126.2 kB / 343.8 MB, free: 4.453 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.839e-05/0.1498, allocations: 37.7 kB / 343.8 MB, free: 4.41 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.15, allocations: 362.7 kB / 344.2 MB, free: 4.047 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.1502, allocations: 120.8 kB / 344.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.1506, allocations: 217.2 kB / 344.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004722/0.151, allocations: 281.3 kB / 344.8 MB, free: 3.395 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1511, allocations: 0 / 344.8 MB, free: 3.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008216/0.1519, allocations: 476.8 kB / 345.3 MB, free: 2.91 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1519, allocations: 8 kB / 345.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.1519, allocations: 0 / 345.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000507/0.1524, allocations: 163.4 kB / 345.4 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/0.1527, allocations: 43.97 kB / 345.5 MB, free: 2.688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004872/0.1576, allocations: 5.97 MB / 351.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.158, allocations: 63.59 kB / 351.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.158, allocations: 8 kB / 351.5 MB, free: 12.11 MB / 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: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002944/0.1583, allocations: 197.3 kB / 351.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.379e-05/0.1584, allocations: 55.38 kB / 351.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.1586, allocations: 60.75 kB / 351.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/0.1586, allocations: 4 kB / 351.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1586, allocations: 3.938 kB / 351.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1586, allocations: 4.125 kB / 351.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005253/0.1591, allocations: 493 kB / 352.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1591, allocations: 0 / 352.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.1593, allocations: 31.92 kB / 352.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004099/0.1597, allocations: 159.3 kB / 352.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.1597, allocations: 8 kB / 352.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004414/0.1642, allocations: 5.8 MB / 358.3 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1642, allocations: 8 kB / 358.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009889/0.1652, allocations: 0.515 MB / 358.8 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001879/0.1654, allocations: 160.4 kB / 359 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.446e-05/0.1655, allocations: 8 kB / 359 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.1658, allocations: 35.97 kB / 359 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.1659, allocations: 55.92 kB / 359.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.1659, allocations: 8 kB / 359.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004032/0.1663, allocations: 363.1 kB / 359.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1664, allocations: 0 / 359.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007921/0.1672, allocations: 171.7 kB / 359.6 MB, free: 3.355 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001109/0.1683, allocations: 425.2 kB / 360 MB, free: 2.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.1695, allocations: 0.7992 MB / 360.8 MB, free: 2.094 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1695, allocations: 4.125 kB / 360.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006823/0.1702, allocations: 0.6509 MB / 361.5 MB, free: 1.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006095/0.1708, allocations: 117.7 kB / 361.6 MB, free: 1.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.1728, allocations: 1.184 MB / 362.8 MB, free: 64 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.1732, allocations: 0.8593 MB / 363.7 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000188/0.1734, allocations: 48.17 kB / 363.7 MB, free: 15.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.923e-05/0.1735, allocations: 35.42 kB / 363.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1735, allocations: 0 / 363.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of Templates: time 0.01611/0.1896, allocations: 8.694 MB / 372.4 MB, free: 6.387 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches