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.001235/0.001235, allocations: 79.91 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.001197/0.001197, 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.9991/0.9991, allocations: 173.4 MB / 201.1 MB, free: 9.336 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 1.563e-06/1.563e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.645e-05/2.801e-05, allocations: 6.25 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003188/0.003216, allocations: 2.189 MB / 270.2 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000882/0.004098, allocations: 0.5338 MB / 270.7 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.004198, allocations: 4 kB / 270.7 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.004331, allocations: 23.78 kB / 270.7 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.4e-05/0.004415, allocations: 47.52 kB / 270.8 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.004671, allocations: 43.88 kB / 270.8 MB, free: 3.578 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.004862, allocations: 167.1 kB / 271 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.005012, allocations: 41.59 kB / 271 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.005166, allocations: 91.78 kB / 271.1 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.005269, allocations: 47.88 kB / 271.2 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.594e-05/0.005295, allocations: 16 kB / 271.2 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.672e-05/0.005362, allocations: 20 kB / 271.2 MB, free: 3.195 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.046e-05/0.005392, allocations: 27.86 kB / 271.2 MB, free: 3.168 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.496e-05/0.005447, allocations: 51.89 kB / 271.3 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.00566, allocations: 115.5 kB / 271.4 MB, free: 3.004 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.005663, allocations: 0 / 271.4 MB, free: 3.004 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.005663, allocations: 0 / 271.4 MB, free: 3.004 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.005669, allocations: 0 / 271.4 MB, free: 3.004 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.0005542/0.006223, allocations: 468.2 kB / 271.9 MB, free: 2.508 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.006271, allocations: 12.92 kB / 271.9 MB, free: 2.496 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.006426, allocations: 28.84 kB / 271.9 MB, free: 2.469 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.006646, allocations: 147.5 kB / 272 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.006664, allocations: 12.55 kB / 272.1 MB, free: 2.289 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.006691, allocations: 12.38 kB / 272.1 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.006933, allocations: 130.5 kB / 272.2 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.006945, allocations: 192 / 272.2 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.006967, allocations: 8.375 kB / 272.2 MB, free: 2.129 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.006979, allocations: 3.938 kB / 272.2 MB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.556e-05/0.007074, allocations: 40.67 kB / 272.2 MB, free: 2.086 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007575/0.007832, allocations: 494.5 kB / 272.7 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.008062, allocations: 71.12 kB / 272.8 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.146e-05/0.008103, allocations: 23.8 kB / 272.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.008122, allocations: 0 / 272.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.008152, allocations: 37.33 kB / 272.9 MB, free: 1.398 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.008153, allocations: 0 / 272.9 MB, free: 1.398 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004612/0.008614, allocations: 145.2 kB / 273 MB, free: 1.246 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.008643, allocations: 51.41 kB / 273 MB, free: 1.184 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.008766, allocations: 201.9 kB / 273.2 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.008779, allocations: 29.64 kB / 273.3 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.021e-05/0.00886, allocations: 174.8 kB / 273.4 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.008877, allocations: 27.78 kB / 273.5 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.008919, allocations: 27.38 kB / 273.5 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002737/0.009192, allocations: 0.4922 MB / 274 MB, free: 192 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.985e-05/0.009222, allocations: 11.94 kB / 274 MB, free: 180 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.529e-05/0.009267, allocations: 39.05 kB / 274 MB, free: 128 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.201e-05/0.009349, allocations: 55 kB / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.009352, allocations: 0 / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002131/0.009565, allocations: 113.2 kB / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.009583, allocations: 11.94 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.009588, allocations: 256 / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001827/0.009771, allocations: 39.66 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.294e-05/0.009814, allocations: 11.94 kB / 274.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.01115, allocations: 2.079 MB / 276.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.301e-05/0.0112, allocations: 19.88 kB / 276.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.01121, allocations: 0 / 276.4 MB, free: 13.65 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 (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 8.432e-05/0.01129, allocations: 164.6 kB / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.01133, allocations: 7.953 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.746e-05/0.01134, allocations: 12.78 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.01135, allocations: 4.031 kB / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.01135, allocations: 0 / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.01135, allocations: 3.938 kB / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.01151, allocations: 152.7 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.01152, allocations: 4 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.316e-05/0.01154, allocations: 4 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001148/0.01165, allocations: 39.59 kB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.01166, allocations: 0 / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/0.01273, allocations: 2.079 MB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01273, allocations: 0 / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.01294, allocations: 251.5 kB / 279.1 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.242e-05/0.01295, allocations: 7.953 kB / 279.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.202e-05/0.01296, allocations: 4 kB / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.177e-05/0.01303, allocations: 4.016 kB / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.01307, allocations: 15.92 kB / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.01308, allocations: 4 kB / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.89e-05/0.01315, allocations: 146.4 kB / 279.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01315, allocations: 4 kB / 279.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000344/0.01349, allocations: 35.89 kB / 279.3 MB, free: 10.53 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 0.0001042/0.0136, allocations: 103.2 kB / 279.4 MB, free: 10.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003227/0.01392, allocations: 241.1 kB / 279.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01392, allocations: 4 kB / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.01406, allocations: 205.5 kB / 279.8 MB, free: 9.941 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.01432, allocations: 12.12 kB / 279.8 MB, free: 9.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007436/0.01507, allocations: 278.4 kB / 280.1 MB, free: 9.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.634e-05/0.01511, allocations: 63.34 kB / 280.2 MB, free: 9.547 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.567e-05/0.01515, allocations: 8.531 kB / 280.2 MB, free: 9.539 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.898e-05/0.01518, allocations: 12.48 kB / 280.2 MB, free: 9.523 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01518, allocations: 0 / 280.2 MB, free: 9.523 MB / 266.7 MB Notification: Performance of Templates: time 0.004114/0.01929, allocations: 1.5 MB / 281.7 MB, free: 8.039 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.8732579587958753]