Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.000937/0.000937, allocations: 84.06 kB / 21.19 MB, free: 3.379 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.001324/0.001324, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 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 1.019/1.019, allocations: 173.3 MB / 201.1 MB, free: 8.473 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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 268 MB, free: 6.137 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.816e-05, allocations: 6.25 kB / 268 MB, free: 6.129 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002647/0.002675, allocations: 2.182 MB / 270.2 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008762/0.003551, allocations: 0.5377 MB / 270.7 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.565e-05/0.003647, allocations: 3.938 kB / 270.7 MB, free: 3.387 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.003774, allocations: 23.78 kB / 270.7 MB, free: 3.363 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.49e-05/0.003848, allocations: 39.64 kB / 270.8 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.004081, allocations: 47.81 kB / 270.8 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.004243, allocations: 163.2 kB / 271 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.004397, allocations: 45.58 kB / 271 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.004552, allocations: 95.78 kB / 271.1 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.966e-05/0.004652, allocations: 47.83 kB / 271.2 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.00468, allocations: 12 kB / 271.2 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.15e-05/0.004741, allocations: 16 kB / 271.2 MB, free: 2.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.00477, allocations: 31.84 kB / 271.2 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.149e-05/0.004822, allocations: 55.83 kB / 271.3 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.005024, allocations: 103.7 kB / 271.4 MB, free: 2.711 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.005028, allocations: 0 / 271.4 MB, free: 2.711 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.005029, allocations: 4 kB / 271.4 MB, free: 2.707 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.005034, allocations: 0 / 271.4 MB, free: 2.707 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005128/0.005547, allocations: 472.1 kB / 271.8 MB, free: 2.207 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.00559, allocations: 8.922 kB / 271.9 MB, free: 2.199 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.005727, allocations: 28.84 kB / 271.9 MB, free: 2.172 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.005924, allocations: 155.2 kB / 272 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.005938, allocations: 8.609 kB / 272 MB, free: 1.988 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.005955, allocations: 12.38 kB / 272.1 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.006145, allocations: 130.5 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.006153, allocations: 4.188 kB / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.006167, allocations: 8.375 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.006176, allocations: 3.938 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.152e-05/0.006248, allocations: 40.67 kB / 272.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005811/0.006829, allocations: 490.5 kB / 272.7 MB, free: 1.254 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.007027, allocations: 71.11 kB / 272.8 MB, free: 1.172 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.564e-05/0.007062, allocations: 23.8 kB / 272.8 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.007075, allocations: 4 kB / 272.8 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.0071, allocations: 37.33 kB / 272.8 MB, free: 1.094 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.007102, allocations: 0 / 272.8 MB, free: 1.094 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004025/0.007504, allocations: 141.2 kB / 273 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/0.007531, allocations: 59.34 kB / 273 MB, free: 0.875 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.007642, allocations: 205 kB / 273.2 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.007655, allocations: 25.7 kB / 273.3 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.622e-05/0.007731, allocations: 174.8 kB / 273.4 MB, free: 460 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.007748, allocations: 23.78 kB / 273.5 MB, free: 436 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.007788, allocations: 27.38 kB / 273.5 MB, free: 400 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.007929, allocations: 0.4922 MB / 274 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.463e-05/0.007954, allocations: 8 kB / 274 MB, free: 15.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.506e-05/0.007999, allocations: 42.98 kB / 274 MB, free: 15.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.067e-05/0.00807, allocations: 62.98 kB / 274.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.008073, allocations: 3.984 kB / 274.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001597/0.008233, allocations: 101.2 kB / 274.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.008249, allocations: 11.94 kB / 274.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.008254, allocations: 256 / 274.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.008416, allocations: 43.59 kB / 274.3 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.8e-05/0.008454, allocations: 12.06 kB / 274.3 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.009684, allocations: 2.083 MB / 276.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.491e-05/0.009729, allocations: 15.83 kB / 276.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.009736, allocations: 0 / 276.4 MB, free: 13.35 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 8.712e-05/0.009824, allocations: 168.6 kB / 276.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.009847, allocations: 7.953 kB / 276.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.248e-05/0.009859, allocations: 12.78 kB / 276.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.009861, allocations: 0 / 276.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-06/0.009862, allocations: 0 / 276.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.009867, allocations: 7.938 kB / 276.6 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.009994, allocations: 148.7 kB / 276.7 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.009997, allocations: 4.047 kB / 276.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.998e-05/0.01002, allocations: 7.984 kB / 276.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001184/0.01014, allocations: 43.59 kB / 276.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.01014, allocations: 0 / 276.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.01144, allocations: 2.079 MB / 278.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.01144, allocations: 0 / 278.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.01164, allocations: 251.6 kB / 279.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.378e-05/0.01165, allocations: 7.953 kB / 279.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.847e-06/0.01166, allocations: 4 kB / 279.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.53e-05/0.01172, allocations: 7.984 kB / 279.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.886e-05/0.01176, allocations: 7.922 kB / 279.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.01176, allocations: 8 kB / 279.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.039e-05/0.01183, allocations: 145.8 kB / 279.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01183, allocations: 0 / 279.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002375/0.01206, allocations: 39.89 kB / 279.3 MB, free: 10.22 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000105/0.01217, allocations: 103.2 kB / 279.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003245/0.01249, allocations: 233.1 kB / 279.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.01249, allocations: 0 / 279.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.01262, allocations: 209.4 kB / 279.8 MB, free: 9.637 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.01282, allocations: 8 kB / 279.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006566/0.01348, allocations: 282.5 kB / 280.1 MB, free: 9.324 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.561e-05/0.01352, allocations: 63.34 kB / 280.2 MB, free: 9.242 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.957e-05/0.01356, allocations: 8.5 kB / 280.2 MB, free: 9.234 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.812e-05/0.01359, allocations: 12.48 kB / 280.2 MB, free: 9.219 MB / 266.7 MB Notification: Performance of SimCode: time 9.11e-07/0.01359, allocations: 0 / 280.2 MB, free: 9.219 MB / 266.7 MB Notification: Performance of Templates: time 0.003513/0.0171, allocations: 1.558 MB / 281.8 MB, free: 7.68 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.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.7662859950214624]