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.001674/0.001674, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.002657/0.002657, allocations: 161 kB / 24.56 MB, free: 16 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.087/1.087, allocations: 177.1 MB / 205 MB, free: 5.598 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.944e-06/1.944e-06, allocations: 0 / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.261e-05/3.456e-05, allocations: 2.312 kB / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006649/0.006684, allocations: 3.97 MB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003794/0.01048, allocations: 1.608 MB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005583/0.01104, allocations: 7.938 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.01205, allocations: 250.7 kB / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001084/0.01314, allocations: 317.9 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007647/0.0139, allocations: 275.2 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007627/0.01466, allocations: 0.7471 MB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.01489, allocations: 113.5 kB / 280.3 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006164/0.0155, allocations: 407.1 kB / 280.7 MB, free: 9.789 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000354/0.01586, allocations: 247.3 kB / 280.9 MB, free: 9.547 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.508e-05/0.01593, allocations: 52 kB / 280.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002304/0.01616, allocations: 103.9 kB / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.01631, allocations: 151.4 kB / 281.2 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.01651, allocations: 203.5 kB / 281.4 MB, free: 9.047 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006876/0.01719, allocations: 0.5177 MB / 281.9 MB, free: 8.527 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.0172, allocations: 0 / 281.9 MB, free: 8.527 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.0172, allocations: 0 / 281.9 MB, free: 8.527 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.01721, allocations: 0 / 281.9 MB, free: 8.527 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.001225/0.01843, allocations: 0.9925 MB / 282.9 MB, free: 7.492 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.01848, allocations: 8.031 kB / 282.9 MB, free: 7.484 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.01872, allocations: 108.5 kB / 283 MB, free: 7.379 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005377/0.01926, allocations: 371.1 kB / 283.4 MB, free: 6.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.0193, allocations: 29.38 kB / 283.4 MB, free: 6.957 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/0.01934, allocations: 40.38 kB / 283.4 MB, free: 6.918 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005173/0.01986, allocations: 462.2 kB / 283.9 MB, free: 6.414 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.01987, allocations: 7.938 kB / 283.9 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.0199, allocations: 16 kB / 283.9 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.01991, allocations: 8 kB / 283.9 MB, free: 6.383 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002925/0.02021, allocations: 177.8 kB / 284.1 MB, free: 6.211 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.02209, allocations: 1.688 MB / 285.8 MB, free: 4.434 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004615/0.02255, allocations: 284.5 kB / 286.1 MB, free: 4.145 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.02272, allocations: 115.6 kB / 286.2 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.02275, allocations: 11.75 kB / 286.2 MB, free: 4.016 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003419/0.02309, allocations: 336.9 kB / 286.5 MB, free: 3.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.445e-06/0.0231, allocations: 0 / 286.5 MB, free: 3.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001168/0.02426, allocations: 0.5873 MB / 287.1 MB, free: 3.016 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/0.02434, allocations: 166.2 kB / 287.3 MB, free: 2.816 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003728/0.02471, allocations: 470.6 kB / 287.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.02474, allocations: 37.7 kB / 287.8 MB, free: 2.301 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.02491, allocations: 307.4 kB / 288.1 MB, free: 1.996 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.367e-05/0.02499, allocations: 126.9 kB / 288.2 MB, free: 1.871 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.02509, allocations: 87.8 kB / 288.3 MB, free: 1.777 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.02526, allocations: 0.5352 MB / 288.8 MB, free: 1.23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.02538, allocations: 64.95 kB / 288.9 MB, free: 1.168 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.02561, allocations: 295 kB / 289.2 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/0.02585, allocations: 196.7 kB / 289.4 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.02585, allocations: 4.062 kB / 289.4 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0004958/0.02635, allocations: 384.3 kB / 289.7 MB, free: 200 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.02637, allocations: 7.938 kB / 289.7 MB, free: 192 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.02638, allocations: 4 kB / 289.8 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003677/0.02675, allocations: 134.6 kB / 289.9 MB, free: 36 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.02691, allocations: 52.06 kB / 289.9 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004419/0.03133, allocations: 8.236 MB / 298.2 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002007/0.03153, allocations: 43.83 kB / 298.2 MB, free: 7.227 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.03155, allocations: 12 kB / 298.2 MB, free: 7.215 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.0001574/0.0317, allocations: 194.5 kB / 298.4 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.494e-05/0.03177, allocations: 67.67 kB / 298.5 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007085/0.03248, allocations: 404.5 kB / 298.9 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.03248, allocations: 4 kB / 298.9 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.03248, allocations: 3.938 kB / 298.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.03249, allocations: 3.984 kB / 298.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000321/0.03281, allocations: 348.3 kB / 299.2 MB, free: 6.145 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.03282, allocations: 7.984 kB / 299.2 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.211e-05/0.03289, allocations: 32.05 kB / 299.3 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002481/0.03314, allocations: 138.7 kB / 299.4 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.03316, allocations: 15.98 kB / 299.4 MB, free: 5.938 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1394/0.1726, allocations: 7.766 MB / 307.2 MB, free: 34.56 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1726, allocations: 2.094 kB / 307.2 MB, free: 34.56 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007362/0.1733, allocations: 457.3 kB / 307.6 MB, free: 34.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.1735, allocations: 86.38 kB / 307.7 MB, free: 34.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.888e-05/0.1735, allocations: 10.53 kB / 307.7 MB, free: 34.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1737, allocations: 25.78 kB / 307.7 MB, free: 34.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.1738, allocations: 59.44 kB / 307.8 MB, free: 34.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.1739, allocations: 12.59 kB / 307.8 MB, free: 34.43 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002886/0.1741, allocations: 311.9 kB / 308.1 MB, free: 34.3 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1741, allocations: 0.75 kB / 308.1 MB, free: 34.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006545/0.1748, allocations: 171.7 kB / 308.3 MB, free: 34.3 MB / 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.001049/0.1758, allocations: 427.7 kB / 308.7 MB, free: 34.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007539/0.1766, allocations: 0.9279 MB / 309.6 MB, free: 33.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1766, allocations: 1.156 kB / 309.6 MB, free: 33.5 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004125/0.177, allocations: 0.8319 MB / 310.5 MB, free: 32.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000376/0.1774, allocations: 117.6 kB / 310.6 MB, free: 32.8 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/0.1791, allocations: 0.9023 MB / 311.5 MB, free: 32.39 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/0.1792, allocations: 135.3 kB / 311.6 MB, free: 32.31 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001508/0.1794, allocations: 43.86 kB / 311.7 MB, free: 32.3 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.835e-05/0.1795, allocations: 31.94 kB / 311.7 MB, free: 32.3 MB / 282.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1795, allocations: 1.125 kB / 311.7 MB, free: 32.3 MB / 282.7 MB Notification: Performance of Templates: time 0.01415/0.1936, allocations: 9.205 MB / 320.9 MB, free: 29.76 MB / 282.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.505937517154962]