Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001362/0.001363, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001474/0.001474, allocations: 189.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009851/0.0009851, allocations: 46.83 kB / 300.1 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1323, allocations: 49.44 MB / 349.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.007277/0.1397, allocations: 3.996 MB / 353.6 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003759/0.1435, allocations: 1.41 MB / 355 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005282/0.1441, allocations: 7.938 kB / 355 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.1452, allocations: 223.2 kB / 355.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000878/0.1461, allocations: 230.7 kB / 355.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.1472, allocations: 253.9 kB / 355.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.1482, allocations: 0.7047 MB / 356.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004168/0.1486, allocations: 185.1 kB / 356.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004912/0.1492, allocations: 279 kB / 356.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004623/0.1496, allocations: 302.7 kB / 357.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.1498, allocations: 52 kB / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003409/0.1501, allocations: 91.97 kB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.1503, allocations: 151.4 kB / 357.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002598/0.1506, allocations: 298.5 kB / 357.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007214/0.1514, allocations: 0.6929 MB / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1514, allocations: 3.938 kB / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1514, allocations: 0 / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1514, allocations: 0 / 358.4 MB, free: 11.91 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001612/0.153, allocations: 0.9374 MB / 359.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.1531, allocations: 8.031 kB / 359.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.1532, allocations: 64.19 kB / 359.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005029/0.1537, allocations: 406.8 kB / 359.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.1537, allocations: 33.38 kB / 359.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.1538, allocations: 40.12 kB / 359.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008136/0.1546, allocations: 441.5 kB / 360.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.1547, allocations: 4 kB / 360.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.092e-05/0.1547, allocations: 23.94 kB / 360.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.1547, allocations: 8 kB / 360.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006425/0.1554, allocations: 307.8 kB / 360.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.1578, allocations: 1.718 MB / 362.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007121/0.1585, allocations: 366.9 kB / 362.7 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003259/0.1588, allocations: 184.8 kB / 362.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.1589, allocations: 4 kB / 362.9 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000456/0.1594, allocations: 258.5 kB / 363.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.913e-06/0.1594, allocations: 0 / 363.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00229/0.1617, allocations: 1.01 MB / 364.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.1618, allocations: 203.8 kB / 364.4 MB, free: 5.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005575/0.1624, allocations: 0.4901 MB / 364.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.1624, allocations: 37.7 kB / 364.9 MB, free: 5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.1626, allocations: 256.4 kB / 365.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.738e-05/0.1627, allocations: 114.4 kB / 365.3 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.1629, allocations: 82.03 kB / 365.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.163, allocations: 362.8 kB / 365.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.1633, allocations: 124.8 kB / 365.8 MB, free: 4.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003125/0.1636, allocations: 209.3 kB / 366 MB, free: 3.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005087/0.1642, allocations: 277.1 kB / 366.3 MB, free: 3.539 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1642, allocations: 0 / 366.3 MB, free: 3.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008275/0.165, allocations: 484.7 kB / 366.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.165, allocations: 4.094 kB / 366.8 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.165, allocations: 7.938 kB / 366.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005189/0.1656, allocations: 159.4 kB / 366.9 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.1658, allocations: 43.92 kB / 367 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.256/0.4218, allocations: 6.643 MB / 373.6 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005488/0.4224, allocations: 56.52 kB / 373.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.4225, allocations: 12.75 kB / 373.7 MB, free: 21.25 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.0003121/0.4228, allocations: 193 kB / 373.9 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.222e-05/0.4229, allocations: 54.16 kB / 373.9 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.423, allocations: 61.98 kB / 374 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.423, allocations: 4.031 kB / 374 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.423, allocations: 0.9844 kB / 374 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-06/0.4231, allocations: 2.016 kB / 374 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006691/0.4237, allocations: 491.3 kB / 374.5 MB, free: 20.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.4237, allocations: 3.938 kB / 374.5 MB, free: 20.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.4239, allocations: 31.91 kB / 374.5 MB, free: 20.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004643/0.4244, allocations: 159.7 kB / 374.7 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/0.4244, allocations: 8.141 kB / 374.7 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004163/0.4286, allocations: 6.362 MB / 381 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.4286, allocations: 3.094 kB / 381 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.4297, allocations: 0.5041 MB / 381.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.4299, allocations: 155.7 kB / 381.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.427e-05/0.43, allocations: 12.81 kB / 381.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.4303, allocations: 29.17 kB / 381.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.4305, allocations: 54.14 kB / 381.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.4306, allocations: 7.719 kB / 381.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006416/0.4312, allocations: 362.3 kB / 382.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4312, allocations: 0 / 382.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009813/0.4322, allocations: 168.8 kB / 382.3 MB, free: 14.38 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.001277/0.4335, allocations: 445 kB / 382.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.435, allocations: 0.8232 MB / 383.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.435, allocations: 1.562 kB / 383.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007321/0.4357, allocations: 0.6528 MB / 384.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006833/0.4364, allocations: 117 kB / 384.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.4389, allocations: 1.146 MB / 385.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.4394, allocations: 0.8573 MB / 386.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000281/0.4397, allocations: 52.58 kB / 386.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.4398, allocations: 34.56 kB / 386.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4398, allocations: 0 / 386.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Templates: time 0.02373/0.4636, allocations: 9.297 MB / 395.7 MB, free: 8.625 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches