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.0009702/0.0009702, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.001257/0.001257, allocations: 142.3 kB / 24.89 MB, free: 9.211 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.9624/0.9624, allocations: 173.3 MB / 201.5 MB, free: 9.172 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.944e-06/1.944e-06, allocations: 3.984 kB / 268.5 MB, free: 6.121 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.086e-05/1.28e-05, allocations: 6.25 kB / 268.5 MB, free: 6.113 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002321/0.002334, allocations: 2.569 MB / 271.1 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007858/0.00312, allocations: 0.658 MB / 271.7 MB, free: 2.863 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.532e-05/0.003205, allocations: 7.938 kB / 271.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.003316, allocations: 43.58 kB / 271.8 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.944e-05/0.003406, allocations: 71.3 kB / 271.9 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.00361, allocations: 87.75 kB / 272 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.003811, allocations: 290.6 kB / 272.2 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.003929, allocations: 62.5 kB / 272.3 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.004079, allocations: 163.6 kB / 272.5 MB, free: 2.148 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.004192, allocations: 91.69 kB / 272.5 MB, free: 2.059 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.004219, allocations: 24 kB / 272.6 MB, free: 2.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.957e-05/0.004289, allocations: 36 kB / 272.6 MB, free: 2 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.443e-05/0.004323, allocations: 55.81 kB / 272.7 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.344e-05/0.004377, allocations: 79.83 kB / 272.7 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001898/0.004567, allocations: 199.2 kB / 272.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.004568, allocations: 4 kB / 272.9 MB, free: 1.668 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.004569, allocations: 0 / 272.9 MB, free: 1.668 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.865e-06/0.004571, allocations: 0 / 272.9 MB, free: 1.668 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.0004497/0.005021, allocations: 448.2 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.79e-05/0.005049, allocations: 12.91 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.197e-05/0.005091, allocations: 28.92 kB / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.005242, allocations: 161.4 kB / 273.6 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.005255, allocations: 12.88 kB / 273.6 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.816e-05/0.005283, allocations: 32.31 kB / 273.6 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.005457, allocations: 204.7 kB / 273.8 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.005465, allocations: 192 / 273.8 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.005477, allocations: 8.375 kB / 273.8 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.005484, allocations: 7.938 kB / 273.8 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.364e-05/0.005567, allocations: 57.47 kB / 273.9 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005867/0.006154, allocations: 0.5005 MB / 274.4 MB, free: 112 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.00628, allocations: 94.53 kB / 274.5 MB, free: 8 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.295e-05/0.006363, allocations: 52.83 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.006377, allocations: 7.984 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.006396, allocations: 34.56 kB / 274.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.092e-06/0.006397, allocations: 0 / 274.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004873/0.006885, allocations: 233.4 kB / 274.8 MB, free: 15.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.309e-05/0.006908, allocations: 63.25 kB / 274.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.118e-05/0.006989, allocations: 170.6 kB / 275 MB, free: 15.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.007001, allocations: 29.7 kB / 275.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.091e-05/0.007052, allocations: 140.4 kB / 275.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.007084, allocations: 67.42 kB / 275.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.985e-05/0.007124, allocations: 37.69 kB / 275.3 MB, free: 15.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.652e-05/0.00719, allocations: 326.8 kB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.488e-05/0.007215, allocations: 19.98 kB / 275.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.606e-05/0.007251, allocations: 36.69 kB / 275.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.08e-05/0.007322, allocations: 65.66 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.007325, allocations: 4 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000136/0.007461, allocations: 129.2 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.007472, allocations: 11.94 kB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.007477, allocations: 3.984 kB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004951/0.007972, allocations: 160.7 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.008072, allocations: 39.97 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002481/0.00832, allocations: 0.5678 MB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.617e-05/0.008366, allocations: 15.89 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.008374, allocations: 4 kB / 276.7 MB, free: 13.71 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.527e-05/0.008439, allocations: 121.9 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.008463, allocations: 11.98 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.00863, allocations: 144.2 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.008632, allocations: 0 / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.008633, allocations: 0 / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.008636, allocations: 0 / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003439/0.00898, allocations: 352.2 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.008982, allocations: 4.031 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.472e-05/0.009076, allocations: 43.91 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003824/0.009459, allocations: 148.6 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.009471, allocations: 8 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002283/0.009699, allocations: 0.5717 MB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.009702, allocations: 3.984 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002798/0.009981, allocations: 293 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.79e-05/0.009999, allocations: 23.73 kB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.01002, allocations: 8 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.769e-05/0.01007, allocations: 7.984 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.927e-05/0.0101, allocations: 19.86 kB / 278.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.01011, allocations: 4 kB / 278.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.261e-05/0.01014, allocations: 45.86 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01014, allocations: 0 / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001557/0.0103, allocations: 59.89 kB / 278.5 MB, free: 11.76 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 8.965e-05/0.01039, allocations: 92.44 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.01054, allocations: 95.16 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.01054, allocations: 0 / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.275e-05/0.0106, allocations: 61.88 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.01076, allocations: 27.98 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007104/0.01147, allocations: 479.4 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.237e-05/0.01153, allocations: 80.2 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.017e-05/0.01158, allocations: 13.5 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.686e-05/0.01167, allocations: 79.34 kB / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01167, allocations: 0 / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of Templates: time 0.00521/0.01688, allocations: 2.472 MB / 281.9 MB, free: 8.367 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 -s gbode -gbm=radauIIA3 -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.613132697995752]