Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.001343/0.001343, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001485/0.001485, allocations: 163.9 kB / 23.95 MB, free: 4.156 MB / 14.72 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.499/1.499, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] 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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.441e-05, allocations: 3.438 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004254/0.004279, allocations: 2.811 MB / 327.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001701/0.00598, allocations: 0.7279 MB / 328.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.006154, allocations: 13.41 kB / 328.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001896/0.006343, allocations: 57.2 kB / 328.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002391/0.006583, allocations: 109.1 kB / 328.8 MB, free: 14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.006974, allocations: 98.36 kB / 328.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005591/0.007534, allocations: 431.2 kB / 329.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.007746, allocations: 76.56 kB / 329.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004367/0.008183, allocations: 230.9 kB / 329.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.008394, allocations: 125.2 kB / 329.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.354e-05/0.008457, allocations: 32.53 kB / 329.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.008576, allocations: 42.05 kB / 329.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.782e-05/0.008664, allocations: 74.25 kB / 329.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.008828, allocations: 124.7 kB / 330 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006045/0.009433, allocations: 407.9 kB / 330.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.009438, allocations: 1.156 kB / 330.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.009439, allocations: 0 / 330.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.009445, allocations: 0 / 330.4 MB, free: 13.27 MB / 302.1 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.00106/0.01051, allocations: 0.5644 MB / 331 MB, free: 12.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.01054, allocations: 8.781 kB / 331 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.01073, allocations: 45.73 kB / 331 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.0111, allocations: 235 kB / 331.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.01113, allocations: 23.7 kB / 331.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.01117, allocations: 25.69 kB / 331.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006798/0.01185, allocations: 415.9 kB / 331.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.01186, allocations: 1.5 kB / 331.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/0.0119, allocations: 10.56 kB / 331.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.01191, allocations: 11.03 kB / 331.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00057/0.01248, allocations: 222.2 kB / 331.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.01415, allocations: 0.8015 MB / 332.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005167/0.01466, allocations: 210.4 kB / 332.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.0149, allocations: 97.72 kB / 333 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.01492, allocations: 2.219 kB / 333 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.01496, allocations: 40.95 kB / 333.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.01496, allocations: 1.219 kB / 333.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001344/0.01631, allocations: 408.9 kB / 333.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.01636, allocations: 53.66 kB / 333.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.01666, allocations: 242 kB / 333.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.01669, allocations: 31.95 kB / 333.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.01685, allocations: 191.9 kB / 334 MB, free: 10.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.425e-05/0.01692, allocations: 72.44 kB / 334.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.89e-05/0.01701, allocations: 44.84 kB / 334.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.0172, allocations: 340.3 kB / 334.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.01744, allocations: 78.27 kB / 334.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003632/0.0178, allocations: 102.7 kB / 334.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004857/0.01828, allocations: 184.9 kB / 334.8 MB, free: 9.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.01829, allocations: 11.94 kB / 334.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007259/0.01902, allocations: 315.8 kB / 335.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.01903, allocations: 6.125 kB / 335.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.01904, allocations: 3.984 kB / 335.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003311/0.01937, allocations: 85.58 kB / 335.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.01957, allocations: 32.7 kB / 335.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002861/0.02243, allocations: 2.792 MB / 338 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.02266, allocations: 23.59 kB / 338.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.02268, allocations: 6.594 kB / 338.1 MB, free: 6.957 MB / 302.1 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 0.0001732/0.02285, allocations: 134.5 kB / 338.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.807e-05/0.02291, allocations: 24.52 kB / 338.2 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.297e-05/0.02296, allocations: 35.61 kB / 338.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.02297, allocations: 2.375 kB / 338.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.02298, allocations: 5.219 kB / 338.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.02298, allocations: 3.938 kB / 338.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.02405, allocations: 0.5714 MB / 338.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.02405, allocations: 1.125 kB / 338.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.02419, allocations: 30.39 kB / 338.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002092/0.0244, allocations: 80.72 kB / 338.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.02442, allocations: 5.062 kB / 339 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/0.02702, allocations: 2.776 MB / 341.7 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.02703, allocations: 0 / 341.7 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006943/0.02772, allocations: 371.1 kB / 342.1 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.115e-05/0.02777, allocations: 34.88 kB / 342.1 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.0278, allocations: 5.156 kB / 342.1 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.02807, allocations: 35.19 kB / 342.2 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.02814, allocations: 18.38 kB / 342.2 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.02816, allocations: 17.5 kB / 342.2 MB, free: 3.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001841/0.02834, allocations: 176.6 kB / 342.4 MB, free: 3.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02834, allocations: 0 / 342.4 MB, free: 3.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000409/0.02875, allocations: 91.89 kB / 342.5 MB, free: 3.012 MB / 302.1 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 0.000148/0.0289, allocations: 107.2 kB / 342.6 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008866/0.02978, allocations: 437 kB / 343 MB, free: 2.441 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.02979, allocations: 0 / 343 MB, free: 2.441 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004809/0.03027, allocations: 345.3 kB / 343.3 MB, free: 2.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.03064, allocations: 44.48 kB / 343.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009393/0.03158, allocations: 484.8 kB / 343.8 MB, free: 1.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00016/0.03174, allocations: 159.5 kB / 344 MB, free: 1.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.076e-05/0.03183, allocations: 17.94 kB / 344 MB, free: 1.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.723e-05/0.03188, allocations: 24.5 kB / 344 MB, free: 1.324 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.03188, allocations: 0 / 344 MB, free: 1.324 MB / 302.1 MB Notification: Performance of Templates: time 0.008271/0.04015, allocations: 3.532 MB / 347.6 MB, free: 13.85 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.464870974421501]