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.0009257/0.0009257, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008762/0.0008762, allocations: 142.1 kB / 24.89 MB, free: 8.777 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.8749/0.8749, allocations: 173.4 MB / 201.5 MB, free: 8.75 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.202e-06/1.202e-06, allocations: 0 / 268.5 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032e-05/1.152e-05, allocations: 5.688 kB / 268.5 MB, free: 6.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.00247/0.002482, allocations: 2.538 MB / 271 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000982/0.003464, allocations: 0.6579 MB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.003577, allocations: 4 kB / 271.7 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.003713, allocations: 31.64 kB / 271.7 MB, free: 2.785 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.003823, allocations: 83.27 kB / 271.8 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.004086, allocations: 91.69 kB / 271.9 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.004357, allocations: 286.6 kB / 272.1 MB, free: 2.332 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.004472, allocations: 62.5 kB / 272.2 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.004634, allocations: 167.6 kB / 272.4 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.004741, allocations: 83.78 kB / 272.5 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.004767, allocations: 20 kB / 272.5 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.958e-05/0.004827, allocations: 31.98 kB / 272.5 MB, free: 1.973 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.435e-05/0.004861, allocations: 55.77 kB / 272.6 MB, free: 1.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.948e-05/0.00492, allocations: 91.8 kB / 272.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.005115, allocations: 199.2 kB / 272.8 MB, free: 1.633 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.005116, allocations: 4 kB / 272.8 MB, free: 1.629 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.005117, allocations: 0 / 272.8 MB, free: 1.629 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.00512, allocations: 3.938 kB / 272.8 MB, free: 1.625 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.0004991/0.005619, allocations: 440.2 kB / 273.3 MB, free: 1.172 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.005654, allocations: 12.92 kB / 273.3 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.993e-05/0.005704, allocations: 36.91 kB / 273.3 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.005875, allocations: 161.5 kB / 273.5 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.005891, allocations: 16.88 kB / 273.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.017e-05/0.005921, allocations: 20.33 kB / 273.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.006102, allocations: 204.7 kB / 273.7 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.006112, allocations: 192 / 273.7 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.006127, allocations: 12.38 kB / 273.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/0.006134, allocations: 7.938 kB / 273.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002049/0.006339, allocations: 57.41 kB / 273.8 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006219/0.00696, allocations: 0.5005 MB / 274.3 MB, free: 72 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.007101, allocations: 94.53 kB / 274.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.035e-05/0.007171, allocations: 48.83 kB / 274.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.007187, allocations: 4 kB / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.007207, allocations: 38.5 kB / 274.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.382e-06/0.007208, allocations: 8 kB / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005184/0.007726, allocations: 233.5 kB / 274.7 MB, free: 15.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.187e-05/0.007748, allocations: 55.31 kB / 274.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.477e-05/0.007833, allocations: 170.6 kB / 274.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.007846, allocations: 25.7 kB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.269e-05/0.007899, allocations: 144.4 kB / 275.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.007928, allocations: 63.41 kB / 275.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.959e-05/0.007967, allocations: 33.7 kB / 275.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.008034, allocations: 330.8 kB / 275.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.284e-05/0.008057, allocations: 20 kB / 275.5 MB, free: 14.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.717e-05/0.008094, allocations: 41.67 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.066e-05/0.008164, allocations: 69.59 kB / 275.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.008166, allocations: 0 / 275.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001348/0.008301, allocations: 137.2 kB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.008311, allocations: 4 kB / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.008314, allocations: 0 / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004876/0.008802, allocations: 160.7 kB / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.906e-05/0.008871, allocations: 39.98 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002338/0.009104, allocations: 0.5679 MB / 276.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.646e-05/0.009151, allocations: 11.89 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.009159, allocations: 4 kB / 276.6 MB, free: 13.68 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 6.336e-05/0.009222, allocations: 113.8 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.009247, allocations: 15.98 kB / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.009412, allocations: 144.1 kB / 276.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.009415, allocations: 8.031 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.009416, allocations: 0 / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.009419, allocations: 0 / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003452/0.009764, allocations: 356.1 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.009766, allocations: 0 / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.299e-05/0.009839, allocations: 27.97 kB / 277.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006056/0.01044, allocations: 152.7 kB / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.01046, allocations: 0 / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002756/0.01073, allocations: 0.5756 MB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.01073, allocations: 4.031 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003656/0.0111, allocations: 292.9 kB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.277e-05/0.01112, allocations: 23.8 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.01115, allocations: 7.984 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.039e-05/0.01124, allocations: 11.98 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.716e-05/0.01126, allocations: 11.98 kB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.358e-06/0.01127, allocations: 8.016 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.158e-05/0.01131, allocations: 41.89 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01131, allocations: 0 / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002531/0.01157, allocations: 63.81 kB / 278.4 MB, free: 11.74 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.0001067/0.01167, allocations: 84.42 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.01186, allocations: 104.6 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.01187, allocations: 4 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.482e-05/0.01195, allocations: 64.34 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.01216, allocations: 32.09 kB / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008231/0.01299, allocations: 479.2 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.113e-05/0.01304, allocations: 80.22 kB / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.242e-05/0.01308, allocations: 9.484 kB / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.344e-05/0.01316, allocations: 83.28 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01316, allocations: 4 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of Templates: time 0.004661/0.01782, allocations: 2.368 MB / 281.7 MB, free: 8.43 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.5852403827011585]