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.001098/0.001098, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.001552/0.001552, allocations: 182 kB / 17.56 MB, free: 6.203 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.581/1.581, allocations: 223.3 MB / 241.6 MB, free: 136 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003057, allocations: 7.938 kB / 301.4 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1149, allocations: 50.42 MB / 351.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004487/0.1194, allocations: 3.586 MB / 355.4 MB, free: 92 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.1219, allocations: 1.391 MB / 356.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.1222, allocations: 11.94 kB / 356.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007435/0.1229, allocations: 223.2 kB / 357 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004832/0.1234, allocations: 230.7 kB / 357.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006091/0.124, allocations: 247.6 kB / 357.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00067/0.1247, allocations: 0.6812 MB / 358.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002899/0.125, allocations: 161.7 kB / 358.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002957/0.1253, allocations: 239 kB / 358.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003128/0.1256, allocations: 270.8 kB / 358.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.1257, allocations: 24 kB / 358.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.1259, allocations: 67.92 kB / 358.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.126, allocations: 111.5 kB / 359 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002735/0.1263, allocations: 296.1 kB / 359.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006218/0.1269, allocations: 0.6538 MB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1269, allocations: 0 / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1269, allocations: 0 / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.127, allocations: 4 kB / 360 MB, free: 11.49 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.001445/0.1284, allocations: 0.848 MB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.1284, allocations: 8.031 kB / 360.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.1286, allocations: 72.09 kB / 360.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005314/0.1291, allocations: 402.8 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.1292, allocations: 33.36 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.907e-05/0.1292, allocations: 44.12 kB / 361.4 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.13, allocations: 441.6 kB / 361.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.13, allocations: 3.938 kB / 361.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.294e-05/0.1301, allocations: 16 kB / 361.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1301, allocations: 12 kB / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005958/0.1307, allocations: 315.8 kB / 362.2 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002397/0.1331, allocations: 1.722 MB / 363.9 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006752/0.1338, allocations: 366.9 kB / 364.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003244/0.1341, allocations: 189.4 kB / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.1342, allocations: 11.94 kB / 364.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004313/0.1346, allocations: 262.3 kB / 364.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/0.1346, allocations: 0 / 364.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002194/0.1368, allocations: 1.033 MB / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.1369, allocations: 199.8 kB / 365.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005805/0.1375, allocations: 0.4901 MB / 366.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.1376, allocations: 41.7 kB / 366.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.1378, allocations: 248.5 kB / 366.7 MB, free: 4.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.1379, allocations: 118.3 kB / 366.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-05/0.138, allocations: 49.69 kB / 366.9 MB, free: 4.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.1382, allocations: 354.8 kB / 367.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.1384, allocations: 120.8 kB / 367.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003313/0.1388, allocations: 217.3 kB / 367.5 MB, free: 3.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004956/0.1393, allocations: 277.1 kB / 367.8 MB, free: 3.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.1393, allocations: 3.984 kB / 367.8 MB, free: 3.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008414/0.1402, allocations: 484.7 kB / 368.3 MB, free: 2.703 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.1402, allocations: 4 kB / 368.3 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1402, allocations: 4.094 kB / 368.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004976/0.1407, allocations: 155.3 kB / 368.4 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.1409, allocations: 43.91 kB / 368.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2232/0.3641, allocations: 5.959 MB / 374.4 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005167/0.3647, allocations: 65.17 kB / 374.5 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.3647, allocations: 12.41 kB / 374.5 MB, free: 20.66 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.0003553/0.3651, allocations: 193.4 kB / 374.7 MB, free: 20.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-05/0.3652, allocations: 51.41 kB / 374.8 MB, free: 20.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001343/0.3653, allocations: 60.17 kB / 374.8 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3653, allocations: 6.625 kB / 374.8 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.3653, allocations: 1.562 kB / 374.8 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3654, allocations: 1.828 kB / 374.8 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006235/0.366, allocations: 493.1 kB / 375.3 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.366, allocations: 2.062 kB / 375.3 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.3662, allocations: 37.3 kB / 375.3 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004639/0.3666, allocations: 157.1 kB / 375.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.3667, allocations: 7.531 kB / 375.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004061/0.3707, allocations: 5.809 MB / 381.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3708, allocations: 0.5 kB / 381.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009577/0.3717, allocations: 0.5145 MB / 381.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.3719, allocations: 159.5 kB / 382 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.003e-05/0.372, allocations: 7.766 kB / 382 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/0.3723, allocations: 42.47 kB / 382 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.3724, allocations: 50.72 kB / 382.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.425e-05/0.3725, allocations: 17.97 kB / 382.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004731/0.3729, allocations: 358.6 kB / 382.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.373, allocations: 3.938 kB / 382.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008077/0.3738, allocations: 169.3 kB / 382.6 MB, free: 14.66 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.0009834/0.3748, allocations: 429 kB / 383 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.3758, allocations: 0.8068 MB / 383.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3759, allocations: 0 / 383.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006238/0.3765, allocations: 0.6593 MB / 384.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.3771, allocations: 116.4 kB / 384.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.3791, allocations: 1.161 MB / 385.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.3794, allocations: 0.864 MB / 386.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001967/0.3797, allocations: 51.38 kB / 386.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.464e-05/0.3797, allocations: 34.64 kB / 386.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3797, allocations: 0 / 386.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Templates: time 0.01647/0.3962, allocations: 8.671 MB / 395.4 MB, free: 9.184 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