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.001933/0.001933, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002039/0.002039, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 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 1.584/1.584, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.423e-06/1.423e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.523e-05/2.665e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006091/0.006117, allocations: 3.946 MB / 276.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003429/0.009546, allocations: 1.57 MB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002494/0.009795, allocations: 15.88 kB / 277.9 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008343/0.01063, allocations: 258.7 kB / 278.1 MB, free: 12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007436/0.01137, allocations: 313.9 kB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006433/0.01202, allocations: 271.1 kB / 278.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009006/0.01292, allocations: 0.7472 MB / 279.4 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.01316, allocations: 113.5 kB / 279.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006285/0.01379, allocations: 415.1 kB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003952/0.01418, allocations: 239.3 kB / 280.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.782e-05/0.01428, allocations: 52 kB / 280.2 MB, free: 9.871 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.01453, allocations: 107.9 kB / 280.3 MB, free: 9.766 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.01472, allocations: 147.4 kB / 280.5 MB, free: 9.621 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002758/0.015, allocations: 207.5 kB / 280.7 MB, free: 9.418 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00098/0.01598, allocations: 0.7358 MB / 281.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.01598, allocations: 0 / 281.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01598, allocations: 0 / 281.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.01599, allocations: 0 / 281.4 MB, free: 8.68 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.001856/0.01785, allocations: 1.031 MB / 282.4 MB, free: 7.605 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.01788, allocations: 12.03 kB / 282.5 MB, free: 7.594 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000298/0.01818, allocations: 112.5 kB / 282.6 MB, free: 7.484 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006308/0.01881, allocations: 358.4 kB / 282.9 MB, free: 7.105 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.01885, allocations: 29.38 kB / 283 MB, free: 7.078 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.544e-05/0.01892, allocations: 40.38 kB / 283 MB, free: 7.039 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000909/0.01983, allocations: 0.5451 MB / 283.5 MB, free: 6.441 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.01985, allocations: 7.938 kB / 283.5 MB, free: 6.434 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.371e-05/0.01989, allocations: 16 kB / 283.6 MB, free: 6.418 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.0199, allocations: 12 kB / 283.6 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006462/0.02055, allocations: 291.8 kB / 283.9 MB, free: 6.125 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003114/0.02366, allocations: 1.84 MB / 285.7 MB, free: 4.195 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007197/0.02438, allocations: 338.8 kB / 286 MB, free: 3.855 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003323/0.02471, allocations: 163.6 kB / 286.2 MB, free: 3.691 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.546e-05/0.02476, allocations: 11.75 kB / 286.2 MB, free: 3.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005925/0.02535, allocations: 385 kB / 286.6 MB, free: 3.242 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.503e-06/0.02535, allocations: 0 / 286.6 MB, free: 3.242 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002262/0.02762, allocations: 0.724 MB / 287.3 MB, free: 2.496 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.02775, allocations: 166.2 kB / 287.5 MB, free: 2.297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007183/0.02847, allocations: 0.5494 MB / 288 MB, free: 1.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/0.02851, allocations: 33.7 kB / 288 MB, free: 1.691 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/0.0288, allocations: 331.4 kB / 288.4 MB, free: 1.363 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.02895, allocations: 135 kB / 288.5 MB, free: 1.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.02911, allocations: 87.86 kB / 288.6 MB, free: 1.137 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003401/0.02946, allocations: 0.5586 MB / 289.1 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.02972, allocations: 113 kB / 289.3 MB, free: 468 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004697/0.03018, allocations: 359 kB / 289.6 MB, free: 32 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1108/0.141, allocations: 265.8 kB / 289.9 MB, free: 28.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.141, allocations: 1.375 kB / 289.9 MB, free: 28.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000864/0.1419, allocations: 493.6 kB / 290.3 MB, free: 27.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.1419, allocations: 8.531 kB / 290.4 MB, free: 27.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1419, allocations: 0 / 290.4 MB, free: 27.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000517/0.1424, allocations: 171.2 kB / 290.5 MB, free: 27.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.1426, allocations: 52.25 kB / 290.6 MB, free: 27.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003927/0.1466, allocations: 8.576 MB / 299.1 MB, free: 20.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003807/0.147, allocations: 51.05 kB / 299.2 MB, free: 20.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.147, allocations: 14.44 kB / 299.2 MB, free: 20.06 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.0001985/0.1472, allocations: 218.2 kB / 299.4 MB, free: 19.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.254e-05/0.1473, allocations: 66.3 kB / 299.5 MB, free: 19.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009745/0.1482, allocations: 498.9 kB / 300 MB, free: 19.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.1483, allocations: 9.984 kB / 300 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.1483, allocations: 0.5 kB / 300 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1483, allocations: 5.562 kB / 300 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004629/0.1487, allocations: 439.3 kB / 300.4 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.1487, allocations: 0 / 300.4 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.1489, allocations: 34.09 kB / 300.5 MB, free: 19.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004218/0.1493, allocations: 168.5 kB / 300.6 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.1493, allocations: 10.81 kB / 300.6 MB, free: 19.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003725/0.1531, allocations: 8.117 MB / 308.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1531, allocations: 2.406 kB / 308.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009802/0.154, allocations: 0.5442 MB / 309.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001798/0.1542, allocations: 73.66 kB / 309.4 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.256e-05/0.1543, allocations: 12.78 kB / 309.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.1545, allocations: 30.12 kB / 309.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.1547, allocations: 56.53 kB / 309.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-05/0.1547, allocations: 13.77 kB / 309.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003866/0.1551, allocations: 363 kB / 309.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1551, allocations: 0 / 309.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008046/0.1559, allocations: 178 kB / 310 MB, free: 10.83 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.002884/0.1588, allocations: 465.1 kB / 310.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.1599, allocations: 1.027 MB / 311.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1599, allocations: 0 / 311.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006966/0.1606, allocations: 0.8885 MB / 312.4 MB, free: 9.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005707/0.1612, allocations: 119.8 kB / 312.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.1631, allocations: 0.9415 MB / 313.4 MB, free: 8.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.1634, allocations: 270.4 kB / 313.7 MB, free: 8.402 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.1636, allocations: 43.66 kB / 313.7 MB, free: 8.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.1637, allocations: 32.22 kB / 313.8 MB, free: 8.387 MB / 266.7 MB Notification: Performance of SimCode: time 1.393e-06/0.1637, allocations: 2.625 kB / 313.8 MB, free: 8.387 MB / 266.7 MB Notification: Performance of Templates: time 0.01567/0.1793, allocations: 9.188 MB / 323 MB, free: 2.504 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.906715466990136]