Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.162/1.162, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009634/0.0009636, allocations: 97.14 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002087/0.0002089, allocations: 4 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.1808, allocations: 51.49 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08241/0.2633, allocations: 78.48 MB / 487.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.2635, allocations: 65.92 kB / 488 MB, free: 12.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007743/0.2713, allocations: 2.84 MB / 490.8 MB, free: 9.215 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2713, allocations: 0 / 490.8 MB, free: 9.215 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.2713, allocations: 15.94 kB / 490.8 MB, free: 9.199 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006373/0.2719, allocations: 495.9 kB / 491.3 MB, free: 8.656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.272, allocations: 8.031 kB / 491.3 MB, free: 8.648 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.2721, allocations: 39.7 kB / 491.3 MB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.2724, allocations: 234.6 kB / 491.6 MB, free: 8.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.2724, allocations: 16.23 kB / 491.6 MB, free: 8.324 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.2724, allocations: 12 kB / 491.6 MB, free: 8.312 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.2728, allocations: 203.5 kB / 491.8 MB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.2728, allocations: 0 / 491.8 MB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.2728, allocations: 7.938 kB / 491.8 MB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.2728, allocations: 11.94 kB / 491.8 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002718/0.2731, allocations: 139.8 kB / 492 MB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009908/0.2741, allocations: 0.7897 MB / 492.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.2744, allocations: 165 kB / 492.9 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.2744, allocations: 8.141 kB / 492.9 MB, free: 6.902 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.2747, allocations: 155.8 kB / 493.1 MB, free: 6.734 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.2747, allocations: 0 / 493.1 MB, free: 6.734 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005027/0.2752, allocations: 249.9 kB / 493.3 MB, free: 6.484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.2752, allocations: 85.11 kB / 493.4 MB, free: 6.383 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.2754, allocations: 178.2 kB / 493.6 MB, free: 6.203 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.2754, allocations: 29.7 kB / 493.6 MB, free: 6.168 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.512e-05/0.2755, allocations: 148 kB / 493.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.43e-05/0.2755, allocations: 43.45 kB / 493.8 MB, free: 5.977 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-06/0.2756, allocations: 0 / 493.8 MB, free: 5.977 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.2757, allocations: 334.8 kB / 494.1 MB, free: 5.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.2758, allocations: 75.95 kB / 494.2 MB, free: 5.566 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.276, allocations: 115.6 kB / 494.3 MB, free: 5.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.2761, allocations: 92 kB / 494.4 MB, free: 5.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2761, allocations: 7.938 kB / 494.4 MB, free: 5.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003744/0.2765, allocations: 233.2 kB / 494.6 MB, free: 5.098 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.2765, allocations: 8 kB / 494.6 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.2766, allocations: 0 / 494.6 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.2766, allocations: 4 kB / 494.6 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.2767, allocations: 39.97 kB / 494.7 MB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.2768, allocations: 3.938 kB / 494.7 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000156/0.2769, allocations: 44.05 kB / 494.7 MB, free: 5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.2769, allocations: 16 kB / 494.7 MB, free: 4.984 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.000107/0.2771, allocations: 133.8 kB / 494.9 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.71e-05/0.2771, allocations: 27.64 kB / 494.9 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004097/0.2775, allocations: 215.1 kB / 495.1 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.2775, allocations: 11.86 kB / 495.1 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.2775, allocations: 4 kB / 495.1 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2776, allocations: 0 / 495.1 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002412/0.2778, allocations: 269.4 kB / 495.4 MB, free: 4.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2778, allocations: 3.984 kB / 495.4 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.2779, allocations: 23.98 kB / 495.4 MB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.278, allocations: 4 kB / 495.4 MB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.278, allocations: 0 / 495.4 MB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.278, allocations: 4 kB / 495.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.278, allocations: 0 / 495.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003534/0.2783, allocations: 243.2 kB / 495.7 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.218e-05/0.2784, allocations: 96.86 kB / 495.7 MB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.2784, allocations: 4 kB / 495.7 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.2786, allocations: 23.97 kB / 495.8 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.415e-05/0.2786, allocations: 15.97 kB / 495.8 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.2787, allocations: 8 kB / 495.8 MB, free: 3.809 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001023/0.2788, allocations: 148.4 kB / 495.9 MB, free: 3.664 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2788, allocations: 0 / 495.9 MB, free: 3.664 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002288/0.279, allocations: 36 kB / 496 MB, free: 3.629 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.0001352/0.2791, allocations: 113.2 kB / 496.1 MB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003254/0.2795, allocations: 175.9 kB / 496.3 MB, free: 3.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2795, allocations: 0 / 496.3 MB, free: 3.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.2796, allocations: 83.89 kB / 496.3 MB, free: 3.258 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002398/0.2799, allocations: 32.17 kB / 496.4 MB, free: 3.227 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000572/0.2805, allocations: 434.8 kB / 496.8 MB, free: 2.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.2807, allocations: 0.7438 MB / 497.5 MB, free: 2 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.2809, allocations: 37.52 kB / 497.6 MB, free: 1.961 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.286e-05/0.2809, allocations: 15.44 kB / 497.6 MB, free: 1.945 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2809, allocations: 0 / 497.6 MB, free: 1.945 MB / 362.7 MB Notification: Performance of Templates: time 0.003886/0.2848, allocations: 1.819 MB / 499.4 MB, free: 160 kB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches