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.001358/0.001358, allocations: 176.5 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.502/1.502, 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.0008614/0.0008614, allocations: 92.62 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003693, allocations: 15.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2798, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.3923, allocations: 77.7 MB / 480.4 MB, free: 2.652 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.3926, allocations: 67.97 kB / 480.5 MB, free: 2.586 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008616/0.4012, allocations: 2.744 MB / 483.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.799e-06/0.4013, allocations: 7.984 kB / 483.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.4013, allocations: 4 kB / 483.3 MB, free: 15.83 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.0008888/0.4022, allocations: 0.4884 MB / 483.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.26e-05/0.4023, allocations: 23.95 kB / 483.8 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.154e-05/0.4024, allocations: 20.66 kB / 483.8 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.4027, allocations: 235.8 kB / 484 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.4027, allocations: 12.59 kB / 484 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.4028, allocations: 16.38 kB / 484.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003834/0.4032, allocations: 204.3 kB / 484.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.4032, allocations: 192 / 484.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.4032, allocations: 7.938 kB / 484.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.4032, allocations: 11.98 kB / 484.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.4036, allocations: 143.8 kB / 484.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.4048, allocations: 0.7896 MB / 485.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003403/0.4052, allocations: 161 kB / 485.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.4054, allocations: 77.89 kB / 485.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.106e-05/0.4055, allocations: 7.984 kB / 485.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003531/0.4058, allocations: 149 kB / 485.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.4058, allocations: 0 / 485.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007167/0.4066, allocations: 257.8 kB / 485.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.4067, allocations: 81.11 kB / 485.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.407, allocations: 206.9 kB / 486.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.407, allocations: 25.7 kB / 486.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.4072, allocations: 140.2 kB / 486.3 MB, free: 12.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.287e-05/0.4072, allocations: 39.45 kB / 486.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.741e-05/0.4073, allocations: 8 kB / 486.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002648/0.4075, allocations: 334.8 kB / 486.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.4077, allocations: 67.95 kB / 486.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.408, allocations: 123.8 kB / 486.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004899/0.4085, allocations: 206.7 kB / 487 MB, free: 11.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.4085, allocations: 0 / 487 MB, free: 11.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005606/0.4091, allocations: 245.2 kB / 487.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.4091, allocations: 8.094 kB / 487.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.4091, allocations: 3.938 kB / 487.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.722e-05/0.4092, allocations: 4 kB / 487.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.4094, allocations: 39.92 kB / 487.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.4094, allocations: 4 kB / 487.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001854/0.4096, allocations: 35.88 kB / 487.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.575e-05/0.4097, allocations: 12 kB / 487.4 MB, free: 11.38 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.0002024/0.4099, allocations: 145.7 kB / 487.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.4099, allocations: 15.81 kB / 487.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005391/0.4105, allocations: 222.8 kB / 487.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.4105, allocations: 4 kB / 487.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.4105, allocations: 0 / 487.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.4105, allocations: 112 / 487.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003844/0.4109, allocations: 277.3 kB / 488 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.4109, allocations: 0 / 488 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.4111, allocations: 27.92 kB / 488.1 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.4111, allocations: 0 / 488.1 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.4111, allocations: 0 / 488.1 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.4111, allocations: 12 kB / 488.1 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4111, allocations: 0 / 488.1 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005011/0.4117, allocations: 229.5 kB / 488.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.4118, allocations: 96.91 kB / 488.4 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.4119, allocations: 8 kB / 488.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.412, allocations: 19.98 kB / 488.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.4121, allocations: 19.97 kB / 488.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.4121, allocations: 4 kB / 488.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001952/0.4123, allocations: 140.6 kB / 488.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4124, allocations: 4 kB / 488.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003469/0.4127, allocations: 43.91 kB / 488.6 MB, free: 10.03 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.0002717/0.413, allocations: 99.19 kB / 488.7 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004903/0.4135, allocations: 177.2 kB / 488.9 MB, free: 9.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4135, allocations: 4.125 kB / 488.9 MB, free: 9.746 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002091/0.4137, allocations: 88.52 kB / 489 MB, free: 9.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.4142, allocations: 36.72 kB / 489 MB, free: 9.625 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.4153, allocations: 427 kB / 489.4 MB, free: 9.184 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005002/0.4158, allocations: 0.7358 MB / 490.2 MB, free: 8.422 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001653/0.416, allocations: 45.45 kB / 490.2 MB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.689e-05/0.416, allocations: 15.44 kB / 490.2 MB, free: 8.355 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.416, allocations: 0 / 490.2 MB, free: 8.355 MB / 362.7 MB Notification: Performance of Templates: time 0.006783/0.4228, allocations: 1.841 MB / 492.1 MB, free: 6.543 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/jenkins1/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