Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000884/0.0008841, allocations: 183.8 kB / 18.04 MB, free: 3.781 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.4 MB / 224.2 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007134/0.0007134, allocations: 90.42 kB / 272.5 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003848, allocations: 8 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2019, allocations: 47.57 MB / 377 MB, free: 45.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08813/0.2901, allocations: 76.94 MB / 453.9 MB, free: 3.617 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.2904, allocations: 67.97 kB / 454 MB, free: 3.551 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008349/0.2987, allocations: 2.711 MB / 456.7 MB, free: 0.832 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.2988, allocations: 4 kB / 456.7 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.2988, allocations: 7.984 kB / 456.7 MB, free: 0.8203 MB / 330.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.000754/0.2996, allocations: 496.1 kB / 457.2 MB, free: 288 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2996, allocations: 11.97 kB / 457.2 MB, free: 276 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.502e-05/0.2997, allocations: 24.66 kB / 457.3 MB, free: 252 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.3, allocations: 242.1 kB / 457.5 MB, free: 15.97 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.3, allocations: 12.66 kB / 457.5 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.3001, allocations: 24.31 kB / 457.5 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003863/0.3005, allocations: 191.5 kB / 457.7 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3005, allocations: 192 / 457.7 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.3005, allocations: 11.94 kB / 457.7 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/0.3005, allocations: 4 kB / 457.7 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.3008, allocations: 143.8 kB / 457.9 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.3019, allocations: 0.7896 MB / 458.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.3023, allocations: 149.1 kB / 458.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.3024, allocations: 92.19 kB / 458.9 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.3025, allocations: 4 kB / 458.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.3027, allocations: 145 kB / 459 MB, free: 14.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.3028, allocations: 0 / 459 MB, free: 14.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005596/0.3033, allocations: 261.9 kB / 459.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.3034, allocations: 89.09 kB / 459.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.3036, allocations: 202.9 kB / 459.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.3036, allocations: 33.81 kB / 459.6 MB, free: 13.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.109e-05/0.3037, allocations: 144.1 kB / 459.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.408e-05/0.3038, allocations: 35.47 kB / 459.8 MB, free: 13.51 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-06/0.3038, allocations: 4 kB / 459.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3039, allocations: 330.8 kB / 460.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.3041, allocations: 75.89 kB / 460.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.3043, allocations: 127 kB / 460.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003254/0.3046, allocations: 198.7 kB / 460.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.3046, allocations: 8 kB / 460.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004498/0.3051, allocations: 245 kB / 460.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3051, allocations: 8 kB / 460.8 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3051, allocations: 192 / 460.8 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3052, allocations: 8 kB / 460.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.3053, allocations: 43.91 kB / 460.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3054, allocations: 0 / 460.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.3055, allocations: 35.83 kB / 460.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.3056, allocations: 8 kB / 460.9 MB, free: 12.38 MB / 346.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.0001282/0.3057, allocations: 145.7 kB / 461 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.622e-05/0.3057, allocations: 15.81 kB / 461 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004431/0.3062, allocations: 210.9 kB / 461.2 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3062, allocations: 0 / 461.2 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3062, allocations: 4 kB / 461.2 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3062, allocations: 7.984 kB / 461.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.3065, allocations: 273.4 kB / 461.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.3065, allocations: 3.938 kB / 461.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.3067, allocations: 19.98 kB / 461.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.3067, allocations: 7.984 kB / 461.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.3067, allocations: 4 kB / 461.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3067, allocations: 4 kB / 461.5 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3067, allocations: 4 kB / 461.5 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.3071, allocations: 225.6 kB / 461.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.556e-05/0.3072, allocations: 92.86 kB / 461.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.3072, allocations: 11.94 kB / 461.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.3073, allocations: 23.97 kB / 461.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.3074, allocations: 15.98 kB / 461.9 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.3074, allocations: 7.984 kB / 461.9 MB, free: 11.22 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001287/0.3076, allocations: 148.4 kB / 462.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3076, allocations: 0 / 462.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002548/0.3078, allocations: 35.91 kB / 462.1 MB, free: 11.04 MB / 346.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.0001653/0.308, allocations: 107.2 kB / 462.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003793/0.3084, allocations: 175.8 kB / 462.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3084, allocations: 4 kB / 462.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.3086, allocations: 80.33 kB / 462.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.3089, allocations: 56.38 kB / 462.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000687/0.3096, allocations: 415 kB / 462.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.31, allocations: 0.7358 MB / 463.6 MB, free: 9.422 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.3101, allocations: 37.5 kB / 463.7 MB, free: 9.379 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.3101, allocations: 23.44 kB / 463.7 MB, free: 9.355 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3102, allocations: 0 / 463.7 MB, free: 9.355 MB / 346.7 MB Notification: Performance of Templates: time 0.004654/0.3148, allocations: 1.844 MB / 465.6 MB, free: 7.531 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches