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.0007752/0.0007752, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.0008892/0.0008892, allocations: 170.4 kB / 24.91 MB, free: 8.719 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.9687/0.9687, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.432e-06/1.432e-06, allocations: 0 / 273.5 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.016e-05/2.159e-05, allocations: 2.312 kB / 273.5 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.003905/0.003927, allocations: 3.967 MB / 277.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002128/0.006054, allocations: 1.624 MB / 279.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.006246, allocations: 11.94 kB / 279.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005691/0.006816, allocations: 254.7 kB / 279.4 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004526/0.007268, allocations: 309.9 kB / 279.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004281/0.007696, allocations: 275.1 kB / 279.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000535/0.008231, allocations: 0.7395 MB / 280.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.008406, allocations: 122.1 kB / 280.8 MB, free: 9.887 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003857/0.008792, allocations: 415 kB / 281.2 MB, free: 9.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.009022, allocations: 239.3 kB / 281.4 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.98e-05/0.009072, allocations: 52 kB / 281.5 MB, free: 9.195 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.009229, allocations: 107.9 kB / 281.6 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.718e-05/0.009327, allocations: 151.4 kB / 281.7 MB, free: 8.941 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.009465, allocations: 207.5 kB / 281.9 MB, free: 8.738 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.009892, allocations: 0.5176 MB / 282.5 MB, free: 8.219 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.009894, allocations: 4 kB / 282.5 MB, free: 8.215 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.009895, allocations: 0 / 282.5 MB, free: 8.215 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.009902, allocations: 0 / 282.5 MB, free: 8.215 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.0008298/0.01073, allocations: 0.8561 MB / 283.3 MB, free: 7.328 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.01076, allocations: 8.031 kB / 283.3 MB, free: 7.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.01091, allocations: 84.86 kB / 283.4 MB, free: 7.238 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.01123, allocations: 316.2 kB / 283.7 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.01125, allocations: 33.38 kB / 283.7 MB, free: 6.867 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.279e-05/0.01128, allocations: 40.38 kB / 283.8 MB, free: 6.828 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.01162, allocations: 430.8 kB / 284.2 MB, free: 6.359 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.01163, allocations: 3.938 kB / 284.2 MB, free: 6.355 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.01165, allocations: 16 kB / 284.2 MB, free: 6.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.01166, allocations: 12 kB / 284.2 MB, free: 6.328 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.01181, allocations: 121.7 kB / 284.4 MB, free: 6.211 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001066/0.01287, allocations: 1.219 MB / 285.6 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002658/0.01314, allocations: 282.3 kB / 285.8 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.627e-05/0.01324, allocations: 84.77 kB / 285.9 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.01326, allocations: 11.75 kB / 285.9 MB, free: 4.543 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.01349, allocations: 308 kB / 286.2 MB, free: 4.188 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.342e-06/0.01349, allocations: 0 / 286.2 MB, free: 4.188 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.000725/0.01422, allocations: 477.1 kB / 286.7 MB, free: 3.703 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/0.01428, allocations: 170.2 kB / 286.9 MB, free: 3.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.01451, allocations: 392.8 kB / 287.3 MB, free: 3.105 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.01454, allocations: 37.7 kB / 287.3 MB, free: 3.062 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.01462, allocations: 213.6 kB / 287.5 MB, free: 2.852 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.969e-05/0.01468, allocations: 130.9 kB / 287.6 MB, free: 2.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.542e-05/0.01476, allocations: 78.11 kB / 287.7 MB, free: 2.641 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.101e-05/0.01485, allocations: 362.7 kB / 288.1 MB, free: 2.277 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.648e-05/0.01491, allocations: 43.81 kB / 288.1 MB, free: 2.234 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.01503, allocations: 253.5 kB / 288.4 MB, free: 1.926 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.01517, allocations: 162.8 kB / 288.5 MB, free: 1.754 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.01518, allocations: 0 / 288.5 MB, free: 1.754 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0002633/0.01544, allocations: 275.3 kB / 288.8 MB, free: 1.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.01545, allocations: 4 kB / 288.8 MB, free: 1.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.01545, allocations: 4 kB / 288.8 MB, free: 1.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002132/0.01567, allocations: 119.3 kB / 288.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.01578, allocations: 60 kB / 289 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1063/0.1221, allocations: 5.519 MB / 294.5 MB, free: 19.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.1224, allocations: 47.73 kB / 294.5 MB, free: 19.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.1224, allocations: 11.3 kB / 294.5 MB, free: 19.67 MB / 266.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.0001587/0.1226, allocations: 149.1 kB / 294.7 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.243e-05/0.1226, allocations: 43.67 kB / 294.7 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004466/0.1231, allocations: 311.7 kB / 295 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1231, allocations: 3.812 kB / 295 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.1231, allocations: 3.938 kB / 295 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1231, allocations: 3.234 kB / 295 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.1234, allocations: 250.9 kB / 295.3 MB, free: 19.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1234, allocations: 1 kB / 295.3 MB, free: 19.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.917e-05/0.1235, allocations: 36.84 kB / 295.3 MB, free: 19.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002448/0.1237, allocations: 114.1 kB / 295.4 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.1238, allocations: 7.734 kB / 295.4 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001924/0.1257, allocations: 5.247 MB / 300.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1257, allocations: 0 / 300.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004576/0.1261, allocations: 327.8 kB / 301 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.65e-05/0.1262, allocations: 57.7 kB / 301.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.1263, allocations: 10 kB / 301.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.1264, allocations: 31.39 kB / 301.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.1265, allocations: 59.7 kB / 301.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.1265, allocations: 9.969 kB / 301.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001554/0.1267, allocations: 173.7 kB / 301.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1267, allocations: 0 / 301.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006906/0.1273, allocations: 178.2 kB / 301.5 MB, free: 14.43 MB / 266.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.001516/0.1289, allocations: 0.5318 MB / 302.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006315/0.1295, allocations: 0.664 MB / 302.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.597e-06/0.1295, allocations: 5.094 kB / 302.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004129/0.1299, allocations: 0.5977 MB / 303.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.1303, allocations: 121.3 kB / 303.4 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.1321, allocations: 0.9009 MB / 304.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.1323, allocations: 134.8 kB / 304.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001804/0.1324, allocations: 43.33 kB / 304.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002736/0.1327, allocations: 148.6 kB / 304.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1327, allocations: 0 / 304.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of Templates: time 0.0124/0.1451, allocations: 9.707 MB / 314.4 MB, free: 9.195 MB / 266.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 -s gbode -gbm=radauIIA3 -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: 2.967291518114507]