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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 110.7 kB / 18.37 MB, free: 4.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001751/0.001752, allocations: 185.7 kB / 19.3 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 225.2 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 55.91 kB / 329.1 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1016, allocations: 46.61 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003166/0.1048, allocations: 1.845 MB / 377.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.106, allocations: 0.6279 MB / 378.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.1061, allocations: 11.94 kB / 378.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.1063, allocations: 23.67 kB / 378.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.1064, allocations: 31.72 kB / 378.3 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003003/0.1067, allocations: 75.78 kB / 378.4 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002184/0.1069, allocations: 159.4 kB / 378.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.1071, allocations: 81.47 kB / 378.6 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.1072, allocations: 63.72 kB / 378.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.1074, allocations: 91.53 kB / 378.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.1074, allocations: 16 kB / 378.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.796e-05/0.1075, allocations: 16 kB / 378.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.905e-05/0.1076, allocations: 39.84 kB / 378.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.325e-05/0.1077, allocations: 83.47 kB / 378.9 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002417/0.108, allocations: 191.2 kB / 379.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.108, allocations: 0 / 379.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.108, allocations: 0 / 379.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.108, allocations: 0 / 379.1 MB, free: 1.238 MB / 318.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.0009007/0.1089, allocations: 0.5026 MB / 379.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1089, allocations: 11.97 kB / 379.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.265e-05/0.109, allocations: 24.66 kB / 379.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.1093, allocations: 243.7 kB / 379.9 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.1093, allocations: 8.656 kB / 379.9 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.039e-05/0.1094, allocations: 16.38 kB / 379.9 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000382/0.1097, allocations: 211.2 kB / 380.1 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1098, allocations: 0 / 380.1 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.1098, allocations: 4 kB / 380.1 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.276e-05/0.1098, allocations: 8 kB / 380.1 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1888/0.2986, allocations: 138 kB / 380.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2998, allocations: 0.774 MB / 381 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.3002, allocations: 159.9 kB / 381.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.3003, allocations: 76.16 kB / 381.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.106e-05/0.3004, allocations: 10.47 kB / 381.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000247/0.3006, allocations: 147.5 kB / 381.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.3006, allocations: 0 / 381.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005665/0.3012, allocations: 251.9 kB / 381.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.3012, allocations: 82.62 kB / 381.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.3014, allocations: 209.5 kB / 381.9 MB, free: 10.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.3014, allocations: 32.27 kB / 382 MB, free: 10.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.668e-05/0.3015, allocations: 136.8 kB / 382.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.3016, allocations: 43.61 kB / 382.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.3016, allocations: 40.58 kB / 382.2 MB, free: 10 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.702e-05/0.3017, allocations: 329.4 kB / 382.5 MB, free: 9.691 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.3019, allocations: 71.83 kB / 382.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.302, allocations: 127.4 kB / 382.7 MB, free: 9.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003429/0.3024, allocations: 202.8 kB / 382.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3024, allocations: 2.969 kB / 382.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004227/0.3028, allocations: 248.2 kB / 383.1 MB, free: 9.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.3029, allocations: 6.812 kB / 383.2 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3029, allocations: 4.062 kB / 383.2 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.3029, allocations: 6.891 kB / 383.2 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.3031, allocations: 33.77 kB / 383.2 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.3031, allocations: 4.562 kB / 383.2 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.3033, allocations: 35.72 kB / 383.2 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.3033, allocations: 10.55 kB / 383.2 MB, free: 9.508 MB / 318.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.0001133/0.3034, allocations: 144.4 kB / 383.4 MB, free: 9.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.842e-05/0.3035, allocations: 21.69 kB / 383.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004837/0.304, allocations: 209.8 kB / 383.6 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.304, allocations: 1.688 kB / 383.6 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.304, allocations: 1.188 kB / 383.6 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.304, allocations: 2.375 kB / 383.6 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.3042, allocations: 272 kB / 383.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3042, allocations: 2.047 kB / 383.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.3043, allocations: 26.3 kB / 383.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.3044, allocations: 2.25 kB / 383.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3044, allocations: 2.406 kB / 383.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.3044, allocations: 2.156 kB / 383.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3044, allocations: 3.344 kB / 383.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003617/0.3048, allocations: 236.7 kB / 384.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.3048, allocations: 94.92 kB / 384.2 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/0.3048, allocations: 8.562 kB / 384.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.305, allocations: 16.27 kB / 384.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.085e-05/0.305, allocations: 16.33 kB / 384.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/0.3051, allocations: 4.953 kB / 384.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.3052, allocations: 145.5 kB / 384.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3052, allocations: 1.344 kB / 384.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.3054, allocations: 40.28 kB / 384.5 MB, free: 8.867 MB / 318.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.000135/0.3056, allocations: 112.2 kB / 384.6 MB, free: 8.777 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003861/0.306, allocations: 174.2 kB / 384.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.306, allocations: 0 / 384.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.3062, allocations: 85.97 kB / 384.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.3065, allocations: 49.28 kB / 384.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006619/0.3072, allocations: 399 kB / 385.3 MB, free: 8.547 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.3074, allocations: 0.7406 MB / 386 MB, free: 7.848 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.332e-05/0.3074, allocations: 19.27 kB / 386 MB, free: 7.84 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3074, allocations: 1.594 kB / 386 MB, free: 7.84 MB / 318.1 MB Notification: Performance of Templates: time 0.004875/0.3123, allocations: 2.42 MB / 388.5 MB, free: 7.656 MB / 318.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches