Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001714/0.001714, allocations: 204.8 kB / 18.11 MB, free: 3.598 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 226.5 MB / 245.4 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007931/0.0007928, allocations: 100.3 kB / 297.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.0002638, allocations: 8 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2657, allocations: 51.29 MB / 409.4 MB, free: 27.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1002/0.366, allocations: 79.36 MB / 488.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001803/0.3662, allocations: 67.97 kB / 488.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007404/0.3736, allocations: 2.917 MB / 491.7 MB, free: 9.125 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3737, allocations: 0 / 491.7 MB, free: 9.125 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.3737, allocations: 4 kB / 491.7 MB, free: 9.121 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.0004847/0.3742, allocations: 431.1 kB / 492.1 MB, free: 8.645 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3742, allocations: 12.03 kB / 492.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.3744, allocations: 32.73 kB / 492.2 MB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.3746, allocations: 200.1 kB / 492.4 MB, free: 8.367 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.3747, allocations: 8.609 kB / 492.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.765e-05/0.3747, allocations: 12.38 kB / 492.4 MB, free: 8.348 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.3749, allocations: 116.1 kB / 492.5 MB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3749, allocations: 4.188 kB / 492.5 MB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.375, allocations: 7.938 kB / 492.5 MB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.375, allocations: 4 kB / 492.5 MB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.3752, allocations: 84.59 kB / 492.6 MB, free: 8.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008383/0.376, allocations: 0.6095 MB / 493.2 MB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.3763, allocations: 94.56 kB / 493.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.396e-05/0.3764, allocations: 36.91 kB / 493.3 MB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.3764, allocations: 4 kB / 493.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.3764, allocations: 30.56 kB / 493.4 MB, free: 7.258 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.3765, allocations: 0 / 493.4 MB, free: 7.258 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006919/0.3772, allocations: 263.4 kB / 493.6 MB, free: 6.973 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.3772, allocations: 55.41 kB / 493.7 MB, free: 6.906 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.3773, allocations: 144.2 kB / 493.8 MB, free: 6.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3774, allocations: 29.7 kB / 493.9 MB, free: 6.723 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.875e-05/0.3774, allocations: 124 kB / 494 MB, free: 6.594 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/0.3775, allocations: 27.64 kB / 494 MB, free: 6.566 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/0.3775, allocations: 0 / 494 MB, free: 6.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3776, allocations: 322.8 kB / 494.3 MB, free: 6.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.478e-05/0.3777, allocations: 27.98 kB / 494.4 MB, free: 6.215 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.659e-05/0.3778, allocations: 46.5 kB / 494.4 MB, free: 6.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.3779, allocations: 74.5 kB / 494.5 MB, free: 6.078 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3779, allocations: 4 kB / 494.5 MB, free: 6.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002831/0.3782, allocations: 142.2 kB / 494.6 MB, free: 5.926 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3782, allocations: 4 kB / 494.6 MB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3782, allocations: 0 / 494.6 MB, free: 5.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001863/0.3784, allocations: 36.84 kB / 494.7 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.602e-05/0.3785, allocations: 19.98 kB / 494.7 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.3799, allocations: 1.505 MB / 496.2 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.641e-05/0.3799, allocations: 16.22 kB / 496.2 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.38, allocations: 4 kB / 496.2 MB, free: 4.203 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 8.925e-05/0.3801, allocations: 117.8 kB / 496.3 MB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.054e-05/0.3801, allocations: 11.97 kB / 496.3 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.182e-05/0.3801, allocations: 20.7 kB / 496.3 MB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3801, allocations: 0 / 496.3 MB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.3801, allocations: 7.938 kB / 496.4 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.3802, allocations: 0 / 496.4 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.3804, allocations: 209.6 kB / 496.6 MB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3804, allocations: 0 / 496.6 MB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.943e-05/0.3804, allocations: 7.938 kB / 496.6 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000117/0.3805, allocations: 36.83 kB / 496.6 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.3806, allocations: 8 kB / 496.6 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.3816, allocations: 1.498 MB / 498.1 MB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3817, allocations: 0 / 498.1 MB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003123/0.382, allocations: 224.3 kB / 498.3 MB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.097e-05/0.382, allocations: 85.02 kB / 498.4 MB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.382, allocations: 64 / 498.4 MB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.816e-05/0.3821, allocations: 23.83 kB / 498.4 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.3822, allocations: 4 kB / 498.4 MB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.3822, allocations: 4 kB / 498.4 MB, free: 1.727 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.187e-05/0.3823, allocations: 110 kB / 498.5 MB, free: 1.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3823, allocations: 0 / 498.5 MB, free: 1.621 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003433/0.3826, allocations: 39.94 kB / 498.6 MB, free: 1.582 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.0001288/0.3828, allocations: 99.25 kB / 498.7 MB, free: 1.473 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003678/0.3831, allocations: 198.5 kB / 498.9 MB, free: 1.266 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3832, allocations: 8.125 kB / 498.9 MB, free: 1.258 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001986/0.3834, allocations: 154.8 kB / 499 MB, free: 1.094 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002606/0.3836, allocations: 11.94 kB / 499 MB, free: 1.082 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000529/0.3842, allocations: 354.3 kB / 499.4 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.3845, allocations: 0.7082 MB / 0.4884 GB, free: 15.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.679e-05/0.3845, allocations: 8.438 kB / 0.4884 GB, free: 15.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.197e-05/0.3845, allocations: 11.44 kB / 0.4884 GB, free: 15.96 MB / 378.7 MB Notification: Performance of SimCode: time 2.044e-06/0.3846, allocations: 0 / 0.4884 GB, free: 15.96 MB / 378.7 MB Notification: Performance of Templates: time 0.004779/0.3893, allocations: 1.3 MB / 0.4897 GB, free: 14.67 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches