Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002686/0.002686, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003128/0.003128, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.832e-05/2.961e-05, allocations: 5.266 kB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006624/0.006653, allocations: 3.939 MB / 276.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003426/0.01008, allocations: 1.577 MB / 277.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003448/0.01042, allocations: 11.94 kB / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009012/0.01133, allocations: 258.7 kB / 278 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008015/0.01213, allocations: 317.9 kB / 278.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007065/0.01283, allocations: 271.2 kB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009764/0.01381, allocations: 0.751 MB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002853/0.0141, allocations: 117.5 kB / 279.4 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006825/0.01478, allocations: 415.1 kB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006752/0.01545, allocations: 243.3 kB / 280.1 MB, free: 9.871 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.881e-05/0.01555, allocations: 56 kB / 280.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002682/0.01582, allocations: 107.8 kB / 280.2 MB, free: 9.711 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.01602, allocations: 151.4 kB / 280.4 MB, free: 9.562 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002855/0.0163, allocations: 203.5 kB / 280.6 MB, free: 9.363 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.01734, allocations: 0.7359 MB / 281.3 MB, free: 8.625 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.01734, allocations: 3.938 kB / 281.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.01734, allocations: 0 / 281.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.01735, allocations: 0 / 281.3 MB, free: 8.621 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.001892/0.01924, allocations: 1.02 MB / 282.3 MB, free: 7.559 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.01928, allocations: 11.98 kB / 282.4 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003066/0.01959, allocations: 116.5 kB / 282.5 MB, free: 7.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006593/0.02025, allocations: 362.4 kB / 282.8 MB, free: 7.051 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.02029, allocations: 29.38 kB / 282.8 MB, free: 7.023 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.954e-05/0.02036, allocations: 44.31 kB / 282.9 MB, free: 6.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/0.02128, allocations: 0.5374 MB / 283.4 MB, free: 6.387 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.0213, allocations: 4.188 kB / 283.4 MB, free: 6.383 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.02134, allocations: 16.38 kB / 283.4 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.02136, allocations: 15.94 kB / 283.5 MB, free: 6.352 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006505/0.02201, allocations: 299.8 kB / 283.8 MB, free: 6.062 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002919/0.02493, allocations: 1.84 MB / 285.6 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007246/0.02565, allocations: 339.5 kB / 285.9 MB, free: 3.789 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003302/0.02598, allocations: 155.6 kB / 286.1 MB, free: 3.633 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.02602, allocations: 15.75 kB / 286.1 MB, free: 3.617 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005977/0.02662, allocations: 389 kB / 286.5 MB, free: 3.176 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.643e-06/0.02662, allocations: 0 / 286.5 MB, free: 3.176 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002533/0.02916, allocations: 0.7239 MB / 287.2 MB, free: 2.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.02929, allocations: 166.2 kB / 287.4 MB, free: 2.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007433/0.03003, allocations: 0.5494 MB / 287.9 MB, free: 1.668 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.327e-05/0.03007, allocations: 37.7 kB / 287.9 MB, free: 1.625 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003059/0.03038, allocations: 323.4 kB / 288.3 MB, free: 1.305 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.03053, allocations: 135 kB / 288.4 MB, free: 1.172 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.0307, allocations: 91.84 kB / 288.5 MB, free: 1.074 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003733/0.03108, allocations: 0.5587 MB / 289 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.03136, allocations: 113 kB / 289.2 MB, free: 404 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1319/0.1633, allocations: 348.3 kB / 289.5 MB, free: 27.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005958/0.1639, allocations: 277.5 kB / 289.8 MB, free: 27.78 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.1639, allocations: 0 / 289.8 MB, free: 27.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009459/0.1648, allocations: 492 kB / 290.2 MB, free: 27.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1649, allocations: 5.969 kB / 290.3 MB, free: 27.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1649, allocations: 0.7969 kB / 290.3 MB, free: 27.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005733/0.1654, allocations: 177.7 kB / 290.4 MB, free: 27.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.1657, allocations: 47.61 kB / 290.5 MB, free: 27.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004712/0.1704, allocations: 8.575 MB / 299 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004793/0.1709, allocations: 49.69 kB / 299.1 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.191e-05/0.1709, allocations: 16.17 kB / 299.1 MB, free: 19.79 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.0003986/0.1713, allocations: 218.2 kB / 299.3 MB, free: 19.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.1715, allocations: 66.11 kB / 299.4 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.1727, allocations: 499.9 kB / 299.9 MB, free: 19.33 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.1727, allocations: 10.89 kB / 299.9 MB, free: 19.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1727, allocations: 3.938 kB / 299.9 MB, free: 19.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.1727, allocations: 3.344 kB / 299.9 MB, free: 19.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008662/0.1736, allocations: 438.7 kB / 300.3 MB, free: 19.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.1736, allocations: 0.6562 kB / 300.3 MB, free: 19.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001812/0.1738, allocations: 28.39 kB / 300.4 MB, free: 19.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000559/0.1743, allocations: 174.6 kB / 300.5 MB, free: 18.97 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/0.1744, allocations: 7.016 kB / 300.5 MB, free: 18.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004296/0.1787, allocations: 8.119 MB / 308.6 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1787, allocations: 1.656 kB / 308.7 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.1797, allocations: 0.5408 MB / 309.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.1799, allocations: 77.12 kB / 309.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.176e-05/0.18, allocations: 12.16 kB / 309.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.1803, allocations: 26.12 kB / 309.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.1804, allocations: 58.88 kB / 309.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.1805, allocations: 13.75 kB / 309.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000403/0.1809, allocations: 362.9 kB / 309.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1809, allocations: 0 / 309.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000851/0.1817, allocations: 178.3 kB / 309.9 MB, free: 10.56 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.002956/0.1847, allocations: 466 kB / 310.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.186, allocations: 1.022 MB / 311.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.186, allocations: 4.281 kB / 311.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007017/0.1867, allocations: 0.8902 MB / 312.3 MB, free: 8.832 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006515/0.1873, allocations: 118.1 kB / 312.4 MB, free: 8.781 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.1893, allocations: 0.9385 MB / 313.3 MB, free: 8.262 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.1896, allocations: 260.9 kB / 313.6 MB, free: 8.156 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001923/0.1898, allocations: 46.69 kB / 313.6 MB, free: 8.141 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.156e-05/0.1899, allocations: 41.31 kB / 313.7 MB, free: 8.129 MB / 266.7 MB Notification: Performance of SimCode: time 1.283e-06/0.1899, allocations: 0 / 313.7 MB, free: 8.129 MB / 266.7 MB Notification: Performance of Templates: time 0.01581/0.2057, allocations: 9.178 MB / 322.8 MB, free: 2.27 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.126524524064735]