Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 226.5 MB / 245.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007668/0.0007668, allocations: 90.59 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002214/0.0002215, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.188, allocations: 51.28 MB / 408.6 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08802/0.276, allocations: 78.42 MB / 487.1 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.2763, allocations: 63.97 kB / 487.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007977/0.2843, allocations: 2.836 MB / 490 MB, free: 10.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2843, allocations: 0 / 490 MB, free: 10.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.2843, allocations: 12 kB / 490 MB, free: 10.27 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.0006463/0.285, allocations: 0.4923 MB / 490.5 MB, free: 9.719 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.285, allocations: 8.031 kB / 490.5 MB, free: 9.711 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.2852, allocations: 40.58 kB / 490.5 MB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.2854, allocations: 235.7 kB / 490.7 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.2854, allocations: 16.66 kB / 490.8 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.2855, allocations: 12.38 kB / 490.8 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003289/0.2858, allocations: 204.3 kB / 491 MB, free: 9.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.2858, allocations: 4.125 kB / 491 MB, free: 9.156 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.2859, allocations: 11.94 kB / 491 MB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.2859, allocations: 4 kB / 491 MB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002771/0.2862, allocations: 143.8 kB / 491.1 MB, free: 9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009742/0.2871, allocations: 0.7897 MB / 491.9 MB, free: 8.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.2874, allocations: 157 kB / 492.1 MB, free: 7.977 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.2876, allocations: 77.75 kB / 492.2 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.2876, allocations: 8 kB / 492.2 MB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.2879, allocations: 148.9 kB / 492.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.2879, allocations: 0 / 492.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005185/0.2884, allocations: 257.5 kB / 492.6 MB, free: 7.465 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.2885, allocations: 81.11 kB / 492.6 MB, free: 7.367 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.2886, allocations: 202.9 kB / 492.8 MB, free: 7.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.2887, allocations: 33.7 kB / 492.9 MB, free: 7.121 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.131e-05/0.2887, allocations: 140.2 kB / 493 MB, free: 6.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.425e-05/0.2888, allocations: 43.44 kB / 493 MB, free: 6.938 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.121e-05/0.2888, allocations: 4 kB / 493.1 MB, free: 6.934 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.35e-05/0.2889, allocations: 326.8 kB / 493.4 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.2891, allocations: 67.95 kB / 493.4 MB, free: 6.539 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.2892, allocations: 134.5 kB / 493.6 MB, free: 6.387 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.2895, allocations: 203.3 kB / 493.8 MB, free: 6.164 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2896, allocations: 0 / 493.8 MB, free: 6.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000395/0.29, allocations: 249.1 kB / 494 MB, free: 5.914 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.29, allocations: 7.938 kB / 494 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.29, allocations: 4 kB / 494 MB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.29, allocations: 4 kB / 494 MB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.2902, allocations: 44.09 kB / 494.1 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.2902, allocations: 4 kB / 494.1 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.2904, allocations: 35.83 kB / 494.1 MB, free: 5.816 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.498e-05/0.2904, allocations: 7.984 kB / 494.1 MB, free: 5.809 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.0001178/0.2905, allocations: 141.7 kB / 494.3 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.2905, allocations: 19.81 kB / 494.3 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004186/0.291, allocations: 218.9 kB / 494.5 MB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.291, allocations: 3.984 kB / 494.5 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.291, allocations: 0 / 494.5 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.291, allocations: 0 / 494.5 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.2912, allocations: 273.3 kB / 494.8 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2913, allocations: 4 kB / 494.8 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.2914, allocations: 31.91 kB / 494.8 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2914, allocations: 0 / 494.8 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.2914, allocations: 8 kB / 494.8 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2914, allocations: 0 / 494.8 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2914, allocations: 0 / 494.8 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003557/0.2918, allocations: 226.5 kB / 495 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.694e-05/0.2918, allocations: 92.86 kB / 495.1 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.2919, allocations: 4 kB / 495.1 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.292, allocations: 23.97 kB / 495.1 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.2921, allocations: 31.89 kB / 495.2 MB, free: 4.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.2921, allocations: 4 kB / 495.2 MB, free: 4.645 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001134/0.2922, allocations: 148.4 kB / 495.3 MB, free: 4.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2922, allocations: 0 / 495.3 MB, free: 4.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002485/0.2925, allocations: 39.91 kB / 495.4 MB, free: 4.461 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.0001369/0.2926, allocations: 109.6 kB / 495.5 MB, free: 4.348 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003544/0.293, allocations: 178.7 kB / 495.6 MB, free: 4.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.293, allocations: 4 kB / 495.6 MB, free: 4.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.2932, allocations: 79.89 kB / 495.7 MB, free: 4.094 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.2935, allocations: 52.44 kB / 495.8 MB, free: 4.043 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006278/0.2941, allocations: 448.7 kB / 496.2 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.2944, allocations: 0.7358 MB / 496.9 MB, free: 2.812 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.846e-05/0.2945, allocations: 19.44 kB / 497 MB, free: 2.793 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2945, allocations: 4 kB / 497 MB, free: 2.789 MB / 362.7 MB Notification: Performance of Templates: time 0.003693/0.2982, allocations: 2.405 MB / 499.4 MB, free: 416 kB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches