Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.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.001316/0.001316, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001754/0.001754, allocations: 167.7 kB / 24.99 MB, free: 8.797 MB / 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/1, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 273.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.126e-05, allocations: 2.312 kB / 273.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002494/0.002515, allocations: 2.201 MB / 275.3 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008396/0.003355, allocations: 0.6036 MB / 275.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.139e-05/0.003446, allocations: 0 / 275.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.003566, allocations: 27.78 kB / 275.9 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.898e-05/0.003635, allocations: 47.5 kB / 275.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.003863, allocations: 47.88 kB / 276 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000177/0.00404, allocations: 167.1 kB / 276.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.004168, allocations: 41.66 kB / 276.2 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.004343, allocations: 103.7 kB / 276.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.866e-05/0.004432, allocations: 51.81 kB / 276.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.004453, allocations: 16 kB / 276.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.706e-05/0.00451, allocations: 20 kB / 276.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.232e-05/0.004533, allocations: 27.91 kB / 276.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.946e-05/0.004582, allocations: 51.84 kB / 276.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.004763, allocations: 111.6 kB / 276.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.004766, allocations: 0 / 276.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.004767, allocations: 0 / 276.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.004772, allocations: 4 kB / 276.6 MB, free: 14.31 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004701/0.005242, allocations: 472.2 kB / 277 MB, free: 13.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.00528, allocations: 8.031 kB / 277 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.005449, allocations: 36.78 kB / 277.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.00564, allocations: 156.4 kB / 277.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.005652, allocations: 8.609 kB / 277.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.005668, allocations: 16.31 kB / 277.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.005842, allocations: 126.5 kB / 277.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.00585, allocations: 4.188 kB / 277.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.005863, allocations: 4.375 kB / 277.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.005873, allocations: 7.938 kB / 277.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.698e-05/0.00595, allocations: 36.67 kB / 277.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005438/0.006494, allocations: 498.5 kB / 277.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.006682, allocations: 71.11 kB / 278 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.193e-05/0.006714, allocations: 15.69 kB / 278 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.006728, allocations: 11.94 kB / 278 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.006751, allocations: 41.45 kB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 2.275e-06/0.006754, allocations: 3.984 kB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003853/0.007139, allocations: 145.3 kB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/0.007162, allocations: 55.41 kB / 278.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.007271, allocations: 208.8 kB / 278.5 MB, free: 12.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.007282, allocations: 25.7 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.004e-05/0.007352, allocations: 174.9 kB / 278.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.007367, allocations: 23.78 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.0074, allocations: 27.38 kB / 278.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.007513, allocations: 0.4923 MB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.517e-05/0.007538, allocations: 12.05 kB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.707e-05/0.007575, allocations: 39.06 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.506e-05/0.00764, allocations: 62.97 kB / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.007642, allocations: 0 / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001491/0.007791, allocations: 113.1 kB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.007806, allocations: 10.34 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.00781, allocations: 0 / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001586/0.007969, allocations: 31.67 kB / 279.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.383e-05/0.008003, allocations: 16.05 kB / 279.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.00917, allocations: 2.082 MB / 281.6 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.724e-05/0.009207, allocations: 12.12 kB / 281.6 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.009214, allocations: 0 / 281.6 MB, free: 8.945 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 7.419e-05/0.009288, allocations: 164.6 kB / 281.7 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.314e-05/0.009311, allocations: 11.95 kB / 281.7 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.47e-05/0.009326, allocations: 8.781 kB / 281.8 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.009328, allocations: 7.875 kB / 281.8 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.00933, allocations: 7.938 kB / 281.8 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.009333, allocations: 3.984 kB / 281.8 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.009455, allocations: 156.5 kB / 281.9 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.009457, allocations: 0 / 281.9 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.35e-05/0.00947, allocations: 3.984 kB / 281.9 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.959e-05/0.00956, allocations: 35.67 kB / 282 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.009566, allocations: 0 / 282 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008774/0.01044, allocations: 2.087 MB / 284 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01044, allocations: 0 / 284 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.01062, allocations: 255.4 kB / 284.3 MB, free: 6.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.135e-05/0.01063, allocations: 15.89 kB / 284.3 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.009e-05/0.01064, allocations: 3.938 kB / 284.3 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.888e-05/0.01069, allocations: 4 kB / 284.3 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.01073, allocations: 3.984 kB / 284.3 MB, free: 5.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.01073, allocations: 4 kB / 284.3 MB, free: 5.988 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.934e-05/0.0108, allocations: 151.2 kB / 284.5 MB, free: 5.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0108, allocations: 0 / 284.5 MB, free: 5.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002369/0.01104, allocations: 39.95 kB / 284.5 MB, free: 5.801 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 9.337e-05/0.01113, allocations: 95.25 kB / 284.6 MB, free: 5.695 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002754/0.01141, allocations: 228.3 kB / 284.8 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.01141, allocations: 0 / 284.8 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.01152, allocations: 209.4 kB / 285 MB, free: 5.227 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/0.01171, allocations: 11.98 kB / 285 MB, free: 5.215 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006268/0.01234, allocations: 282.5 kB / 285.3 MB, free: 4.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.579e-05/0.01238, allocations: 71.33 kB / 285.4 MB, free: 4.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.303e-05/0.01241, allocations: 4.5 kB / 285.4 MB, free: 4.812 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.504e-05/0.01244, allocations: 12.5 kB / 285.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01244, allocations: 0 / 285.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of Templates: time 0.003333/0.01577, allocations: 1.518 MB / 286.9 MB, free: 3.305 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7008444720413536]