Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.001099, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.436/1.436, 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.0009204/0.0009204, allocations: 90.5 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002778, allocations: 19.92 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2538, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1023/0.3562, allocations: 78.6 MB / 480.1 MB, free: 1.879 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003323/0.3567, allocations: 73.05 kB / 480.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008524/0.3652, allocations: 2.828 MB / 483 MB, free: 14.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3652, allocations: 0 / 483 MB, free: 14.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.3653, allocations: 4 kB / 483 MB, free: 14.96 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005789/0.3659, allocations: 423.6 kB / 483.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.3659, allocations: 12.03 kB / 483.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.3661, allocations: 19.81 kB / 483.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.3663, allocations: 194.9 kB / 483.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.3664, allocations: 8.234 kB / 483.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.3664, allocations: 15.94 kB / 483.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.3667, allocations: 113.2 kB / 483.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.3667, allocations: 4 kB / 483.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/0.3667, allocations: 15.89 kB / 483.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3668, allocations: 0 / 483.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002079/0.367, allocations: 84.66 kB / 483.9 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008973/0.3679, allocations: 0.6096 MB / 484.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.3682, allocations: 86.62 kB / 484.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.3682, allocations: 0 / 484.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.3682, allocations: 38.52 kB / 484.6 MB, free: 13.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.3683, allocations: 0 / 484.6 MB, free: 13.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006901/0.3689, allocations: 259.7 kB / 484.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.369, allocations: 51.41 kB / 484.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.3691, allocations: 139.8 kB / 485 MB, free: 12.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.3692, allocations: 25.7 kB / 485.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.547e-05/0.3692, allocations: 124 kB / 485.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.3693, allocations: 19.75 kB / 485.2 MB, free: 12.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-06/0.3693, allocations: 4 kB / 485.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3694, allocations: 322.8 kB / 485.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.711e-05/0.3695, allocations: 31.92 kB / 485.6 MB, free: 12.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.084e-05/0.3696, allocations: 42.56 kB / 485.6 MB, free: 12.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.423e-05/0.3696, allocations: 28 kB / 485.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3697, allocations: 0 / 485.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003446/0.37, allocations: 142.5 kB / 485.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.37, allocations: 6.812 kB / 485.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.3701, allocations: 12 kB / 485.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002046/0.3703, allocations: 44.78 kB / 485.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.799e-05/0.3703, allocations: 8 kB / 485.8 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/0.3719, allocations: 1.522 MB / 487.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.533e-05/0.3719, allocations: 4 kB / 487.4 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.372, allocations: 7.984 kB / 487.4 MB, free: 10.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.3721, allocations: 125.9 kB / 487.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.199e-05/0.3721, allocations: 11.86 kB / 487.5 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.964e-05/0.3722, allocations: 8.719 kB / 487.5 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3722, allocations: 4 kB / 487.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.3722, allocations: 0 / 487.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3722, allocations: 0 / 487.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.3724, allocations: 213.5 kB / 487.7 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3724, allocations: 128 / 487.7 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.154e-05/0.3725, allocations: 19.88 kB / 487.7 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001277/0.3726, allocations: 36.84 kB / 487.8 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.3726, allocations: 7.984 kB / 487.8 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.3738, allocations: 1.506 MB / 489.3 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3738, allocations: 4.031 kB / 489.3 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.3741, allocations: 224.2 kB / 489.5 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.175e-05/0.3742, allocations: 81.02 kB / 489.6 MB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.3742, allocations: 0 / 489.6 MB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.3743, allocations: 8 kB / 489.6 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.3744, allocations: 16.12 kB / 489.6 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.3744, allocations: 4 kB / 489.6 MB, free: 7.688 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.557e-05/0.3745, allocations: 110.2 kB / 489.7 MB, free: 7.582 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3745, allocations: 0 / 489.7 MB, free: 7.582 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003377/0.3748, allocations: 47.84 kB / 489.8 MB, free: 7.535 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 1 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001398/0.375, allocations: 95.25 kB / 489.9 MB, free: 7.434 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003918/0.3754, allocations: 194.6 kB / 490.1 MB, free: 7.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.3754, allocations: 0 / 490.1 MB, free: 7.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001939/0.3756, allocations: 154.8 kB / 490.2 MB, free: 7.066 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.3758, allocations: 15.88 kB / 490.2 MB, free: 7.051 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005832/0.3764, allocations: 354.4 kB / 490.6 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.3767, allocations: 0.7279 MB / 491.3 MB, free: 5.926 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.673e-05/0.3768, allocations: 4.422 kB / 491.3 MB, free: 5.918 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/0.3768, allocations: 11.44 kB / 491.3 MB, free: 5.91 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3768, allocations: 0 / 491.3 MB, free: 5.91 MB / 362.7 MB Notification: Performance of Templates: time 0.004095/0.3809, allocations: 1.286 MB / 492.6 MB, free: 4.637 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches