Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002426/0.002426, allocations: 200.7 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.63/1.63, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007362/0.0007362, allocations: 88.12 kB / 297.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002385, allocations: 7.984 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.269, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1103/0.3794, allocations: 80.36 MB / 489.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.3797, allocations: 72.81 kB / 489.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01254/0.3922, allocations: 4.185 MB / 494 MB, free: 6.848 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3923, allocations: 0 / 494 MB, free: 6.848 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.146e-05/0.3923, allocations: 4 kB / 494 MB, free: 6.844 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.001041/0.3934, allocations: 0.4952 MB / 494.5 MB, free: 6.297 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.023e-05/0.3935, allocations: 16.02 kB / 494.5 MB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.3937, allocations: 32.66 kB / 494.5 MB, free: 6.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004378/0.3942, allocations: 247.8 kB / 494.8 MB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.3942, allocations: 12.81 kB / 494.8 MB, free: 5.957 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.725e-05/0.3943, allocations: 20.38 kB / 494.8 MB, free: 5.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004738/0.3948, allocations: 187.8 kB / 495 MB, free: 5.746 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.3948, allocations: 4.188 kB / 495 MB, free: 5.742 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.3949, allocations: 11.94 kB / 495 MB, free: 5.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.521e-05/0.3949, allocations: 8 kB / 495 MB, free: 5.723 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000373/0.3953, allocations: 153.6 kB / 495.2 MB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.3972, allocations: 0.8622 MB / 496 MB, free: 4.617 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004006/0.3977, allocations: 150.6 kB / 496.2 MB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.3979, allocations: 100.8 kB / 496.3 MB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.398, allocations: 3.984 kB / 496.3 MB, free: 4.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.481e-05/0.398, allocations: 42.88 kB / 496.3 MB, free: 4.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 2.565e-06/0.398, allocations: 3.938 kB / 496.3 MB, free: 4.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.001392/0.3994, allocations: 429.4 kB / 496.7 MB, free: 3.855 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.3995, allocations: 55.41 kB / 496.8 MB, free: 3.789 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000202/0.3997, allocations: 172 kB / 497 MB, free: 3.609 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.3997, allocations: 25.7 kB / 497 MB, free: 3.578 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.3999, allocations: 152 kB / 497.1 MB, free: 3.426 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/0.4, allocations: 67.08 kB / 497.2 MB, free: 3.359 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.4, allocations: 4 kB / 497.2 MB, free: 3.355 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.4002, allocations: 326.8 kB / 497.5 MB, free: 3.027 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.4003, allocations: 51.98 kB / 497.6 MB, free: 2.977 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.4005, allocations: 80.98 kB / 497.7 MB, free: 2.895 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002854/0.4008, allocations: 132 kB / 497.8 MB, free: 2.762 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4008, allocations: 4 kB / 497.8 MB, free: 2.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005398/0.4013, allocations: 225.1 kB / 498 MB, free: 2.531 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.4014, allocations: 8 kB / 498 MB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.4014, allocations: 0 / 498 MB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.4028, allocations: 228.5 kB / 498.2 MB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.403, allocations: 27.98 kB / 498.3 MB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005683/0.4035, allocations: 0.6108 MB / 498.9 MB, free: 1.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.4037, allocations: 20 kB / 498.9 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.4037, allocations: 4 kB / 498.9 MB, free: 1.609 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.0001885/0.4039, allocations: 133.7 kB / 499 MB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.762e-05/0.404, allocations: 11.91 kB / 499 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005186/0.4045, allocations: 240.1 kB / 499.3 MB, free: 1.215 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.4045, allocations: 4 kB / 499.3 MB, free: 1.211 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.4046, allocations: 0 / 499.3 MB, free: 1.211 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.4046, allocations: 0 / 499.3 MB, free: 1.211 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.4057, allocations: 0.5975 MB / 499.9 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4057, allocations: 4.031 kB / 499.9 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.4058, allocations: 27.98 kB / 499.9 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.4069, allocations: 204.6 kB / 0.4884 GB, free: 324 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.407, allocations: 11.94 kB / 0.4884 GB, free: 312 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005429/0.4075, allocations: 0.6226 MB / 0.489 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4075, allocations: 3.938 kB / 0.489 GB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000673/0.4082, allocations: 405.7 kB / 0.4894 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.678e-05/0.4083, allocations: 92.86 kB / 0.4895 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.4083, allocations: 4 kB / 0.4895 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/0.4085, allocations: 15.89 kB / 0.4895 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.4086, allocations: 15.92 kB / 0.4895 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.4086, allocations: 11.94 kB / 0.4895 GB, free: 15.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001246/0.4088, allocations: 127.5 kB / 0.4897 GB, free: 14.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4088, allocations: 4.062 kB / 0.4897 GB, free: 14.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003967/0.4092, allocations: 67.78 kB / 0.4897 GB, free: 14.88 MB / 378.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 (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.0002237/0.4094, allocations: 115.2 kB / 0.4898 GB, free: 14.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004102/0.4098, allocations: 147 kB / 0.49 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.4098, allocations: 160 / 0.49 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.41, allocations: 90.7 kB / 0.4901 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.4104, allocations: 31.73 kB / 0.4901 GB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.4116, allocations: 0.6869 MB / 0.4908 GB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.412, allocations: 0.7441 MB / 0.4915 GB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.901e-05/0.4121, allocations: 13.55 kB / 0.4915 GB, free: 13.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/0.4121, allocations: 15.44 kB / 0.4915 GB, free: 13 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4121, allocations: 0 / 0.4915 GB, free: 13 MB / 378.7 MB Notification: Performance of Templates: time 0.006307/0.4184, allocations: 2.302 MB / 0.4938 GB, free: 10.72 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches