Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.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.001366/0.001366, allocations: 80.92 kB / 22.29 MB, free: 2.207 MB / 18.57 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.001855/0.001855, allocations: 166.5 kB / 25.7 MB, free: 8.406 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9563/0.9563, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor") translateModel(Modelica.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.025e-05/2.179e-05, allocations: 6.25 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.002478/0.0025, allocations: 2.214 MB / 253.8 MB, free: 5 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006544/0.003155, allocations: 0.5072 MB / 254.3 MB, free: 4.484 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.086e-05/0.003225, allocations: 4 kB / 254.3 MB, free: 4.48 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.003357, allocations: 23.78 kB / 254.3 MB, free: 4.457 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.088e-05/0.003427, allocations: 43.58 kB / 254.4 MB, free: 4.414 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001633/0.003591, allocations: 43.88 kB / 254.4 MB, free: 4.371 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001446/0.003735, allocations: 159.2 kB / 254.6 MB, free: 4.215 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.003839, allocations: 38.31 kB / 254.6 MB, free: 4.18 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.003958, allocations: 99.66 kB / 254.7 MB, free: 4.082 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.061e-05/0.004039, allocations: 47.83 kB / 254.7 MB, free: 4.035 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.00406, allocations: 16 kB / 254.8 MB, free: 4.02 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.539e-05/0.004125, allocations: 20 kB / 254.8 MB, free: 4 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.696e-05/0.004152, allocations: 31.89 kB / 254.8 MB, free: 3.969 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.733e-05/0.00419, allocations: 51.84 kB / 254.9 MB, free: 3.918 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.004334, allocations: 103.7 kB / 255 MB, free: 3.816 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.004335, allocations: 0 / 255 MB, free: 3.816 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.004336, allocations: 0 / 255 MB, free: 3.816 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.00434, allocations: 4 kB / 255 MB, free: 3.812 MB / 234.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.0003577/0.004698, allocations: 340.5 kB / 255.3 MB, free: 3.457 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.004727, allocations: 11.98 kB / 255.3 MB, free: 3.445 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.956e-05/0.004817, allocations: 36.84 kB / 255.3 MB, free: 3.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.004946, allocations: 137.5 kB / 255.5 MB, free: 3.25 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.669e-06/0.004956, allocations: 8.609 kB / 255.5 MB, free: 3.242 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.00497, allocations: 16.36 kB / 255.5 MB, free: 3.227 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000155/0.005125, allocations: 130.5 kB / 255.6 MB, free: 3.086 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.005132, allocations: 192 / 255.6 MB, free: 3.086 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.005141, allocations: 4.375 kB / 255.6 MB, free: 3.082 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.005149, allocations: 7.938 kB / 255.6 MB, free: 3.074 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.417e-05/0.005194, allocations: 28.62 kB / 255.7 MB, free: 3.047 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003863/0.00558, allocations: 346.5 kB / 256 MB, free: 2.68 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.005724, allocations: 58.55 kB / 256.1 MB, free: 2.613 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.144e-05/0.005746, allocations: 16.8 kB / 256.1 MB, free: 2.594 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.005755, allocations: 0 / 256.1 MB, free: 2.594 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.005776, allocations: 34.56 kB / 256.1 MB, free: 2.551 MB / 234.7 MB Notification: Performance of pre-optimization done (n=6): time 7.11e-07/0.005777, allocations: 0 / 256.1 MB, free: 2.551 MB / 234.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002856/0.006062, allocations: 134.4 kB / 256.2 MB, free: 2.41 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.203e-05/0.006084, allocations: 51.41 kB / 256.3 MB, free: 2.348 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.082e-05/0.006155, allocations: 142.6 kB / 256.4 MB, free: 2.195 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.006166, allocations: 25.7 kB / 256.5 MB, free: 2.164 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.006211, allocations: 124.1 kB / 256.6 MB, free: 2.039 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.179e-05/0.006223, allocations: 23.78 kB / 256.6 MB, free: 2.016 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.006252, allocations: 29.7 kB / 256.6 MB, free: 1.98 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.919e-05/0.006321, allocations: 318.8 kB / 256.9 MB, free: 1.66 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.329e-05/0.006334, allocations: 11.98 kB / 257 MB, free: 1.648 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.343e-05/0.006358, allocations: 26.56 kB / 257 MB, free: 1.613 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.32e-05/0.006401, allocations: 42.5 kB / 257 MB, free: 1.559 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.006403, allocations: 0 / 257 MB, free: 1.559 MB / 234.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001075/0.00651, allocations: 94.36 kB / 257.1 MB, free: 1.457 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.00652, allocations: 12.06 kB / 257.1 MB, free: 1.445 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.006525, allocations: 0 / 257.1 MB, free: 1.445 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000123/0.006648, allocations: 28.78 kB / 257.2 MB, free: 1.414 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.029e-05/0.006678, allocations: 11.98 kB / 257.2 MB, free: 1.402 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008197/0.007498, allocations: 1.41 MB / 258.6 MB, free: 15.91 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.877e-05/0.007536, allocations: 7.938 kB / 258.6 MB, free: 15.9 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.007544, allocations: 3.984 kB / 258.6 MB, free: 15.9 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 5.583e-05/0.0076, allocations: 117.8 kB / 258.7 MB, free: 15.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.798e-05/0.007618, allocations: 11.88 kB / 258.7 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.379e-05/0.007632, allocations: 16.77 kB / 258.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.52e-07/0.007632, allocations: 0 / 258.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-07/0.007633, allocations: 4.031 kB / 258.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.007635, allocations: 0 / 258.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.283e-05/0.007728, allocations: 97.8 kB / 258.8 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.00773, allocations: 3.984 kB / 258.8 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.462e-05/0.007744, allocations: 4 kB / 258.8 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.147e-05/0.007816, allocations: 28.84 kB / 258.9 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.159e-06/0.007821, allocations: 4.062 kB / 258.9 MB, free: 15.58 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006345/0.008455, allocations: 1.41 MB / 260.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.008456, allocations: 80 / 260.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.008579, allocations: 172.2 kB / 260.5 MB, free: 13.9 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.616e-06/0.008588, allocations: 11.98 kB / 260.5 MB, free: 13.89 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-06/0.008594, allocations: 0 / 260.5 MB, free: 13.89 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.804e-05/0.008642, allocations: 11.98 kB / 260.5 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.356e-05/0.008665, allocations: 4.031 kB / 260.5 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-06/0.00867, allocations: 8.172 kB / 260.5 MB, free: 13.87 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.604e-05/0.008696, allocations: 28.83 kB / 260.5 MB, free: 13.84 MB / 250.7 MB Notification: Performance of sort global known variables: time 2e-08/0.008696, allocations: 0 / 260.5 MB, free: 13.84 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001872/0.008884, allocations: 39.89 kB / 260.6 MB, free: 13.8 MB / 250.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 6.119e-05/0.008945, allocations: 76.42 kB / 260.6 MB, free: 13.71 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000184/0.009129, allocations: 178.4 kB / 260.8 MB, free: 13.52 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.009131, allocations: 128 / 260.8 MB, free: 13.52 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.277e-05/0.009214, allocations: 159.3 kB / 261 MB, free: 13.35 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.009337, allocations: 15.88 kB / 261 MB, free: 13.34 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004901/0.009827, allocations: 277.9 kB / 261.2 MB, free: 13.04 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.505e-05/0.009862, allocations: 63.34 kB / 261.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.824e-05/0.00989, allocations: 8.484 kB / 261.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.902e-05/0.009939, allocations: 55.38 kB / 261.4 MB, free: 12.89 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.00994, allocations: 0 / 261.4 MB, free: 12.89 MB / 250.7 MB Notification: Performance of Templates: time 0.003014/0.01295, allocations: 1.565 MB / 262.9 MB, free: 11.34 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingResistor/HeatingResistor.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.6354434243403375]