Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 81.97 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 168.5 kB / 25.61 MB, free: 8.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9722/0.9722, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.394e-05/1.554e-05, allocations: 4.031 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.003733/0.003749, allocations: 3.926 MB / 278.1 MB, free: 488 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.005364, allocations: 1.571 MB / 279.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.005533, allocations: 11.94 kB / 279.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005558/0.006089, allocations: 262.7 kB / 280 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000393/0.006482, allocations: 306 kB / 280.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000339/0.006821, allocations: 279.1 kB / 280.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004622/0.007283, allocations: 0.7395 MB / 281.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.007455, allocations: 117.5 kB / 281.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005862/0.008041, allocations: 411 kB / 281.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.008263, allocations: 243.3 kB / 282 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.001e-05/0.008313, allocations: 48 kB / 282.1 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.008454, allocations: 107.9 kB / 282.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.008557, allocations: 155.4 kB / 282.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.008688, allocations: 199.5 kB / 282.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004015/0.00909, allocations: 0.5176 MB / 283 MB, free: 11.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.009091, allocations: 0 / 283 MB, free: 11.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.009092, allocations: 0 / 283 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.009098, allocations: 4 kB / 283 MB, free: 11.53 MB / 266.7 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.0009246/0.01002, allocations: 0.9808 MB / 284 MB, free: 10.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.01005, allocations: 15.97 kB / 284 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.01021, allocations: 112.5 kB / 284.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.01054, allocations: 367 kB / 284.5 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.01057, allocations: 29.38 kB / 284.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.0106, allocations: 40.38 kB / 284.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003401/0.01094, allocations: 438.1 kB / 285 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.01095, allocations: 7.938 kB / 285 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.01098, allocations: 16 kB / 285 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.01099, allocations: 12 kB / 285 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.01115, allocations: 134.8 kB / 285.2 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.01241, allocations: 1.606 MB / 286.8 MB, free: 7.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.0127, allocations: 259.6 kB / 287 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.01281, allocations: 103.6 kB / 287.1 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.01283, allocations: 4 kB / 287.1 MB, free: 7.215 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002222/0.01305, allocations: 328.7 kB / 287.5 MB, free: 6.832 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.493e-06/0.01305, allocations: 0 / 287.5 MB, free: 6.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009046/0.01396, allocations: 0.556 MB / 288 MB, free: 6.254 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.01401, allocations: 166.1 kB / 288.2 MB, free: 6.055 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005245/0.01454, allocations: 450.4 kB / 288.6 MB, free: 5.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.01456, allocations: 33.7 kB / 288.7 MB, free: 5.562 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.0147, allocations: 327.3 kB / 289 MB, free: 5.238 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.358e-05/0.01476, allocations: 126.9 kB / 289.1 MB, free: 5.113 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.019e-05/0.01484, allocations: 79.81 kB / 289.2 MB, free: 5.027 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.01497, allocations: 0.5429 MB / 289.7 MB, free: 4.473 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.327e-05/0.01503, allocations: 44.97 kB / 289.8 MB, free: 4.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001494/0.01518, allocations: 286.9 kB / 290 MB, free: 4.074 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.01534, allocations: 168.6 kB / 290.2 MB, free: 3.895 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.01535, allocations: 0 / 290.2 MB, free: 3.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0003216/0.01567, allocations: 348.3 kB / 290.5 MB, free: 3.531 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.01568, allocations: 4 kB / 290.5 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.01569, allocations: 4 kB / 290.6 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.01592, allocations: 130.6 kB / 290.7 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.01604, allocations: 51.91 kB / 290.7 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003792/0.01984, allocations: 8.137 MB / 298.9 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.02, allocations: 47.77 kB / 298.9 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.02001, allocations: 8 kB / 298.9 MB, free: 10.69 MB / 282.7 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.0001211/0.02013, allocations: 190.5 kB / 299.1 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.734e-05/0.02019, allocations: 63.67 kB / 299.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004332/0.02062, allocations: 380.2 kB / 299.5 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.02063, allocations: 4 kB / 299.5 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.71e-07/0.02063, allocations: 0 / 299.5 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.02063, allocations: 7.984 kB / 299.6 MB, free: 10.03 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002416/0.02087, allocations: 284.8 kB / 299.8 MB, free: 9.723 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.02088, allocations: 3.984 kB / 299.8 MB, free: 9.719 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-05/0.02095, allocations: 27.98 kB / 299.9 MB, free: 9.691 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002066/0.02115, allocations: 138.6 kB / 300 MB, free: 9.539 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.02117, allocations: 11.98 kB / 300 MB, free: 9.527 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003054/0.02422, allocations: 7.669 MB / 307.7 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.02422, allocations: 0 / 307.7 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004024/0.02463, allocations: 414 kB / 308.1 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.904e-05/0.02472, allocations: 87.56 kB / 308.2 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.02476, allocations: 15.98 kB / 308.2 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.02489, allocations: 23.98 kB / 308.2 MB, free: 0.832 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.952e-05/0.02498, allocations: 55.89 kB / 308.3 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.025, allocations: 12 kB / 308.3 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001606/0.02516, allocations: 287 kB / 308.6 MB, free: 496 kB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02516, allocations: 0 / 308.6 MB, free: 496 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004679/0.02563, allocations: 171.8 kB / 308.7 MB, free: 324 kB / 282.7 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,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * 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.0007892/0.02642, allocations: 408.9 kB / 309.1 MB, free: 52 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005828/0.027, allocations: 0.9051 MB / 310 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.027, allocations: 0 / 310 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006438/0.02765, allocations: 0.8267 MB / 310.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.02798, allocations: 124.3 kB / 311 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.0293, allocations: 0.88 MB / 311.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.212e-05/0.02938, allocations: 134.4 kB / 312 MB, free: 12.99 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000103/0.02949, allocations: 43.33 kB / 312 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.02969, allocations: 174.1 kB / 312.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02969, allocations: 0 / 312.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of Templates: time 0.01415/0.04384, allocations: 9.984 MB / 322.2 MB, free: 2.945 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1478566201403737]