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.0009125/0.0009125, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 221.5 MB / 230.3 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008305/0.0008305, allocations: 90.23 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.025e-05/2.028e-05, allocations: 7.984 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1215, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3581/0.4796, allocations: 78.88 MB / 466.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.4799, allocations: 71.95 kB / 466.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01034/0.4903, allocations: 4.044 MB / 470.5 MB, free: 11.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4903, allocations: 0 / 470.5 MB, free: 11.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.399e-05/0.4903, allocations: 4 kB / 470.5 MB, free: 11.85 MB / 346.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.0006446/0.491, allocations: 486.8 kB / 470.9 MB, free: 11.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.491, allocations: 8.031 kB / 470.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.4911, allocations: 27.72 kB / 471 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.4914, allocations: 230.7 kB / 471.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.4915, allocations: 8 kB / 471.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.615e-05/0.4915, allocations: 15.91 kB / 471.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002601/0.4918, allocations: 132.8 kB / 471.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.492, allocations: 150.4 kB / 471.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.4921, allocations: 0 / 471.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.4921, allocations: 0 / 471.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.4921, allocations: 7.938 kB / 471.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.4933, allocations: 0.8151 MB / 472.3 MB, free: 9.824 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.4936, allocations: 138.6 kB / 472.5 MB, free: 9.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.4938, allocations: 81.61 kB / 472.5 MB, free: 9.598 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.4938, allocations: 4 kB / 472.5 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.4938, allocations: 46.48 kB / 472.6 MB, free: 9.539 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.4938, allocations: 0 / 472.6 MB, free: 9.539 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005892/0.4944, allocations: 195.6 kB / 472.8 MB, free: 9.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.4945, allocations: 55.31 kB / 472.8 MB, free: 9.273 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.4946, allocations: 157.5 kB / 473 MB, free: 9.113 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.4947, allocations: 25.7 kB / 473 MB, free: 9.082 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.051e-05/0.4948, allocations: 148.2 kB / 473.2 MB, free: 8.934 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4e-05/0.4948, allocations: 51.11 kB / 473.2 MB, free: 8.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-06/0.4948, allocations: 0 / 473.2 MB, free: 8.883 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.4949, allocations: 326.8 kB / 473.5 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.836e-05/0.495, allocations: 44.36 kB / 473.6 MB, free: 8.508 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.358e-05/0.4951, allocations: 58.28 kB / 473.6 MB, free: 8.445 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.4954, allocations: 70.02 kB / 473.7 MB, free: 8.379 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4954, allocations: 0 / 473.7 MB, free: 8.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004381/0.4958, allocations: 206.2 kB / 473.9 MB, free: 8.168 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.4959, allocations: 8 kB / 473.9 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4959, allocations: 0 / 473.9 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000516/0.4964, allocations: 104.8 kB / 474 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.4965, allocations: 35.97 kB / 474 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005494/0.4971, allocations: 0.6226 MB / 474.7 MB, free: 7.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.4972, allocations: 15.91 kB / 474.7 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.4973, allocations: 4 kB / 474.7 MB, free: 7.352 MB / 346.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 () * 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 9.731e-05/0.4974, allocations: 108.9 kB / 474.8 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.259e-05/0.4974, allocations: 19.81 kB / 474.8 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004538/0.4979, allocations: 214.2 kB / 475 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.4979, allocations: 0 / 475 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.4979, allocations: 0 / 475 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.4979, allocations: 0 / 475 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008197/0.4987, allocations: 0.541 MB / 475.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4987, allocations: 0 / 475.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.4989, allocations: 35.95 kB / 475.6 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004423/0.4993, allocations: 100.7 kB / 475.7 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.4994, allocations: 8 kB / 475.7 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005447/0.4999, allocations: 0.6497 MB / 476.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.4999, allocations: 0 / 476.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005827/0.5005, allocations: 387.6 kB / 476.7 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.5006, allocations: 92.94 kB / 476.8 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.5006, allocations: 0 / 476.8 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.5008, allocations: 8 kB / 476.8 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.5008, allocations: 15.97 kB / 476.8 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.5009, allocations: 8 kB / 476.8 MB, free: 5.047 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.593e-05/0.5009, allocations: 120.3 kB / 477 MB, free: 4.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.501, allocations: 4.062 kB / 477 MB, free: 4.926 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002851/0.5012, allocations: 59.78 kB / 477 MB, free: 4.867 MB / 346.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 () * 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.0001605/0.5014, allocations: 111.2 kB / 477.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000298/0.5017, allocations: 121.1 kB / 477.3 MB, free: 4.633 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5017, allocations: 4 kB / 477.3 MB, free: 4.629 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.5019, allocations: 76.03 kB / 477.3 MB, free: 4.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002335/0.5021, allocations: 17.56 kB / 477.3 MB, free: 4.539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006712/0.5028, allocations: 378.1 kB / 477.7 MB, free: 4.145 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.5031, allocations: 0.7477 MB / 478.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.127e-05/0.5032, allocations: 13.22 kB / 478.5 MB, free: 3.359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/0.5032, allocations: 11.44 kB / 478.5 MB, free: 3.348 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5032, allocations: 3.938 kB / 478.5 MB, free: 3.344 MB / 346.7 MB Notification: Performance of Templates: time 0.004726/0.508, allocations: 2.122 MB / 480.6 MB, free: 1.25 MB / 346.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