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.001574/0.001574, allocations: 83.89 kB / 21.18 MB, free: 3.387 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.001729/0.001729, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.939/0.939, allocations: 173.3 MB / 201.1 MB, free: 9.301 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.673e-06/1.673e-06, allocations: 0 / 268 MB, free: 6.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.326e-05/2.494e-05, allocations: 2.312 kB / 268 MB, free: 6.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004637/0.004662, allocations: 3.007 MB / 271 MB, free: 3.355 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.005764, allocations: 0.6815 MB / 271.7 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.00592, allocations: 7.938 kB / 271.7 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.006061, allocations: 55.5 kB / 271.8 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.006222, allocations: 115 kB / 271.9 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.006462, allocations: 95.73 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003471/0.006809, allocations: 422 kB / 272.4 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.006967, allocations: 76.52 kB / 272.4 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003041/0.007271, allocations: 227.5 kB / 272.7 MB, free: 1.684 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.007417, allocations: 127.6 kB / 272.8 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.546e-05/0.007462, allocations: 36 kB / 272.8 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.006e-05/0.007502, allocations: 32 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.957e-05/0.007552, allocations: 71.69 kB / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.007656, allocations: 127.7 kB / 273.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.007926, allocations: 267 kB / 273.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.007928, allocations: 0 / 273.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.00793, allocations: 3.938 kB / 273.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.007936, allocations: 0 / 273.3 MB, free: 1.031 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.0006587/0.008594, allocations: 0.6558 MB / 274 MB, free: 348 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.008632, allocations: 8.031 kB / 274 MB, free: 340 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.85e-05/0.008711, allocations: 64.7 kB / 274 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.008959, allocations: 220 kB / 274.3 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.008978, allocations: 21.03 kB / 274.3 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.009021, allocations: 32.42 kB / 274.3 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.009354, allocations: 361.5 kB / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.009367, allocations: 192 / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.009386, allocations: 12.38 kB / 274.7 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.009398, allocations: 11.94 kB / 274.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.009554, allocations: 99.86 kB / 274.8 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.01062, allocations: 0.8406 MB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.01091, allocations: 182.6 kB / 275.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.021e-05/0.01099, allocations: 63.67 kB / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.01101, allocations: 7.984 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.01104, allocations: 41.39 kB / 275.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.01104, allocations: 0 / 275.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005804/0.01162, allocations: 320.2 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.492e-05/0.01165, allocations: 55.41 kB / 276.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.01181, allocations: 284.3 kB / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.01183, allocations: 29.7 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.01193, allocations: 231.2 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.01197, allocations: 71.39 kB / 276.9 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.01202, allocations: 47.59 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.01215, allocations: 0.5078 MB / 277.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.918e-05/0.01221, allocations: 32.45 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.01229, allocations: 71.97 kB / 277.5 MB, free: 12.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.01243, allocations: 115 kB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01243, allocations: 0 / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002985/0.01273, allocations: 249.2 kB / 277.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.01274, allocations: 7.938 kB / 277.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.01275, allocations: 4.062 kB / 277.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.01301, allocations: 103.2 kB / 278 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.833e-05/0.01311, allocations: 35.92 kB / 278 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.01468, allocations: 3.676 MB / 281.7 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.409e-05/0.01477, allocations: 23.83 kB / 281.7 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.01478, allocations: 8.062 kB / 281.8 MB, free: 8.039 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.11e-05/0.01487, allocations: 164.6 kB / 281.9 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.758e-05/0.01491, allocations: 35.81 kB / 281.9 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.247e-05/0.01493, allocations: 30.27 kB / 282 MB, free: 7.805 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.01493, allocations: 4 kB / 282 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.01494, allocations: 4 kB / 282 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.01494, allocations: 3.938 kB / 282 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004937/0.01543, allocations: 0.5553 MB / 282.5 MB, free: 7.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01544, allocations: 0 / 282.5 MB, free: 7.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.194e-05/0.0155, allocations: 19.98 kB / 282.6 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001835/0.01568, allocations: 103.4 kB / 282.7 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.01569, allocations: 4 kB / 282.7 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.01713, allocations: 3.684 MB / 286.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.01713, allocations: 0 / 286.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002651/0.0174, allocations: 362.7 kB / 286.7 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.214e-05/0.01742, allocations: 23.8 kB / 286.7 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.01744, allocations: 8 kB / 286.7 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.01755, allocations: 28 kB / 286.8 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.01761, allocations: 23.91 kB / 286.8 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.01762, allocations: 15.92 kB / 286.8 MB, free: 2.641 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001022/0.01772, allocations: 197.1 kB / 287 MB, free: 2.445 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01772, allocations: 0 / 287 MB, free: 2.445 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002556/0.01798, allocations: 99.84 kB / 287.1 MB, free: 2.348 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.000102/0.01808, allocations: 103.2 kB / 287.2 MB, free: 2.238 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004513/0.01853, allocations: 482.8 kB / 287.7 MB, free: 1.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.01853, allocations: 0 / 287.7 MB, free: 1.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002068/0.01874, allocations: 435.2 kB / 288.1 MB, free: 1.266 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.01898, allocations: 44.73 kB / 288.1 MB, free: 1.223 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008029/0.01978, allocations: 481.5 kB / 288.6 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.946e-05/0.01984, allocations: 96.25 kB / 288.7 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.295e-05/0.01991, allocations: 17.94 kB / 288.7 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.329e-05/0.01995, allocations: 20.5 kB / 288.7 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of SimCode: time 6.72e-07/0.01995, allocations: 0 / 288.7 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of Templates: time 0.005427/0.02538, allocations: 3.601 MB / 292.3 MB, free: 13.02 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: 3.088482609950006]