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.001108/0.001107, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 59.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3118, allocations: 50.54 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003073/0.3149, allocations: 1.89 MB / 411.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.3163, allocations: 0.6466 MB / 411.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.3165, allocations: 7.938 kB / 411.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.3166, allocations: 23.67 kB / 411.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.3168, allocations: 35.66 kB / 411.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.3171, allocations: 79.78 kB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.3173, allocations: 167.4 kB / 412.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.3175, allocations: 76.23 kB / 412.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.3177, allocations: 75.66 kB / 412.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.3178, allocations: 83.59 kB / 412.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.855e-05/0.3178, allocations: 12 kB / 412.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.754e-05/0.3179, allocations: 24 kB / 412.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.526e-05/0.318, allocations: 39.84 kB / 412.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.045e-05/0.3181, allocations: 99.38 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002621/0.3184, allocations: 191.1 kB / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3184, allocations: 0 / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3184, allocations: 0 / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.3184, 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.0008479/0.3193, allocations: 0.5181 MB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3193, allocations: 12.03 kB / 413.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.3195, allocations: 28.8 kB / 413.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.3197, allocations: 236 kB / 413.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.3198, allocations: 16.64 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.3198, allocations: 16.38 kB / 413.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.3201, allocations: 196.1 kB / 413.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.3201, allocations: 0 / 413.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.3202, allocations: 8 kB / 413.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.3202, allocations: 7.984 kB / 413.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.3205, allocations: 151.8 kB / 413.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.3215, allocations: 0.7741 MB / 414.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.3218, allocations: 161 kB / 414.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.322, allocations: 81.73 kB / 414.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.672e-05/0.3221, allocations: 4 kB / 414.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002515/0.3223, allocations: 145.2 kB / 415 MB, free: 11.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.3223, allocations: 0 / 415 MB, free: 11.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005604/0.3229, allocations: 253.5 kB / 415.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.323, allocations: 81.11 kB / 415.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.3231, allocations: 211.1 kB / 415.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.3232, allocations: 29.7 kB / 415.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.695e-05/0.3233, allocations: 148.2 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.475e-05/0.3233, allocations: 47.64 kB / 415.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.685e-05/0.3234, allocations: 41.7 kB / 415.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3235, allocations: 330.8 kB / 416.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.3236, allocations: 71.95 kB / 416.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.3238, allocations: 137.7 kB / 416.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.3241, allocations: 202.6 kB / 416.5 MB, free: 9.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3241, allocations: 0 / 416.5 MB, free: 9.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003947/0.3245, allocations: 250 kB / 416.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.3245, allocations: 4 kB / 416.8 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3246, allocations: 4 kB / 416.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.3246, allocations: 0 / 416.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.3247, allocations: 39.91 kB / 416.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.3248, allocations: 80 / 416.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/0.3249, allocations: 31.88 kB / 416.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.3249, allocations: 15.97 kB / 416.9 MB, free: 9.625 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.0001179/0.3251, allocations: 153.7 kB / 417 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.3251, allocations: 19.91 kB / 417 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/0.3255, allocations: 210.9 kB / 417.2 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3255, allocations: 4.109 kB / 417.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3255, allocations: 3.938 kB / 417.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3255, allocations: 3.984 kB / 417.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.3258, allocations: 273.4 kB / 417.5 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3258, allocations: 0 / 417.5 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.3259, allocations: 23.98 kB / 417.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3259, allocations: 0 / 417.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.3259, allocations: 3.984 kB / 417.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3259, allocations: 4 kB / 417.5 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3259, allocations: 0 / 417.5 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003551/0.3263, allocations: 232.9 kB / 417.8 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/0.3264, allocations: 101 kB / 417.9 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.3264, allocations: 96 / 417.9 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3265, allocations: 23.91 kB / 417.9 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.451e-05/0.3266, allocations: 15.98 kB / 417.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.3266, allocations: 4 kB / 417.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.3267, allocations: 148.7 kB / 418.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3267, allocations: 0 / 418.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000242/0.327, allocations: 39.95 kB / 418.1 MB, free: 8.285 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.0001266/0.3271, allocations: 109.5 kB / 418.2 MB, free: 8.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003588/0.3275, allocations: 171.8 kB / 418.4 MB, free: 8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3275, allocations: 0 / 418.4 MB, free: 8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.3277, allocations: 83.89 kB / 418.4 MB, free: 7.918 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.328, allocations: 44.28 kB / 418.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005767/0.3286, allocations: 365 kB / 418.8 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.3288, allocations: 0.7436 MB / 419.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.329, allocations: 37.52 kB / 419.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.409e-05/0.329, allocations: 15.44 kB / 419.6 MB, free: 6.668 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.329, allocations: 0 / 419.6 MB, free: 6.668 MB / 334.1 MB Notification: Performance of Templates: time 0.004746/0.3338, allocations: 2.147 MB / 421.8 MB, free: 4.539 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