Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.001402/0.001402, allocations: 82.28 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.001036/0.001036, allocations: 141.2 kB / 25.59 MB, free: 8.906 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 1.011/1.011, allocations: 173.4 MB / 202.2 MB, free: 8.262 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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.72e-07/9.72e-07, allocations: 0 / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.356e-05/2.454e-05, allocations: 5.266 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.00233/0.002355, allocations: 2.161 MB / 271.4 MB, free: 7.605 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005626/0.002917, allocations: 0.5406 MB / 271.9 MB, free: 7.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.157e-05/0.002969, allocations: 0 / 271.9 MB, free: 7.062 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.063e-05/0.003029, allocations: 24.97 kB / 271.9 MB, free: 7.039 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.548e-05/0.003085, allocations: 51.5 kB / 272 MB, free: 6.988 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001007/0.003186, allocations: 36.48 kB / 272 MB, free: 6.953 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.003295, allocations: 167.7 kB / 272.2 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.481e-05/0.00337, allocations: 47.33 kB / 272.2 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.76e-05/0.003458, allocations: 95.73 kB / 272.3 MB, free: 6.645 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.866e-05/0.003517, allocations: 47.88 kB / 272.4 MB, free: 6.598 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.003532, allocations: 12 kB / 272.4 MB, free: 6.586 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.554e-05/0.003567, allocations: 16.62 kB / 272.4 MB, free: 6.57 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.965e-05/0.003587, allocations: 31.84 kB / 272.4 MB, free: 6.539 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.296e-05/0.00362, allocations: 49.16 kB / 272.5 MB, free: 6.492 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.003732, allocations: 111.6 kB / 272.6 MB, free: 6.383 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.382e-06/0.003734, allocations: 0 / 272.6 MB, free: 6.383 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.5e-07/0.003734, allocations: 0 / 272.6 MB, free: 6.383 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.354e-06/0.003736, allocations: 0.5312 kB / 272.6 MB, free: 6.383 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0002917/0.004028, allocations: 474.8 kB / 273 MB, free: 5.883 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.096e-05/0.004049, allocations: 8.031 kB / 273.1 MB, free: 5.875 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.169e-05/0.004121, allocations: 24.84 kB / 273.1 MB, free: 5.852 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.004223, allocations: 156.3 kB / 273.2 MB, free: 5.672 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.614e-06/0.004231, allocations: 8.609 kB / 273.2 MB, free: 5.664 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.004242, allocations: 14.14 kB / 273.3 MB, free: 5.652 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.004343, allocations: 122.5 kB / 273.4 MB, free: 5.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.208e-06/0.004347, allocations: 192 / 273.4 MB, free: 5.52 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.004355, allocations: 4.375 kB / 273.4 MB, free: 5.516 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.004358, allocations: 7.938 kB / 273.4 MB, free: 5.508 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.682e-05/0.004405, allocations: 33.81 kB / 273.4 MB, free: 5.477 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003551/0.00476, allocations: 471.2 kB / 273.9 MB, free: 4.977 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.004876, allocations: 59.12 kB / 273.9 MB, free: 4.906 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.413e-05/0.0049, allocations: 23.73 kB / 274 MB, free: 4.879 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.934e-06/0.004908, allocations: 4 kB / 274 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.004922, allocations: 33.39 kB / 274 MB, free: 4.832 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 7.22e-07/0.004922, allocations: 0 / 274 MB, free: 4.832 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002574/0.00518, allocations: 145.1 kB / 274.1 MB, free: 4.68 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.846e-05/0.005198, allocations: 51.41 kB / 274.2 MB, free: 4.617 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.545e-05/0.005274, allocations: 193.9 kB / 274.4 MB, free: 4.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.005285, allocations: 29.7 kB / 274.4 MB, free: 4.375 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.317e-05/0.005338, allocations: 174.8 kB / 274.6 MB, free: 4.195 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.005357, allocations: 31.77 kB / 274.6 MB, free: 4.164 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.005385, allocations: 27.38 kB / 274.6 MB, free: 4.129 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.413e-05/0.005479, allocations: 0.4961 MB / 275.1 MB, free: 3.621 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.225e-05/0.005491, allocations: 4 kB / 275.1 MB, free: 3.617 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.519e-05/0.005516, allocations: 43.03 kB / 275.2 MB, free: 3.562 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.01e-05/0.005556, allocations: 46.94 kB / 275.2 MB, free: 3.504 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.005558, allocations: 4 kB / 275.2 MB, free: 3.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001123/0.005671, allocations: 109.2 kB / 275.3 MB, free: 3.383 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.836e-06/0.005679, allocations: 8 kB / 275.3 MB, free: 3.375 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-06/0.005682, allocations: 0 / 275.3 MB, free: 3.375 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.506e-05/0.005777, allocations: 39.59 kB / 275.4 MB, free: 3.332 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.462e-05/0.005802, allocations: 4 kB / 275.4 MB, free: 3.328 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000865/0.006667, allocations: 2.06 MB / 277.4 MB, free: 1.156 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.397e-05/0.006701, allocations: 7.891 kB / 277.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-06/0.006705, allocations: 4 kB / 277.5 MB, free: 1.145 MB / 250.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 6.46e-05/0.006769, allocations: 164.5 kB / 277.6 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.066e-05/0.00679, allocations: 11.89 kB / 277.6 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.959e-06/0.0068, allocations: 12.78 kB / 277.6 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.42e-07/0.006801, allocations: 4.031 kB / 277.6 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.21e-07/0.006801, allocations: 0 / 277.6 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.006804, allocations: 3.984 kB / 277.6 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.006906, allocations: 125.2 kB / 277.8 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.006906, allocations: 0 / 277.8 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.367e-05/0.00692, allocations: 7.984 kB / 277.8 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.137e-05/0.006991, allocations: 35.8 kB / 277.8 MB, free: 0.75 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-06/0.006996, allocations: 4 kB / 277.8 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008409/0.007837, allocations: 2.057 MB / 279.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.007838, allocations: 0 / 279.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001391/0.007977, allocations: 243.4 kB / 280.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.885e-06/0.007985, allocations: 7.953 kB / 280.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-06/0.007992, allocations: 0 / 280.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.954e-05/0.008041, allocations: 12.02 kB / 280.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.008056, allocations: 8.016 kB / 280.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.008061, allocations: 8.188 kB / 280.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.648e-05/0.008108, allocations: 141.9 kB / 280.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.008108, allocations: 0 / 280.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002238/0.008332, allocations: 43.89 kB / 280.3 MB, free: 14.09 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 5.52e-05/0.008387, allocations: 91.25 kB / 280.4 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001972/0.008584, allocations: 245.2 kB / 280.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.02e-07/0.008585, allocations: 0 / 280.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.008687, allocations: 209.5 kB / 280.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.008833, allocations: 16.11 kB / 280.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004603/0.009293, allocations: 278.4 kB / 281.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.539e-05/0.009329, allocations: 71.33 kB / 281.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.339e-05/0.009352, allocations: 0.5 kB / 281.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.131e-05/0.009403, allocations: 82.19 kB / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of SimCode: time 4.01e-07/0.009404, allocations: 0 / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of Templates: time 0.003222/0.01263, allocations: 1.612 MB / 282.9 MB, free: 11.44 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.7070674933493137]