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.002351/0.002351, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002604/0.002604, allocations: 149.1 kB / 24.26 MB, free: 172 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 1.553/1.553, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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 2.044e-06/2.044e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.964e-05/3.168e-05, allocations: 10.25 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.006005/0.006037, allocations: 2.497 MB / 269.8 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.007797, allocations: 0.6463 MB / 270.5 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.007941, allocations: 4 kB / 270.5 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.008131, allocations: 35.64 kB / 270.5 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.008356, allocations: 75.28 kB / 270.6 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.008755, allocations: 87.81 kB / 270.7 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004926/0.009247, allocations: 282.6 kB / 270.9 MB, free: 3.09 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.009481, allocations: 68.47 kB / 271 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004607/0.009942, allocations: 159.6 kB / 271.2 MB, free: 2.863 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.01019, allocations: 91.69 kB / 271.3 MB, free: 2.773 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.367e-05/0.01025, allocations: 28 kB / 271.3 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.0104, allocations: 32 kB / 271.3 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.846e-05/0.01048, allocations: 55.81 kB / 271.4 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.01065, allocations: 83.77 kB / 271.5 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005881/0.01124, allocations: 295.1 kB / 271.7 MB, free: 2.289 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.01124, allocations: 0 / 271.7 MB, free: 2.289 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.01124, allocations: 0 / 271.7 MB, free: 2.289 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.01125, allocations: 0 / 271.7 MB, free: 2.289 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.001331/0.01258, allocations: 0.5815 MB / 272.3 MB, free: 1.672 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.01262, allocations: 8.922 kB / 272.3 MB, free: 1.664 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.01276, allocations: 44.8 kB / 272.4 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.01318, allocations: 188.2 kB / 272.6 MB, free: 1.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.01322, allocations: 12.88 kB / 272.6 MB, free: 1.395 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.757e-05/0.01329, allocations: 20.38 kB / 272.6 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006209/0.01391, allocations: 236.1 kB / 272.8 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.01393, allocations: 192 / 272.8 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.01396, allocations: 8.375 kB / 272.8 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.01398, allocations: 11.94 kB / 272.8 MB, free: 1.105 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005425/0.01452, allocations: 145.9 kB / 273 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002025/0.01655, allocations: 0.7343 MB / 273.7 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.01702, allocations: 151 kB / 273.9 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003398/0.01736, allocations: 87.81 kB / 274 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.0174, allocations: 4 kB / 274 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.633e-05/0.01745, allocations: 37.39 kB / 274 MB, free: 15.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.512e-06/0.01745, allocations: 0 / 274 MB, free: 15.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.001915/0.01936, allocations: 343.9 kB / 274.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.01943, allocations: 67.39 kB / 274.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006141/0.02005, allocations: 245.8 kB / 274.6 MB, free: 15.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.02008, allocations: 29.7 kB / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.02029, allocations: 203.1 kB / 274.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.886e-05/0.02038, allocations: 63.48 kB / 274.9 MB, free: 14.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.0205, allocations: 43.36 kB / 275 MB, free: 14.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000377/0.02088, allocations: 0.5001 MB / 275.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.02107, allocations: 47.98 kB / 275.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.02129, allocations: 82.03 kB / 275.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.0217, allocations: 135.3 kB / 275.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.0217, allocations: 4 kB / 275.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007159/0.02242, allocations: 228.4 kB / 276 MB, free: 13.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.02244, allocations: 4 kB / 276 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.02244, allocations: 0 / 276 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/0.02432, allocations: 187.5 kB / 276.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.02453, allocations: 31.92 kB / 276.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.02559, allocations: 0.8859 MB / 277.1 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.02576, allocations: 15.89 kB / 277.1 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.02578, allocations: 8 kB / 277.1 MB, free: 12.66 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 0.0002419/0.02603, allocations: 176.5 kB / 277.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.441e-05/0.02612, allocations: 27.89 kB / 277.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007346/0.02686, allocations: 219 kB / 277.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.02687, allocations: 4 kB / 277.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.02688, allocations: 0 / 277.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.02688, allocations: 0 / 277.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001477/0.02836, allocations: 0.5941 MB / 278.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.02836, allocations: 3.938 kB / 278.1 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.02859, allocations: 27.98 kB / 278.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/0.03011, allocations: 175.5 kB / 278.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.836e-05/0.03014, allocations: 8 kB / 278.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.0312, allocations: 0.9014 MB / 279.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.03121, allocations: 0 / 279.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.03259, allocations: 486.9 kB / 279.7 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.03264, allocations: 11.91 kB / 279.7 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.393e-05/0.03268, allocations: 4 kB / 279.7 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.03292, allocations: 8 kB / 279.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.03299, allocations: 19.91 kB / 279.7 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.03301, allocations: 4 kB / 279.7 MB, free: 9.883 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002276/0.03323, allocations: 180.2 kB / 279.9 MB, free: 9.707 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03323, allocations: 0 / 279.9 MB, free: 9.707 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000552/0.03379, allocations: 63.83 kB / 280 MB, free: 9.645 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.0002249/0.03401, allocations: 107.2 kB / 280.1 MB, free: 9.527 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006094/0.03462, allocations: 159.9 kB / 280.2 MB, free: 9.367 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.03462, allocations: 0 / 280.2 MB, free: 9.367 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000327/0.03495, allocations: 88.77 kB / 280.3 MB, free: 9.277 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.03547, allocations: 34.61 kB / 280.3 MB, free: 9.246 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.03684, allocations: 499.4 kB / 280.8 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.03698, allocations: 130.1 kB / 281 MB, free: 8.582 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.902e-05/0.03704, allocations: 17.48 kB / 281 MB, free: 8.566 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/0.03708, allocations: 12.5 kB / 281 MB, free: 8.551 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.03708, allocations: 4 kB / 281 MB, free: 8.547 MB / 266.7 MB Notification: Performance of Templates: time 0.00699/0.04407, allocations: 2.25 MB / 283.2 MB, free: 6.332 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.673782694968395]