Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.001423/0.001423, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009427/0.0009427, allocations: 160.8 kB / 25.61 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9147/0.9147, allocations: 177.1 MB / 206 MB, free: 4.512 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 3.938 kB / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.399e-05/2.537e-05, allocations: 2.312 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002773/0.002798, allocations: 2.533 MB / 276.7 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.004067, allocations: 0.6824 MB / 277.4 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.004182, allocations: 4 kB / 277.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.004321, allocations: 40.3 kB / 277.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.004431, allocations: 81.19 kB / 277.5 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.004745, allocations: 95.75 kB / 277.6 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002392/0.004984, allocations: 287.2 kB / 277.9 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.005127, allocations: 59.03 kB / 278 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.00535, allocations: 171.6 kB / 278.1 MB, free: 472 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.005474, allocations: 87.72 kB / 278.2 MB, free: 384 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.139e-05/0.005506, allocations: 24 kB / 278.3 MB, free: 360 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.558e-05/0.005591, allocations: 43.92 kB / 278.3 MB, free: 316 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.039e-05/0.005632, allocations: 47.81 kB / 278.3 MB, free: 268 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.724e-05/0.005699, allocations: 95.75 kB / 278.4 MB, free: 172 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.005955, allocations: 199.4 kB / 278.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.005959, allocations: 0 / 278.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.00596, allocations: 3.938 kB / 278.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.005964, allocations: 0 / 278.6 MB, free: 15.96 MB / 266.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.000579/0.006543, allocations: 0.5622 MB / 279.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.006581, allocations: 12.03 kB / 279.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.006722, allocations: 48.8 kB / 279.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002096/0.006932, allocations: 189 kB / 279.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.006949, allocations: 20.88 kB / 279.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.24e-05/0.006982, allocations: 16.38 kB / 279.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.007186, allocations: 196.8 kB / 279.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.007197, allocations: 192 / 279.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.007214, allocations: 12.38 kB / 279.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.007222, allocations: 7.938 kB / 279.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.007325, allocations: 65.38 kB / 279.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007986/0.008123, allocations: 0.6488 MB / 280.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.008312, allocations: 107.1 kB / 280.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.825e-05/0.008401, allocations: 59.59 kB / 280.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.008419, allocations: 8 kB / 280.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.008444, allocations: 41.39 kB / 280.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.008445, allocations: 0 / 280.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006299/0.009075, allocations: 261.2 kB / 280.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.009099, allocations: 55.41 kB / 280.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.009212, allocations: 221.8 kB / 281.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.009227, allocations: 33.7 kB / 281.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.837e-05/0.009305, allocations: 191.1 kB / 281.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/0.009339, allocations: 67.42 kB / 281.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.967e-05/0.009388, allocations: 43.34 kB / 281.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.009505, allocations: 0.4962 MB / 282 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.355e-05/0.009539, allocations: 19.98 kB / 282 MB, free: 12.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.978e-05/0.009588, allocations: 49.39 kB / 282 MB, free: 12.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.339e-05/0.009672, allocations: 75.28 kB / 282.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.009674, allocations: 7.938 kB / 282.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00019/0.009864, allocations: 160.4 kB / 282.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.009877, allocations: 6.344 kB / 282.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.009882, allocations: 4.031 kB / 282.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005732/0.01045, allocations: 171.5 kB / 282.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.091e-05/0.01054, allocations: 31.92 kB / 282.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003676/0.0109, allocations: 0.8545 MB / 283.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.331e-05/0.01097, allocations: 15.89 kB / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.01097, allocations: 4 kB / 283.3 MB, free: 10.97 MB / 266.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 8.542e-05/0.01106, allocations: 164.5 kB / 283.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.01109, allocations: 27.94 kB / 283.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002161/0.01131, allocations: 167 kB / 283.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.01131, allocations: 0 / 283.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.01132, allocations: 4 kB / 283.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.01132, allocations: 0 / 283.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/0.01177, allocations: 476.9 kB / 284.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.01177, allocations: 4 kB / 284.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.831e-05/0.01185, allocations: 27.92 kB / 284.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000452/0.0123, allocations: 159.5 kB / 284.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.01231, allocations: 16 kB / 284.4 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003281/0.01264, allocations: 0.8545 MB / 285.2 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01264, allocations: 0 / 285.2 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.013, allocations: 370.9 kB / 285.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.417e-05/0.01302, allocations: 23.83 kB / 285.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.01304, allocations: 8.062 kB / 285.6 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.606e-05/0.01311, allocations: 8 kB / 285.6 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.143e-05/0.01314, allocations: 15.97 kB / 285.6 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.01315, allocations: 0 / 285.6 MB, free: 8.551 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001233/0.01327, allocations: 164.7 kB / 285.8 MB, free: 8.391 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01327, allocations: 0 / 285.8 MB, free: 8.391 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002305/0.0135, allocations: 59.84 kB / 285.9 MB, free: 8.332 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.0001236/0.01362, allocations: 115.2 kB / 286 MB, free: 8.211 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.01381, allocations: 95.84 kB / 286.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01382, allocations: 0 / 286.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.576e-05/0.01389, allocations: 68.7 kB / 286.1 MB, free: 8.047 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.01412, allocations: 28.02 kB / 286.2 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008022/0.01493, allocations: 0.4911 MB / 286.7 MB, free: 7.488 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.591e-05/0.01497, allocations: 80.22 kB / 286.7 MB, free: 7.391 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.822e-05/0.01502, allocations: 17.47 kB / 286.7 MB, free: 7.371 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.835e-05/0.0151, allocations: 98.17 kB / 286.8 MB, free: 7.273 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.0151, allocations: 0 / 286.8 MB, free: 7.273 MB / 266.7 MB Notification: Performance of Templates: time 0.00454/0.01964, allocations: 2.469 MB / 289.3 MB, free: 4.844 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6664823964238167]