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.001392/0.001392, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.324/1.324, allocations: 221.3 MB / 235.5 MB, free: 2.973 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.001063/0.001063, allocations: 91.55 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.838e-05/2.839e-05, allocations: 0 / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08863/0.08867, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.3691, allocations: 79.55 MB / 473.8 MB, free: 8.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.3694, allocations: 75.8 kB / 473.9 MB, free: 7.949 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01081/0.3802, allocations: 4.075 MB / 477.9 MB, free: 3.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3802, allocations: 0 / 477.9 MB, free: 3.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.3803, allocations: 4 kB / 477.9 MB, free: 3.855 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.0005917/0.3809, allocations: 482.9 kB / 478.4 MB, free: 3.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.3809, allocations: 12.03 kB / 478.4 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.018e-05/0.381, allocations: 23.72 kB / 478.4 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.3812, allocations: 234.7 kB / 478.7 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.3813, allocations: 20.44 kB / 478.7 MB, free: 3.016 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.3813, allocations: 27.91 kB / 478.7 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.3816, allocations: 179.2 kB / 478.9 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3817, allocations: 0 / 478.9 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/0.3817, allocations: 12 kB / 478.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.3817, allocations: 4 kB / 478.9 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.382, allocations: 141.7 kB / 479.1 MB, free: 2.656 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.3832, allocations: 0.8544 MB / 479.9 MB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.3835, allocations: 146.6 kB / 480.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.3837, allocations: 88.8 kB / 480.1 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.3837, allocations: 7.984 kB / 480.1 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.3837, allocations: 38.56 kB / 480.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.463e-06/0.3838, allocations: 0 / 480.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.000496/0.3843, allocations: 203.7 kB / 480.4 MB, free: 1.207 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.3843, allocations: 51.41 kB / 480.4 MB, free: 1.145 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.3844, allocations: 153.9 kB / 480.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.3845, allocations: 37.69 kB / 480.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.072e-05/0.3846, allocations: 144.2 kB / 480.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.816e-05/0.3846, allocations: 59.09 kB / 480.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.3846, allocations: 8 kB / 480.8 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.788e-05/0.3847, allocations: 318.8 kB / 481.1 MB, free: 420 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.455e-05/0.3848, allocations: 52.36 kB / 481.2 MB, free: 364 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.863e-05/0.3849, allocations: 65.41 kB / 481.3 MB, free: 296 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.385, allocations: 56.48 kB / 481.3 MB, free: 240 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3851, allocations: 0 / 481.3 MB, free: 240 kB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003729/0.3854, allocations: 216.9 kB / 481.5 MB, free: 16 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.3855, allocations: 4 kB / 481.5 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3855, allocations: 0 / 481.5 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.3867, allocations: 224.7 kB / 481.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.3869, allocations: 31.98 kB / 481.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004607/0.3874, allocations: 0.6146 MB / 482.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.3875, allocations: 23.94 kB / 482.4 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.3875, allocations: 11.94 kB / 482.4 MB, free: 15.08 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 () * 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 8.385e-05/0.3876, allocations: 105.9 kB / 482.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.3877, allocations: 15.81 kB / 482.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003976/0.3881, allocations: 212 kB / 482.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3881, allocations: 4 kB / 482.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3881, allocations: 0 / 482.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3881, allocations: 4 kB / 482.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000802/0.3889, allocations: 0.5832 MB / 483.3 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3889, allocations: 0 / 483.3 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.3891, allocations: 35.91 kB / 483.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.3901, allocations: 212.7 kB / 483.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.3902, allocations: 11.89 kB / 483.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004596/0.3906, allocations: 0.6188 MB / 484.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3906, allocations: 0 / 484.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005739/0.3912, allocations: 397.2 kB / 484.6 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.3913, allocations: 88.95 kB / 484.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.3913, allocations: 4 kB / 484.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.3915, allocations: 15.98 kB / 484.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.3915, allocations: 12.05 kB / 484.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.3916, allocations: 8 kB / 484.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.895e-05/0.3917, allocations: 132.3 kB / 484.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3917, allocations: 0 / 484.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002942/0.392, allocations: 63.78 kB / 484.9 MB, free: 12.44 MB / 362.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.0001813/0.3922, allocations: 123.2 kB / 485 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003355/0.3925, allocations: 131.9 kB / 485.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3925, allocations: 4.062 kB / 485.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.3927, allocations: 77.64 kB / 485.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.3929, allocations: 32.14 kB / 485.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006976/0.3937, allocations: 384.2 kB / 485.7 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.394, allocations: 0.7441 MB / 486.4 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.784e-05/0.394, allocations: 17.31 kB / 486.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.3941, allocations: 15.38 kB / 486.4 MB, free: 10.86 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3941, allocations: 0 / 486.4 MB, free: 10.86 MB / 362.7 MB Notification: Performance of Templates: time 0.005045/0.3991, allocations: 2.288 MB / 488.7 MB, free: 8.605 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