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.00145/0.00145, allocations: 72.08 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.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.001158/0.001158, allocations: 146.1 kB / 24.97 MB, free: 8.348 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.9752/0.9752, allocations: 173.3 MB / 201.5 MB, free: 9.34 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 2.294e-06/2.294e-06, allocations: 0 / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.769e-05/2.999e-05, allocations: 6.25 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003075/0.003105, allocations: 3.01 MB / 271.1 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.00416, allocations: 0.6776 MB / 271.8 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.004292, allocations: 11.94 kB / 271.8 MB, free: 3 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.004434, allocations: 47.5 kB / 271.8 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.004581, allocations: 106.9 kB / 271.9 MB, free: 2.848 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.004829, allocations: 95.8 kB / 272 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.005169, allocations: 429.9 kB / 272.4 MB, free: 2.332 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.005331, allocations: 80.52 kB / 272.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002527/0.005584, allocations: 223.5 kB / 272.7 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.00572, allocations: 123.7 kB / 272.9 MB, free: 1.91 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.005766, allocations: 32 kB / 272.9 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.359e-05/0.005799, allocations: 35.94 kB / 272.9 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.164e-05/0.005851, allocations: 75.73 kB / 273 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.416e-05/0.005945, allocations: 119.7 kB / 273.1 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.006205, allocations: 271 kB / 273.4 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.006208, allocations: 0 / 273.4 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006209, allocations: 3.938 kB / 273.4 MB, free: 1.383 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.006215, allocations: 4 kB / 273.4 MB, free: 1.379 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.0006982/0.006913, allocations: 0.6558 MB / 274 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.006952, allocations: 8.031 kB / 274.1 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.818e-05/0.00704, allocations: 60.7 kB / 274.1 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.007304, allocations: 228 kB / 274.3 MB, free: 380 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.007324, allocations: 21.03 kB / 274.4 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.952e-05/0.007354, allocations: 24.38 kB / 274.4 MB, free: 332 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006369/0.007991, allocations: 365.5 kB / 274.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.008, allocations: 192 / 274.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.008023, allocations: 12.38 kB / 274.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.008036, allocations: 11.94 kB / 274.8 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.008213, allocations: 103.9 kB / 274.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.009232, allocations: 0.8367 MB / 275.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.009523, allocations: 182.2 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.563e-05/0.009608, allocations: 63.66 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.009625, allocations: 4 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.009649, allocations: 37.39 kB / 276 MB, free: 14.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.00965, allocations: 8 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006217/0.01027, allocations: 315.9 kB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.709e-05/0.0103, allocations: 55.39 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.01047, allocations: 284.3 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.01049, allocations: 29.7 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.01059, allocations: 239.2 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.599e-05/0.01063, allocations: 75.38 kB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.389e-05/0.01069, allocations: 51.59 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.01082, allocations: 0.5 MB / 277.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.325e-05/0.01089, allocations: 36.44 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.14e-05/0.01097, allocations: 67.97 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.01111, allocations: 118.9 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01111, allocations: 0 / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003094/0.01142, allocations: 249.2 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.01144, allocations: 7.984 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.01144, allocations: 0 / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002897/0.01173, allocations: 99.25 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.01183, allocations: 39.91 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.01352, allocations: 3.676 MB / 281.8 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/0.01388, allocations: 23.81 kB / 281.8 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.01389, allocations: 12 kB / 281.8 MB, free: 8.379 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.963e-05/0.01399, allocations: 164.6 kB / 282 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.01403, allocations: 31.81 kB / 282 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.591e-05/0.01405, allocations: 30.27 kB / 282.1 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.01406, allocations: 4 kB / 282.1 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.01406, allocations: 4.031 kB / 282.1 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.01407, allocations: 3.938 kB / 282.1 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005412/0.01461, allocations: 0.5553 MB / 282.6 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01461, allocations: 0 / 282.6 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.643e-05/0.01468, allocations: 19.98 kB / 282.6 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002028/0.01488, allocations: 103.4 kB / 282.7 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.01489, allocations: 4 kB / 282.7 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.01645, allocations: 3.672 MB / 286.4 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01645, allocations: 0 / 286.4 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.01675, allocations: 370.5 kB / 286.8 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.165e-05/0.01677, allocations: 23.92 kB / 286.8 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.01678, allocations: 8 kB / 286.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.01689, allocations: 23.98 kB / 286.8 MB, free: 3.031 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.01696, allocations: 27.89 kB / 286.9 MB, free: 3.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.01697, allocations: 7.938 kB / 286.9 MB, free: 2.996 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001067/0.01708, allocations: 201.1 kB / 287.1 MB, free: 2.797 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01708, allocations: 0 / 287.1 MB, free: 2.797 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002739/0.01735, allocations: 103.8 kB / 287.2 MB, free: 2.695 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 0.0001022/0.01746, allocations: 103.2 kB / 287.3 MB, free: 2.586 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004684/0.01792, allocations: 486.8 kB / 287.7 MB, free: 2.074 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.01793, allocations: 0 / 287.7 MB, free: 2.074 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.01817, allocations: 427.3 kB / 288.2 MB, free: 1.617 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.01846, allocations: 51.52 kB / 288.2 MB, free: 1.57 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008715/0.01933, allocations: 481.9 kB / 288.7 MB, free: 1.074 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.826e-05/0.01939, allocations: 96.23 kB / 288.8 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.585e-05/0.01945, allocations: 21.95 kB / 288.8 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.01949, allocations: 20.5 kB / 288.8 MB, free: 0.918 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.0195, allocations: 0 / 288.8 MB, free: 0.918 MB / 266.7 MB Notification: Performance of Templates: time 0.005967/0.02546, allocations: 3.598 MB / 292.4 MB, free: 13.36 MB / 282.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.89761238405481]