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.0009197/0.0009197, 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.0008697/0.0008697, allocations: 141.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.9547/0.9547, 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.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 3.056e-06/3.056e-06, allocations: 4 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.908e-05/2.213e-05, allocations: 6.25 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002782/0.002804, allocations: 2.547 MB / 270.5 MB, free: 3.867 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008544/0.003659, allocations: 0.6425 MB / 271.2 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.607e-05/0.003755, allocations: 4 kB / 271.2 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.00388, allocations: 35.66 kB / 271.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.595e-05/0.003976, allocations: 79.27 kB / 271.3 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.004249, allocations: 95.62 kB / 271.4 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.00448, allocations: 290.6 kB / 271.7 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.004622, allocations: 60.53 kB / 271.7 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.004783, allocations: 159.7 kB / 271.9 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.004897, allocations: 79.78 kB / 272 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.252e-05/0.00493, allocations: 24 kB / 272 MB, free: 2.402 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.095e-05/0.005001, allocations: 43.92 kB / 272 MB, free: 2.359 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.024e-05/0.005041, allocations: 55.75 kB / 272.1 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.406e-05/0.005105, allocations: 87.81 kB / 272.2 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002147/0.00532, allocations: 199.2 kB / 272.4 MB, free: 2.023 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.005322, allocations: 0 / 272.4 MB, free: 2.023 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005322, allocations: 0 / 272.4 MB, free: 2.023 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.005327, allocations: 0 / 272.4 MB, free: 2.023 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.0005759/0.005903, allocations: 0.5624 MB / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.005938, allocations: 8.922 kB / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.655e-05/0.006005, allocations: 40.8 kB / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.006202, allocations: 184.2 kB / 273.2 MB, free: 1.172 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.006218, allocations: 20.86 kB / 273.2 MB, free: 1.148 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.286e-05/0.006251, allocations: 20.38 kB / 273.2 MB, free: 1.129 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.006501, allocations: 212.7 kB / 273.4 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.006513, allocations: 192 / 273.4 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.00653, allocations: 8.375 kB / 273.4 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.006539, allocations: 11.94 kB / 273.4 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/0.006679, allocations: 82.94 kB / 273.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008214/0.007501, allocations: 0.6679 MB / 274.2 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.0077, allocations: 126.8 kB / 274.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.007815, allocations: 67.66 kB / 274.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.007833, allocations: 0 / 274.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.007854, allocations: 37.39 kB / 274.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.007855, allocations: 0 / 274.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006449/0.0085, allocations: 280.2 kB / 274.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.008524, allocations: 55.41 kB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.008643, allocations: 225.9 kB / 275 MB, free: 15.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.00866, allocations: 29.7 kB / 275 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.909e-05/0.008739, allocations: 199.1 kB / 275.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.332e-05/0.008773, allocations: 59.48 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.906e-05/0.008822, allocations: 43.36 kB / 275.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.008941, allocations: 0.4962 MB / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.03e-05/0.008992, allocations: 35.91 kB / 275.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.965e-05/0.009051, allocations: 50.3 kB / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.009166, allocations: 87.31 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.009169, allocations: 3.984 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002247/0.009394, allocations: 175.8 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.00941, allocations: 12.03 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.009415, allocations: 0 / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006157/0.01003, allocations: 175.4 kB / 276.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.479e-05/0.01012, allocations: 31.97 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004141/0.01053, allocations: 0.8468 MB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.217e-05/0.01058, allocations: 11.89 kB / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.01059, allocations: 8 kB / 277.2 MB, free: 12.91 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 9.014e-05/0.01068, allocations: 164.6 kB / 277.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.01071, allocations: 23.91 kB / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005048/0.01122, allocations: 186.9 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.01122, allocations: 0 / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.01122, allocations: 0 / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.01123, allocations: 3.984 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.0117, allocations: 0.5043 MB / 278.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.0117, allocations: 0 / 278.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.457e-05/0.01179, allocations: 36.02 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004394/0.01223, allocations: 159.4 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.01224, allocations: 8 kB / 278.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003197/0.01256, allocations: 0.8584 MB / 279.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.01256, allocations: 0 / 279.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003954/0.01296, allocations: 398.9 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.908e-05/0.01297, allocations: 23.95 kB / 279.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.01299, allocations: 4 kB / 279.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.276e-05/0.01306, allocations: 8 kB / 279.6 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.779e-05/0.01309, allocations: 19.84 kB / 279.6 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.0131, allocations: 4 kB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.763e-05/0.01317, allocations: 168.2 kB / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01317, allocations: 0 / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001905/0.01336, allocations: 63.77 kB / 279.8 MB, free: 10.17 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.0001231/0.01348, allocations: 107.2 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002408/0.01372, allocations: 112.1 kB / 280 MB, free: 9.938 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01373, allocations: 0 / 280 MB, free: 9.938 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.536e-05/0.01381, allocations: 75.05 kB / 280.1 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.01403, allocations: 23.98 kB / 280.1 MB, free: 9.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008597/0.01489, allocations: 0.4921 MB / 280.6 MB, free: 9.312 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.623e-05/0.01493, allocations: 80.22 kB / 280.7 MB, free: 9.215 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.891e-05/0.01497, allocations: 13.48 kB / 280.7 MB, free: 9.203 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.868e-05/0.015, allocations: 16.5 kB / 280.7 MB, free: 9.184 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.015, allocations: 0 / 280.7 MB, free: 9.184 MB / 266.7 MB Notification: Performance of Templates: time 0.004315/0.01931, allocations: 2.373 MB / 283.1 MB, free: 6.844 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.869377665221691]