Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.001217/0.001217, allocations: 80.72 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.00132/0.00132, allocations: 142.4 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 0.9741/0.9741, allocations: 173.4 MB / 202.2 MB, free: 8.312 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.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.288e-05/1.408e-05, allocations: 2.312 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002527/0.002541, allocations: 2.518 MB / 271.7 MB, free: 7.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.00371, allocations: 0.6393 MB / 272.4 MB, free: 6.609 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.003819, allocations: 4.531 kB / 272.4 MB, free: 6.605 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.003973, allocations: 35.64 kB / 272.4 MB, free: 6.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.004085, allocations: 82.38 kB / 272.5 MB, free: 6.492 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.004365, allocations: 87.75 kB / 272.6 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.004607, allocations: 290.6 kB / 272.8 MB, free: 6.121 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.004737, allocations: 60.53 kB / 272.9 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.004894, allocations: 161 kB / 273.1 MB, free: 5.902 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.005005, allocations: 87.77 kB / 273.2 MB, free: 5.816 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.688e-05/0.005032, allocations: 24 kB / 273.2 MB, free: 5.793 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.967e-05/0.005091, allocations: 32.61 kB / 273.2 MB, free: 5.762 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.551e-05/0.005127, allocations: 59.75 kB / 273.3 MB, free: 5.703 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.818e-05/0.005185, allocations: 84.42 kB / 273.3 MB, free: 5.621 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.005382, allocations: 203.2 kB / 273.5 MB, free: 5.422 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.005384, allocations: 1.25 kB / 273.5 MB, free: 5.422 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.51e-07/0.005384, allocations: 0 / 273.5 MB, free: 5.422 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.005388, allocations: 0 / 273.5 MB, free: 5.422 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005203/0.005908, allocations: 0.5572 MB / 274.1 MB, free: 4.832 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.855e-05/0.005936, allocations: 8.031 kB / 274.1 MB, free: 4.824 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.392e-05/0.00599, allocations: 44.8 kB / 274.2 MB, free: 4.781 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.006164, allocations: 190.2 kB / 274.3 MB, free: 4.57 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.00618, allocations: 12.88 kB / 274.4 MB, free: 4.555 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.006209, allocations: 24.38 kB / 274.4 MB, free: 4.531 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.006396, allocations: 193.5 kB / 274.6 MB, free: 4.324 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.006406, allocations: 0.6875 kB / 274.6 MB, free: 4.324 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.006419, allocations: 8.375 kB / 274.6 MB, free: 4.316 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.006427, allocations: 15.94 kB / 274.6 MB, free: 4.301 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.966e-05/0.006526, allocations: 65.38 kB / 274.7 MB, free: 4.238 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006692/0.007196, allocations: 0.6333 MB / 275.3 MB, free: 3.559 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.007342, allocations: 122.9 kB / 275.4 MB, free: 3.426 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.963e-05/0.007421, allocations: 59.66 kB / 275.5 MB, free: 3.363 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.007436, allocations: 4 kB / 275.5 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.007454, allocations: 33.39 kB / 275.5 MB, free: 3.316 MB / 250.7 MB Notification: Performance of pre-optimization done (n=17): time 1.233e-06/0.007455, allocations: 0 / 275.5 MB, free: 3.316 MB / 250.7 MB Notification: Performance of matching and sorting (n=17): time 0.00056/0.008015, allocations: 263.1 kB / 275.8 MB, free: 3.051 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.128e-05/0.008036, allocations: 55.41 kB / 275.8 MB, free: 2.984 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.679e-05/0.008133, allocations: 217.8 kB / 276 MB, free: 2.754 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.00815, allocations: 33.64 kB / 276.1 MB, free: 2.715 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.437e-05/0.008225, allocations: 207.1 kB / 276.3 MB, free: 2.508 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.008254, allocations: 59.47 kB / 276.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.359e-05/0.008298, allocations: 43.34 kB / 276.4 MB, free: 2.398 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.008405, allocations: 0.4962 MB / 276.9 MB, free: 1.891 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.804e-05/0.008433, allocations: 15.98 kB / 276.9 MB, free: 1.875 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.476e-05/0.008477, allocations: 53.33 kB / 276.9 MB, free: 1.816 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.901e-05/0.008556, allocations: 79.3 kB / 277 MB, free: 1.73 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.008559, allocations: 3.938 kB / 277 MB, free: 1.727 MB / 250.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001711/0.00873, allocations: 164.2 kB / 277.2 MB, free: 1.559 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.008741, allocations: 4 kB / 277.2 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/0.008744, allocations: 0 / 277.2 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005456/0.009289, allocations: 171.5 kB / 277.3 MB, free: 1.383 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.098e-05/0.00936, allocations: 31.92 kB / 277.4 MB, free: 1.352 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003147/0.009675, allocations: 0.839 MB / 278.2 MB, free: 492 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.215e-05/0.009727, allocations: 15.89 kB / 278.2 MB, free: 476 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.009735, allocations: 3.984 kB / 278.2 MB, free: 472 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 13 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 7.571e-05/0.009811, allocations: 168.5 kB / 278.4 MB, free: 292 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.922e-05/0.00984, allocations: 23.91 kB / 278.4 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/0.01003, allocations: 167 kB / 278.6 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01003, allocations: 7.938 kB / 278.6 MB, free: 84 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.01004, allocations: 0 / 278.6 MB, free: 84 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.01004, allocations: 0 / 278.6 MB, free: 84 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004208/0.01046, allocations: 479.5 kB / 279.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.01046, allocations: 4.031 kB / 279.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003505/0.01081, allocations: 23.98 kB / 279.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.01124, allocations: 163.4 kB / 279.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.01125, allocations: 8 kB / 279.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003179/0.01157, allocations: 0.8545 MB / 280.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01157, allocations: 0 / 280.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003504/0.01192, allocations: 378.9 kB / 280.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.763e-05/0.01194, allocations: 23.94 kB / 280.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.01196, allocations: 3.984 kB / 280.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.618e-05/0.01202, allocations: 15.94 kB / 280.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.397e-05/0.01205, allocations: 7.984 kB / 280.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.01205, allocations: 7.984 kB / 280.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.513e-05/0.01211, allocations: 160.7 kB / 280.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01211, allocations: 0 / 280.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001968/0.01231, allocations: 59.83 kB / 280.7 MB, free: 13.82 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (10): * Single equations (assignments): 9 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001028/0.01241, allocations: 115.2 kB / 280.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001697/0.01258, allocations: 107.2 kB / 281 MB, free: 13.58 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.01258, allocations: 0 / 281 MB, free: 13.58 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.246e-05/0.01265, allocations: 64.77 kB / 281 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.01285, allocations: 19.98 kB / 281 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006578/0.01351, allocations: 0.492 MB / 281.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.028e-05/0.01355, allocations: 80.22 kB / 281.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.561e-05/0.01358, allocations: 13.48 kB / 281.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.035e-05/0.01365, allocations: 94.19 kB / 281.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01365, allocations: 0 / 281.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of Templates: time 0.003867/0.01752, allocations: 2.476 MB / 284.2 MB, free: 10.34 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.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.676717257127166]