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.001156/0.001156, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001954/0.001954, allocations: 148.9 kB / 24.81 MB, free: 9.27 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.003/1.003, allocations: 173.3 MB / 201.4 MB, free: 9.23 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.252e-06/1.252e-06, allocations: 0 / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.173e-05/1.298e-05, allocations: 6.312 kB / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003106/0.003119, allocations: 2.524 MB / 270.9 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009358/0.004055, allocations: 0.6425 MB / 271.6 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.004155, allocations: 0 / 271.6 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.004267, allocations: 35.66 kB / 271.6 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.902e-05/0.004366, allocations: 79.27 kB / 271.7 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002517/0.004618, allocations: 91.7 kB / 271.8 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002302/0.004848, allocations: 290.5 kB / 272.1 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.004985, allocations: 60.55 kB / 272.1 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.005194, allocations: 159.7 kB / 272.3 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.005314, allocations: 83.77 kB / 272.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.088e-05/0.005344, allocations: 28 kB / 272.4 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.264e-05/0.005417, allocations: 35.98 kB / 272.4 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.893e-05/0.005456, allocations: 55.77 kB / 272.5 MB, free: 2.113 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.949e-05/0.005516, allocations: 83.81 kB / 272.6 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.005738, allocations: 207.2 kB / 272.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.005741, allocations: 0 / 272.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.005741, allocations: 0 / 272.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.005744, allocations: 0 / 272.8 MB, free: 1.828 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.000504/0.006248, allocations: 0.5623 MB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.006282, allocations: 8.922 kB / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.006333, allocations: 44.8 kB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.006496, allocations: 180.2 kB / 273.6 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.00651, allocations: 16.88 kB / 273.6 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.006539, allocations: 20.38 kB / 273.6 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.006727, allocations: 200.7 kB / 273.8 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.006736, allocations: 192 / 273.8 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.00675, allocations: 16.38 kB / 273.8 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.006756, allocations: 7.938 kB / 273.8 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.023e-05/0.006846, allocations: 61.44 kB / 273.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000694/0.00754, allocations: 0.6333 MB / 274.5 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.007687, allocations: 119 kB / 274.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.254e-05/0.00777, allocations: 59.59 kB / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.007786, allocations: 4 kB / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.007808, allocations: 37.39 kB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.00781, allocations: 4 kB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005647/0.008374, allocations: 268 kB / 275 MB, free: 15.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.156e-05/0.008396, allocations: 51.41 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.008507, allocations: 225.8 kB / 275.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.008523, allocations: 33.7 kB / 275.3 MB, free: 15.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.612e-05/0.0086, allocations: 187.1 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.008632, allocations: 63.47 kB / 275.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.977e-05/0.008682, allocations: 47.28 kB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.008809, allocations: 0.5001 MB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.028e-05/0.008839, allocations: 23.92 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.811e-05/0.008887, allocations: 50.52 kB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.509e-05/0.008972, allocations: 75.3 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.008975, allocations: 3.938 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001807/0.009156, allocations: 157.1 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.009167, allocations: 8 kB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.009172, allocations: 0 / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005412/0.009713, allocations: 179.4 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.2e-05/0.009785, allocations: 27.98 kB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006153/0.0104, allocations: 0.839 MB / 277.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.246e-05/0.01045, allocations: 15.89 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.01046, allocations: 8.031 kB / 277.5 MB, free: 12.85 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.894e-05/0.01055, allocations: 168.5 kB / 277.6 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.01058, allocations: 23.91 kB / 277.6 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002035/0.01078, allocations: 170 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.01079, allocations: 0 / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.32e-07/0.01079, allocations: 0 / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.01079, allocations: 7.984 kB / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.0112, allocations: 473 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.01121, allocations: 0 / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.667e-05/0.01128, allocations: 31.97 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004133/0.0117, allocations: 155.5 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.01171, allocations: 3.984 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002993/0.01201, allocations: 0.8545 MB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.01201, allocations: 4 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003416/0.01235, allocations: 382.9 kB / 279.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.984e-05/0.01237, allocations: 15.91 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.01239, allocations: 4 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.241e-05/0.01245, allocations: 11.98 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.573e-05/0.01248, allocations: 7.984 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.01248, allocations: 4 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.955e-05/0.01254, allocations: 176 kB / 279.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01254, allocations: 0 / 279.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001854/0.01273, allocations: 59.83 kB / 280 MB, free: 10.21 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.0001139/0.01284, allocations: 107.3 kB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001823/0.01303, allocations: 104.6 kB / 280.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01303, allocations: 0 / 280.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.214e-05/0.0131, allocations: 63.69 kB / 280.2 MB, free: 9.918 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.0133, allocations: 22.81 kB / 280.3 MB, free: 9.898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007605/0.01406, allocations: 0.4959 MB / 280.8 MB, free: 9.367 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.843e-05/0.01411, allocations: 80.22 kB / 280.8 MB, free: 9.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.264e-05/0.01415, allocations: 9.5 kB / 280.8 MB, free: 9.262 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.156e-05/0.01423, allocations: 102.2 kB / 280.9 MB, free: 9.16 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01423, allocations: 0 / 280.9 MB, free: 9.16 MB / 266.7 MB Notification: Performance of Templates: time 0.004717/0.01895, allocations: 2.401 MB / 283.3 MB, free: 6.801 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.782159410882741]