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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 55.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3645, allocations: 50.55 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003229/0.3677, allocations: 1.889 MB / 411.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.3689, allocations: 0.6427 MB / 411.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.3691, allocations: 4 kB / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.3692, allocations: 31.66 kB / 411.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.3694, allocations: 31.66 kB / 411.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.3697, allocations: 83.78 kB / 411.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002696/0.37, allocations: 163.4 kB / 412.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.3702, allocations: 72.25 kB / 412.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.3704, allocations: 79.62 kB / 412.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.3707, allocations: 83.61 kB / 412.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.3707, allocations: 12 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.143e-05/0.3708, allocations: 24 kB / 412.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.214e-05/0.3709, allocations: 39.84 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.371, allocations: 87.41 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002665/0.3713, allocations: 190.9 kB / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3713, allocations: 0 / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3713, allocations: 0 / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.3713, allocations: 0 / 412.7 MB, free: 14.14 MB / 334.1 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.0009506/0.3723, allocations: 0.5158 MB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.3723, allocations: 8.031 kB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.3725, allocations: 36.62 kB / 413.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.3728, allocations: 239.9 kB / 413.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/0.3728, allocations: 8.656 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.3729, allocations: 24.3 kB / 413.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.3732, allocations: 204.1 kB / 413.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.3732, allocations: 0 / 413.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.3733, allocations: 4 kB / 413.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.956e-05/0.3733, allocations: 8 kB / 413.7 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003041/0.3736, allocations: 143.8 kB / 413.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.3747, allocations: 0.7662 MB / 414.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.3751, allocations: 169 kB / 414.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.3752, allocations: 81.73 kB / 414.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.3753, allocations: 0 / 414.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.3755, allocations: 145 kB / 415 MB, free: 11.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.3755, allocations: 0 / 415 MB, free: 11.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005859/0.3761, allocations: 261.4 kB / 415.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.099e-05/0.3762, allocations: 77.11 kB / 415.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.3764, allocations: 211 kB / 415.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.3764, allocations: 37.7 kB / 415.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3765, allocations: 144.1 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.916e-05/0.3766, allocations: 43.44 kB / 415.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.397e-05/0.3767, allocations: 41.7 kB / 415.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3768, allocations: 326.8 kB / 416.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.3769, allocations: 67.95 kB / 416.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.3771, allocations: 133.8 kB / 416.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.3775, allocations: 206.6 kB / 416.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3775, allocations: 0 / 416.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003853/0.3779, allocations: 237.1 kB / 416.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.3779, allocations: 8.188 kB / 416.7 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3779, allocations: 4.094 kB / 416.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3779, allocations: 11.92 kB / 416.8 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.3781, allocations: 35.92 kB / 416.8 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.3781, allocations: 4.703 kB / 416.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.3783, allocations: 31.81 kB / 416.8 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.3783, allocations: 8 kB / 416.8 MB, free: 9.637 MB / 334.1 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,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.3784, allocations: 145.6 kB / 417 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.801e-05/0.3785, allocations: 23.8 kB / 417 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004446/0.3789, allocations: 227 kB / 417.2 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3789, allocations: 3.938 kB / 417.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3789, allocations: 0 / 417.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.3789, allocations: 0 / 417.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002533/0.3792, allocations: 273.3 kB / 417.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3792, allocations: 0 / 417.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.3793, allocations: 23.97 kB / 417.5 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.3793, allocations: 4 kB / 417.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.3794, allocations: 8 kB / 417.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3794, allocations: 0 / 417.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3794, allocations: 0 / 417.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.3798, allocations: 229.5 kB / 417.7 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.3798, allocations: 88.92 kB / 417.8 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.3799, allocations: 12 kB / 417.8 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.38, allocations: 15.97 kB / 417.9 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.156e-05/0.3801, allocations: 15.98 kB / 417.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.3801, allocations: 7.984 kB / 417.9 MB, free: 8.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001246/0.3802, allocations: 144.7 kB / 418 MB, free: 8.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3802, allocations: 0 / 418 MB, free: 8.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.3805, allocations: 39.84 kB / 418.1 MB, free: 8.297 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001596/0.3806, allocations: 109.4 kB / 418.2 MB, free: 8.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.381, allocations: 167.8 kB / 418.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3811, allocations: 3.938 kB / 418.3 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.3812, allocations: 83.94 kB / 418.4 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.3816, allocations: 40.41 kB / 418.5 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006716/0.3823, allocations: 381.3 kB / 418.8 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.3827, allocations: 0.728 MB / 419.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.3828, allocations: 41.52 kB / 419.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.674e-05/0.3829, allocations: 19.44 kB / 419.6 MB, free: 6.676 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3829, allocations: 0 / 419.6 MB, free: 6.676 MB / 334.1 MB Notification: Performance of Templates: time 0.005175/0.388, allocations: 2.136 MB / 421.8 MB, free: 4.562 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches