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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008329/0.0008329, allocations: 102.6 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002983/0.0002983, allocations: 7.938 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2617, allocations: 50.4 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.3665, allocations: 79.62 MB / 481.1 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.3668, allocations: 75.95 kB / 481.2 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01139/0.3782, allocations: 4.085 MB / 485.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3783, allocations: 0 / 485.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.3783, allocations: 4 kB / 485.3 MB, free: 12.71 MB / 362.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.0008488/0.3792, allocations: 0.5027 MB / 485.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.32e-05/0.3792, allocations: 12.03 kB / 485.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.507e-05/0.3793, allocations: 23.72 kB / 485.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.3797, allocations: 230.6 kB / 486 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.3797, allocations: 20.44 kB / 486.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.838e-05/0.3798, allocations: 19.98 kB / 486.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.3802, allocations: 195.2 kB / 486.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.3803, allocations: 0 / 486.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.3803, allocations: 8 kB / 486.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3803, allocations: 4 kB / 486.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003393/0.3807, allocations: 153.7 kB / 486.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.3822, allocations: 0.8544 MB / 487.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/0.3826, allocations: 162.5 kB / 487.4 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.3826, allocations: 7.984 kB / 487.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.3827, allocations: 34.56 kB / 487.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.3827, allocations: 0 / 487.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.001382/0.3841, allocations: 426 kB / 487.9 MB, free: 9.855 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.3841, allocations: 59.41 kB / 488 MB, free: 9.785 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.3843, allocations: 158.4 kB / 488.1 MB, free: 9.621 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.3844, allocations: 29.7 kB / 488.1 MB, free: 9.586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.3845, allocations: 144.1 kB / 488.3 MB, free: 9.441 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.066e-05/0.3845, allocations: 55.2 kB / 488.3 MB, free: 9.387 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.3845, allocations: 7.938 kB / 488.3 MB, free: 9.379 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3847, allocations: 326.8 kB / 488.7 MB, free: 9.051 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.3848, allocations: 56.34 kB / 488.7 MB, free: 8.992 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.385, allocations: 77.38 kB / 488.8 MB, free: 8.914 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.3851, allocations: 62.91 kB / 488.9 MB, free: 8.855 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3851, allocations: 0 / 488.9 MB, free: 8.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004502/0.3856, allocations: 242.1 kB / 489.1 MB, free: 8.609 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.687e-05/0.3856, allocations: 4 kB / 489.1 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3857, allocations: 4 kB / 489.1 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.3871, allocations: 220.6 kB / 489.3 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3872, allocations: 31.98 kB / 489.3 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005808/0.3878, allocations: 0.6069 MB / 490 MB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.388, allocations: 19.83 kB / 490 MB, free: 7.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.388, allocations: 4 kB / 490 MB, free: 7.695 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.3882, allocations: 137.9 kB / 490.1 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.075e-05/0.3882, allocations: 15.81 kB / 490.1 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004806/0.3887, allocations: 235.1 kB / 490.4 MB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3887, allocations: 0 / 490.4 MB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3887, allocations: 4 kB / 490.4 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.3887, allocations: 0 / 490.4 MB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003537/0.3891, allocations: 293.3 kB / 490.6 MB, free: 6.953 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3891, allocations: 4 kB / 490.6 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.3893, allocations: 35.97 kB / 490.7 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.3904, allocations: 208.6 kB / 490.9 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.3904, allocations: 4 kB / 490.9 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004375/0.3908, allocations: 0.6264 MB / 491.5 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3909, allocations: 3.953 kB / 491.5 MB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005572/0.3914, allocations: 388.5 kB / 491.9 MB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.847e-05/0.3915, allocations: 92.95 kB / 492 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.3915, allocations: 4.078 kB / 492 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.3917, allocations: 15.94 kB / 492 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.3918, allocations: 11.94 kB / 492 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3918, allocations: 8 kB / 492 MB, free: 5.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001116/0.3919, allocations: 127.2 kB / 492.2 MB, free: 5.375 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3919, allocations: 0 / 492.2 MB, free: 5.375 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000302/0.3922, allocations: 75.84 kB / 492.2 MB, free: 5.301 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001952/0.3924, allocations: 115.2 kB / 492.3 MB, free: 5.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004015/0.3928, allocations: 155.8 kB / 492.5 MB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3928, allocations: 0 / 492.5 MB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.393, allocations: 98.7 kB / 492.6 MB, free: 4.934 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.3933, allocations: 12.19 kB / 492.6 MB, free: 4.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.3944, allocations: 0.6823 MB / 493.3 MB, free: 4.211 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.3948, allocations: 0.7441 MB / 494 MB, free: 3.441 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.718e-05/0.3949, allocations: 13.55 kB / 494 MB, free: 3.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.645e-05/0.3949, allocations: 11.44 kB / 494.1 MB, free: 3.418 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3949, allocations: 0 / 494.1 MB, free: 3.418 MB / 362.7 MB Notification: Performance of Templates: time 0.006346/0.4013, allocations: 2.277 MB / 496.3 MB, free: 1.168 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches