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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 148.2 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9578/0.9578, allocations: 173.3 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] 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=5052,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=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.179e-05/2.332e-05, allocations: 2.312 kB / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004349/0.004372, allocations: 3.899 MB / 272.3 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.006501, allocations: 1.402 MB / 273.7 MB, free: 0.875 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002976/0.006799, allocations: 11.94 kB / 273.7 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007098/0.007509, allocations: 254.7 kB / 274 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005294/0.008038, allocations: 270.2 kB / 274.2 MB, free: 356 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.008607, allocations: 295.2 kB / 274.5 MB, free: 60 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006667/0.009274, allocations: 0.7278 MB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.009477, allocations: 121.4 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005048/0.009982, allocations: 407.1 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.01024, allocations: 239.3 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.21e-05/0.0103, allocations: 52 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.01048, allocations: 99.89 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.01059, allocations: 143.5 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.01073, allocations: 207.4 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007593/0.01149, allocations: 0.4982 MB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.0115, allocations: 4 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.0115, allocations: 3.938 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.0115, allocations: 4 kB / 277 MB, free: 13.56 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.001014/0.01252, allocations: 0.9769 MB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.01255, allocations: 8.922 kB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.01266, allocations: 100.5 kB / 278.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.013, allocations: 347.2 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.01303, allocations: 29.38 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.01306, allocations: 44.38 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.01345, allocations: 434.1 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.01346, allocations: 3.938 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.01348, allocations: 16 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.01349, allocations: 12 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001712/0.01366, allocations: 134.8 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.01508, allocations: 1.622 MB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.01538, allocations: 262.6 kB / 281 MB, free: 9.383 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.01549, allocations: 103.3 kB / 281.1 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.01551, allocations: 4 kB / 281.1 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.01575, allocations: 321 kB / 281.4 MB, free: 8.898 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.804e-06/0.01575, allocations: 0 / 281.4 MB, free: 8.898 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009075/0.01666, allocations: 0.556 MB / 281.9 MB, free: 8.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.01672, allocations: 158.2 kB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.01701, allocations: 446.4 kB / 282.5 MB, free: 7.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.01704, allocations: 37.7 kB / 282.6 MB, free: 7.637 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.01719, allocations: 315.3 kB / 282.9 MB, free: 7.324 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.847e-05/0.01726, allocations: 122.9 kB / 283 MB, free: 7.203 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.142e-05/0.01735, allocations: 95.69 kB / 283.1 MB, free: 7.102 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.01749, allocations: 0.539 MB / 283.6 MB, free: 6.551 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.774e-05/0.01756, allocations: 44.97 kB / 283.7 MB, free: 6.508 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004256/0.01798, allocations: 287 kB / 283.9 MB, free: 6.152 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.01815, allocations: 168.6 kB / 284.1 MB, free: 5.973 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.01815, allocations: 4 kB / 284.1 MB, free: 5.969 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0003366/0.01849, allocations: 336.4 kB / 284.4 MB, free: 5.617 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.01851, allocations: 8 kB / 284.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.01851, allocations: 0 / 284.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002627/0.01877, allocations: 138.6 kB / 284.6 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.0189, allocations: 47.91 kB / 284.6 MB, free: 5.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1309/0.1498, allocations: 8.122 MB / 292.8 MB, free: 25.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.1501, allocations: 52.22 kB / 292.8 MB, free: 25.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.1501, allocations: 9.328 kB / 292.8 MB, free: 25.08 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.0001724/0.1502, allocations: 185.6 kB / 293 MB, free: 24.92 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.475e-05/0.1503, allocations: 68.95 kB / 293.1 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004978/0.1508, allocations: 383.7 kB / 293.4 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1508, allocations: 4.016 kB / 293.4 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-06/0.1508, allocations: 1.219 kB / 293.4 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.8e-06/0.1508, allocations: 2.656 kB / 293.4 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003098/0.1511, allocations: 287.1 kB / 293.7 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1511, allocations: 0 / 293.7 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.092e-05/0.1512, allocations: 30.52 kB / 293.8 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002262/0.1515, allocations: 135.1 kB / 293.9 MB, free: 24.65 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.1515, allocations: 9.953 kB / 293.9 MB, free: 24.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/0.1536, allocations: 7.667 MB / 301.6 MB, free: 17.42 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1536, allocations: 2.375 kB / 301.6 MB, free: 17.42 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004811/0.1541, allocations: 418 kB / 302 MB, free: 17.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.1542, allocations: 86.2 kB / 302.1 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.1542, allocations: 7.188 kB / 302.1 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.1543, allocations: 26.61 kB / 302.1 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.1545, allocations: 57.83 kB / 302.1 MB, free: 17.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.1545, allocations: 10.89 kB / 302.2 MB, free: 17.22 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002161/0.1547, allocations: 284.3 kB / 302.4 MB, free: 17.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1547, allocations: 0.7812 kB / 302.4 MB, free: 17.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006718/0.1554, allocations: 173.8 kB / 302.6 MB, free: 17.09 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.0009477/0.1563, allocations: 419.4 kB / 303 MB, free: 16.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006914/0.157, allocations: 0.8987 MB / 303.9 MB, free: 16.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.157, allocations: 1.188 kB / 303.9 MB, free: 16.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000433/0.1574, allocations: 0.8308 MB / 304.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004196/0.1579, allocations: 114.4 kB / 304.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.1594, allocations: 0.9023 MB / 305.8 MB, free: 15.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.1595, allocations: 130.6 kB / 305.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000152/0.1597, allocations: 36.67 kB / 305.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.1599, allocations: 178.2 kB / 306.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of SimCode: time 1.813e-06/0.1599, allocations: 0 / 306.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of Templates: time 0.0143/0.1742, allocations: 9.75 MB / 315.8 MB, free: 11.24 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 240] 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","",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.134056555107236]