Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001638/0.001637, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.327/1.327, 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.000783/0.000783, allocations: 92.22 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.0002547, allocations: 7.938 kB / 351.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2258, allocations: 50.41 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09165/0.3175, allocations: 77.67 MB / 479.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.3178, allocations: 67.97 kB / 479.2 MB, free: 2.777 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008105/0.3259, allocations: 2.739 MB / 482 MB, free: 40 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.326, allocations: 0 / 482 MB, free: 40 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.326, allocations: 4 kB / 482 MB, free: 36 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008058/0.3268, allocations: 0.4999 MB / 482.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3269, allocations: 11.97 kB / 482.5 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.208e-05/0.3269, allocations: 27.64 kB / 482.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002804/0.3272, allocations: 234.7 kB / 482.7 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.3273, allocations: 8.281 kB / 482.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.776e-05/0.3273, allocations: 19.98 kB / 482.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003609/0.3277, allocations: 191.8 kB / 482.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3277, allocations: 7.953 kB / 483 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.3277, allocations: 11.98 kB / 483 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.3277, allocations: 4 kB / 483 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000303/0.328, allocations: 143.8 kB / 483.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.3292, allocations: 0.7974 MB / 483.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.3295, allocations: 157.1 kB / 484.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.353e-05/0.3296, allocations: 0 / 484.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.3298, allocations: 149.1 kB / 484.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.705e-06/0.3299, allocations: 4 kB / 484.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005429/0.3304, allocations: 257.4 kB / 484.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.3305, allocations: 77.11 kB / 484.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.3306, allocations: 178.2 kB / 484.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.3307, allocations: 37.7 kB / 484.7 MB, free: 13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.574e-05/0.3308, allocations: 140.1 kB / 484.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.3308, allocations: 47.44 kB / 484.9 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.3308, allocations: 0 / 484.9 MB, free: 12.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.331, allocations: 330.8 kB / 485.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.3311, allocations: 67.95 kB / 485.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.3313, allocations: 131.8 kB / 485.4 MB, free: 12.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.3315, allocations: 79.97 kB / 485.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3315, allocations: 0 / 485.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000417/0.3319, allocations: 245.9 kB / 485.8 MB, free: 11.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.3319, allocations: 4 kB / 485.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.332, allocations: 4 kB / 485.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.332, allocations: 0 / 485.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.3321, allocations: 40.02 kB / 485.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.3322, allocations: 11.92 kB / 485.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.3323, allocations: 35.89 kB / 485.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.3324, allocations: 8 kB / 485.9 MB, free: 11.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.3325, allocations: 148.7 kB / 486 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.3325, allocations: 23.67 kB / 486 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004262/0.333, allocations: 222.9 kB / 486.3 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.333, allocations: 4 kB / 486.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.333, allocations: 0 / 486.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.333, allocations: 0 / 486.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002451/0.3332, allocations: 269.6 kB / 486.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.3333, allocations: 4 kB / 486.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.3334, allocations: 23.92 kB / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.3334, allocations: 3.953 kB / 486.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.3334, allocations: 7.984 kB / 486.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3334, allocations: 0 / 486.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3334, allocations: 4 kB / 486.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.3338, allocations: 239.3 kB / 486.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.3339, allocations: 96.88 kB / 486.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/0.3339, allocations: 8 kB / 486.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.3341, allocations: 23.97 kB / 486.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.712e-05/0.3341, allocations: 19.92 kB / 486.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.3342, allocations: 7.984 kB / 487 MB, free: 10.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001171/0.3343, allocations: 140.6 kB / 487.1 MB, free: 10.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3343, allocations: 8 kB / 487.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002573/0.3346, allocations: 32 kB / 487.1 MB, free: 10.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001462/0.3347, allocations: 99.78 kB / 487.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003614/0.3351, allocations: 176 kB / 487.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3351, allocations: 4.062 kB / 487.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.3353, allocations: 87.88 kB / 487.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.3355, allocations: 35.97 kB / 487.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006279/0.3362, allocations: 418.9 kB / 487.9 MB, free: 9.629 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.3365, allocations: 0.7478 MB / 488.7 MB, free: 8.852 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.3366, allocations: 37.52 kB / 488.7 MB, free: 8.809 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.3366, allocations: 19.38 kB / 488.7 MB, free: 8.789 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3366, allocations: 0 / 488.7 MB, free: 8.789 MB / 362.7 MB Notification: Performance of Templates: time 0.004376/0.341, allocations: 1.813 MB / 490.5 MB, free: 7.004 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches