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.001407/0.001407, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.589/1.589, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.000787/0.000787, allocations: 100.8 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004647/0.0004652, allocations: 23.92 kB / 352.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2703, allocations: 50.4 MB / 402.7 MB, free: 32.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09281/0.3632, allocations: 78.64 MB / 481.4 MB, free: 1.742 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.3634, allocations: 79.95 kB / 481.5 MB, free: 1.664 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007161/0.3706, allocations: 2.825 MB / 484.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3706, allocations: 0 / 484.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.3707, allocations: 4 kB / 484.3 MB, free: 14.82 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.0004636/0.3711, allocations: 415.3 kB / 484.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.3712, allocations: 8.031 kB / 484.7 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.375e-05/0.3713, allocations: 20.75 kB / 484.7 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.3715, allocations: 208.1 kB / 484.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3715, allocations: 12.61 kB / 484.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.3715, allocations: 12.36 kB / 484.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.3718, allocations: 117.7 kB / 485.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3718, allocations: 192 / 485.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.3718, allocations: 11.94 kB / 485.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3718, allocations: 3.938 kB / 485.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.372, allocations: 92.59 kB / 485.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.3728, allocations: 0.6057 MB / 485.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.3731, allocations: 90.5 kB / 485.9 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.891e-05/0.3732, allocations: 36.97 kB / 485.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.3732, allocations: 0 / 485.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.3732, allocations: 38.56 kB / 485.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.3732, allocations: 0 / 485.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006509/0.3739, allocations: 263.3 kB / 486.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.3739, allocations: 51.41 kB / 486.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.3741, allocations: 156.4 kB / 486.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.3741, allocations: 25.7 kB / 486.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.071e-05/0.3741, allocations: 120.1 kB / 486.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.3742, allocations: 23.64 kB / 486.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.3742, allocations: 8 kB / 486.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.026e-05/0.3743, allocations: 314.8 kB / 486.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.192e-05/0.3743, allocations: 23.98 kB / 486.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.133e-05/0.3744, allocations: 42.56 kB / 486.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.3745, allocations: 74.5 kB / 487 MB, free: 11.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3746, allocations: 4 kB / 487 MB, free: 11.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002816/0.3748, allocations: 138.2 kB / 487.2 MB, free: 11.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3749, allocations: 14.88 kB / 487.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3749, allocations: 0 / 487.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.3751, allocations: 36.83 kB / 487.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.251e-05/0.3751, allocations: 8 kB / 487.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.3764, allocations: 1.523 MB / 488.7 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.44e-05/0.3765, allocations: 7.906 kB / 488.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.3765, allocations: 8.062 kB / 488.8 MB, free: 9.922 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 9.203e-05/0.3766, allocations: 121.8 kB / 488.9 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.3767, allocations: 7.906 kB / 488.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.611e-05/0.3767, allocations: 12.72 kB / 488.9 MB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.3767, allocations: 3.938 kB / 488.9 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.3767, allocations: 3.938 kB / 488.9 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3767, allocations: 0 / 488.9 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.3769, allocations: 213.6 kB / 489.1 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3769, allocations: 0 / 489.1 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.079e-05/0.377, allocations: 15.92 kB / 489.1 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/0.3771, allocations: 33.03 kB / 489.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.3771, allocations: 0 / 489.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.3782, allocations: 1.514 MB / 490.7 MB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3782, allocations: 0 / 490.7 MB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.3785, allocations: 220.2 kB / 490.9 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.3786, allocations: 89.02 kB / 491 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.3786, allocations: 3.984 kB / 491 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.3787, allocations: 11.84 kB / 491 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.3788, allocations: 7.984 kB / 491 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.3788, allocations: 0 / 491 MB, free: 7.445 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.481e-05/0.3789, allocations: 111.3 kB / 491.1 MB, free: 7.336 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3789, allocations: 4 kB / 491.1 MB, free: 7.332 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003353/0.3792, allocations: 39.94 kB / 491.1 MB, free: 7.293 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.0001051/0.3793, allocations: 99.23 kB / 491.2 MB, free: 7.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003424/0.3797, allocations: 190.5 kB / 491.4 MB, free: 6.984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3797, allocations: 4.125 kB / 491.4 MB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.3799, allocations: 154.7 kB / 491.6 MB, free: 6.816 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.3801, allocations: 11.98 kB / 491.6 MB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005711/0.3807, allocations: 357.5 kB / 491.9 MB, free: 6.438 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.381, allocations: 0.716 MB / 492.7 MB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.24e-05/0.381, allocations: 448 / 492.7 MB, free: 5.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.087e-05/0.3811, allocations: 11.44 kB / 492.7 MB, free: 5.684 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3811, allocations: 0 / 492.7 MB, free: 5.684 MB / 362.7 MB Notification: Performance of Templates: time 0.003606/0.3847, allocations: 1.307 MB / 494 MB, free: 4.391 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/jenkins1/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