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.001184/0.001184, allocations: 109.9 kB / 18.25 MB, free: 4.77 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.001288/0.001288, allocations: 195.6 kB / 19.18 MB, free: 3.844 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.353/1.353, allocations: 205.1 MB / 225 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.001221/0.001221, allocations: 56.14 kB / 281.3 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09562/0.09686, allocations: 46.63 MB / 327.9 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003816/0.1007, allocations: 1.853 MB / 329.8 MB, free: 2.613 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.102, allocations: 0.632 MB / 330.4 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.1022, allocations: 4 kB / 330.4 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.1023, allocations: 23.67 kB / 330.4 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.1025, allocations: 35.67 kB / 330.5 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002801/0.1028, allocations: 71.84 kB / 330.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.103, allocations: 171.3 kB / 330.7 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.1032, allocations: 65.38 kB / 330.8 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.1033, allocations: 71.7 kB / 330.9 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.1035, allocations: 87.55 kB / 330.9 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.95e-05/0.1035, allocations: 12 kB / 331 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.022e-05/0.1036, allocations: 16 kB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.208e-05/0.1037, allocations: 39.84 kB / 331 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.797e-05/0.1038, allocations: 83.52 kB / 331.1 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.104, allocations: 175.6 kB / 331.3 MB, free: 1.129 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.104, allocations: 4 kB / 331.3 MB, free: 1.125 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.104, allocations: 4 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.104, allocations: 0 / 331.3 MB, free: 1.121 MB / 270.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.0009525/0.105, allocations: 0.4989 MB / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.105, allocations: 8.031 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.998e-05/0.1051, allocations: 24.66 kB / 331.8 MB, free: 0.543 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.1054, allocations: 247.7 kB / 332 MB, free: 268 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.1054, allocations: 12.66 kB / 332.1 MB, free: 256 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.1055, allocations: 16.38 kB / 332.1 MB, free: 240 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.1058, allocations: 203.2 kB / 332.3 MB, free: 20 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1058, allocations: 0 / 332.3 MB, free: 20 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.1059, allocations: 7.984 kB / 332.3 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.744e-05/0.1059, allocations: 12 kB / 332.3 MB, free: 0 / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003195/0.1062, allocations: 139.8 kB / 332.4 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.1073, allocations: 0.7662 MB / 333.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.1077, allocations: 173 kB / 333.4 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.1078, allocations: 69.81 kB / 333.4 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.228e-05/0.1079, allocations: 4 kB / 333.4 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.1081, allocations: 156.9 kB / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1081, allocations: 0 / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005621/0.1087, allocations: 257.4 kB / 333.8 MB, free: 14.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.1088, allocations: 81.11 kB / 333.9 MB, free: 14.24 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.109, allocations: 199 kB / 334.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.109, allocations: 29.7 kB / 334.1 MB, free: 14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.393e-05/0.1091, allocations: 144.1 kB / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.1091, allocations: 43.44 kB / 334.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.693e-05/0.1092, allocations: 45.7 kB / 334.4 MB, free: 13.76 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1093, allocations: 326.8 kB / 334.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.1095, allocations: 67.95 kB / 334.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.1097, allocations: 126.8 kB / 334.9 MB, free: 13.22 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003175/0.11, allocations: 210.5 kB / 335.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.11, allocations: 0 / 335.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004034/0.1104, allocations: 241.1 kB / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1104, allocations: 8 kB / 335.3 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1105, allocations: 3.938 kB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.1105, allocations: 4.109 kB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.1107, allocations: 40.11 kB / 335.4 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1107, allocations: 7.938 kB / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.1108, allocations: 27.81 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1109, allocations: 12 kB / 335.4 MB, free: 12.64 MB / 286.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.0001311/0.111, allocations: 145.7 kB / 335.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.111, allocations: 15.81 kB / 335.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004228/0.1115, allocations: 215.6 kB / 335.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1115, allocations: 0 / 335.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1115, allocations: 0 / 335.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1115, allocations: 3.984 kB / 335.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.1118, allocations: 277.4 kB / 336.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1118, allocations: 0 / 336.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.1119, allocations: 23.92 kB / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.1119, allocations: 0 / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.1119, allocations: 12 kB / 336.1 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1119, allocations: 4.156 kB / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1119, allocations: 0 / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/0.1123, allocations: 234.6 kB / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/0.1124, allocations: 88.92 kB / 336.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.1124, allocations: 4 kB / 336.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.1126, allocations: 23.97 kB / 336.4 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.803e-05/0.1126, allocations: 19.97 kB / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.1127, allocations: 0 / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001209/0.1128, allocations: 148.4 kB / 336.6 MB, free: 11.35 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1128, allocations: 96 / 336.6 MB, free: 11.35 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002665/0.1131, allocations: 47.78 kB / 336.7 MB, free: 11.3 MB / 286.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.0001553/0.1132, allocations: 99.25 kB / 336.7 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004164/0.1137, allocations: 191.8 kB / 336.9 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.1137, allocations: 0 / 336.9 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.1138, allocations: 79.89 kB / 337 MB, free: 10.93 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.1142, allocations: 39.88 kB / 337.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007362/0.115, allocations: 416.1 kB / 337.5 MB, free: 10.45 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.1153, allocations: 0.7319 MB / 338.2 MB, free: 9.691 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.065e-05/0.1154, allocations: 19.44 kB / 338.2 MB, free: 9.672 MB / 286.1 MB Notification: Performance of SimCode: time 1.863e-06/0.1154, allocations: 4 kB / 338.2 MB, free: 9.668 MB / 286.1 MB Notification: Performance of Templates: time 0.005027/0.1204, allocations: 2.431 MB / 340.6 MB, free: 7.238 MB / 286.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