Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.0009834/0.0009834, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0011/0.0011, allocations: 145.1 kB / 25.59 MB, free: 8.594 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.9146/0.9146, allocations: 173.4 MB / 202.3 MB, free: 8.27 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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.169e-05/2.306e-05, allocations: 2.312 kB / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003247/0.003271, allocations: 2.975 MB / 272.2 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009429/0.004213, allocations: 0.6772 MB / 272.9 MB, free: 6.113 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.004349, allocations: 11.94 kB / 272.9 MB, free: 6.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.004484, allocations: 51.44 kB / 272.9 MB, free: 6.051 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.004627, allocations: 112.7 kB / 273 MB, free: 5.941 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.004846, allocations: 88.73 kB / 273.1 MB, free: 5.855 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003153/0.005162, allocations: 429.9 kB / 273.5 MB, free: 5.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.005306, allocations: 72.38 kB / 273.6 MB, free: 5.359 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.005534, allocations: 231.5 kB / 273.8 MB, free: 5.133 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.005666, allocations: 124.3 kB / 274 MB, free: 5.012 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.005704, allocations: 32.72 kB / 274 MB, free: 4.98 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.336e-05/0.005737, allocations: 32 kB / 274 MB, free: 4.949 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.005784, allocations: 74.59 kB / 274.1 MB, free: 4.879 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.635e-05/0.00587, allocations: 127.7 kB / 274.2 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.006115, allocations: 271 kB / 274.5 MB, free: 4.488 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.006118, allocations: 0 / 274.5 MB, free: 4.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.006118, allocations: 4 kB / 274.5 MB, free: 4.484 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.006123, allocations: 0 / 274.5 MB, free: 4.484 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0005774/0.0067, allocations: 0.6533 MB / 275.1 MB, free: 3.797 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.006731, allocations: 12.03 kB / 275.1 MB, free: 3.785 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.391e-05/0.006795, allocations: 60.7 kB / 275.2 MB, free: 3.727 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002081/0.007003, allocations: 227.9 kB / 275.4 MB, free: 3.477 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.007021, allocations: 21.03 kB / 275.5 MB, free: 3.453 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.007048, allocations: 32.38 kB / 275.5 MB, free: 3.422 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.007299, allocations: 337.6 kB / 275.8 MB, free: 3.051 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.007307, allocations: 4.188 kB / 275.8 MB, free: 3.047 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.007325, allocations: 12.38 kB / 275.8 MB, free: 3.035 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.007334, allocations: 15.88 kB / 275.8 MB, free: 3.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.945e-05/0.007433, allocations: 76.52 kB / 275.9 MB, free: 2.949 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008753/0.008308, allocations: 0.8021 MB / 276.7 MB, free: 2.094 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.008526, allocations: 159.6 kB / 276.9 MB, free: 1.926 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.476e-05/0.008581, allocations: 54.72 kB / 276.9 MB, free: 1.871 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.008597, allocations: 7.938 kB / 276.9 MB, free: 1.863 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.00862, allocations: 45.38 kB / 277 MB, free: 1.809 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.032e-06/0.008621, allocations: 0 / 277 MB, free: 1.809 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004951/0.009117, allocations: 286.6 kB / 277.3 MB, free: 1.516 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.227e-05/0.009139, allocations: 55.41 kB / 277.3 MB, free: 1.449 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.009281, allocations: 280.2 kB / 277.6 MB, free: 1.164 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.009299, allocations: 33.7 kB / 277.6 MB, free: 1.125 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/0.009391, allocations: 239.2 kB / 277.9 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.298e-05/0.009424, allocations: 67.38 kB / 277.9 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-05/0.009479, allocations: 55.52 kB / 278 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.009596, allocations: 0.5116 MB / 278.5 MB, free: 236 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.52e-05/0.009631, allocations: 24.45 kB / 278.5 MB, free: 212 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.789e-05/0.009689, allocations: 59.95 kB / 278.6 MB, free: 140 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.009794, allocations: 105 kB / 278.7 MB, free: 24 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.009796, allocations: 0 / 278.7 MB, free: 24 kB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000255/0.01005, allocations: 226.5 kB / 278.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.01006, allocations: 4 kB / 278.9 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.01007, allocations: 4 kB / 278.9 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002441/0.01031, allocations: 103.3 kB / 279 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.114e-05/0.0104, allocations: 27.98 kB / 279 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.01192, allocations: 3.623 MB / 282.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.359e-05/0.012, allocations: 23.83 kB / 282.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-06/0.01201, allocations: 4 kB / 282.7 MB, free: 11.77 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.615e-05/0.01211, allocations: 176.5 kB / 282.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.01214, allocations: 35.81 kB / 282.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.41e-05/0.01217, allocations: 26.27 kB / 282.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-06/0.01217, allocations: 4 kB / 282.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.01218, allocations: 0 / 282.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.01218, allocations: 0 / 282.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004417/0.01262, allocations: 0.5111 MB / 283.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.01262, allocations: 0 / 283.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.607e-05/0.01268, allocations: 23.98 kB / 283.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000169/0.01285, allocations: 91.41 kB / 283.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.01286, allocations: 12 kB / 283.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001423/0.01428, allocations: 3.615 MB / 287.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01428, allocations: 0 / 287.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.01452, allocations: 351.6 kB / 287.5 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.01454, allocations: 27.78 kB / 287.5 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.01455, allocations: 4 kB / 287.5 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.01467, allocations: 27.98 kB / 287.6 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.01472, allocations: 23.95 kB / 287.6 MB, free: 6.531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.01473, allocations: 4 kB / 287.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.16e-05/0.01481, allocations: 193.1 kB / 287.8 MB, free: 6.336 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01481, allocations: 0 / 287.8 MB, free: 6.336 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002661/0.01507, allocations: 99.78 kB / 287.9 MB, free: 6.238 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.64e-05/0.01517, allocations: 107.1 kB / 288 MB, free: 6.125 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.01553, allocations: 478 kB / 288.5 MB, free: 5.625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.01553, allocations: 4 kB / 288.5 MB, free: 5.621 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.01573, allocations: 423.2 kB / 288.9 MB, free: 5.168 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.01596, allocations: 36.61 kB / 288.9 MB, free: 5.133 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007371/0.0167, allocations: 488.6 kB / 289.4 MB, free: 4.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.825e-05/0.01676, allocations: 92.22 kB / 289.5 MB, free: 4.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.318e-05/0.01682, allocations: 21.94 kB / 289.5 MB, free: 4.496 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.01695, allocations: 122.2 kB / 289.6 MB, free: 4.375 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01695, allocations: 0 / 289.6 MB, free: 4.375 MB / 266.7 MB Notification: Performance of Templates: time 0.007874/0.02482, allocations: 3.915 MB / 293.5 MB, free: 0.5117 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.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.725377847906202]