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.0009747/0.0009748, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.001065/0.001065, allocations: 192 kB / 18.51 MB, free: 4.641 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.266/1.266, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001246/0.001246, allocations: 47.94 kB / 280.6 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09776, allocations: 46.63 MB / 327.3 MB, free: 4.492 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003493/0.1013, allocations: 1.848 MB / 329.1 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.1026, allocations: 0.6405 MB / 329.8 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.1028, allocations: 4 kB / 329.8 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001566/0.1029, allocations: 23.67 kB / 329.8 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001892/0.1031, allocations: 35.66 kB / 329.8 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.1035, allocations: 71.86 kB / 329.9 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002451/0.1038, allocations: 163.4 kB / 330 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.104, allocations: 73.34 kB / 330.1 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.1041, allocations: 67.72 kB / 330.2 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.1043, allocations: 83.55 kB / 330.3 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.865e-05/0.1044, allocations: 16 kB / 330.3 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.483e-05/0.1045, allocations: 19.98 kB / 330.3 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.087e-05/0.1046, allocations: 43.78 kB / 330.3 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.625e-05/0.1047, allocations: 75.55 kB / 330.4 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.105, allocations: 179.6 kB / 330.6 MB, free: 1.129 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.105, allocations: 0 / 330.6 MB, free: 1.129 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.105, allocations: 4 kB / 330.6 MB, free: 1.125 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.105, allocations: 0 / 330.6 MB, free: 1.125 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.001042/0.106, allocations: 0.5028 MB / 331.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.1061, allocations: 8.031 kB / 331.1 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.852e-05/0.1062, allocations: 28.66 kB / 331.1 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.1064, allocations: 235.7 kB / 331.4 MB, free: 276 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.1065, allocations: 12.66 kB / 331.4 MB, free: 264 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.1065, allocations: 16.38 kB / 331.4 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003609/0.1069, allocations: 195.3 kB / 331.6 MB, free: 36 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1069, allocations: 7.875 kB / 331.6 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.1069, allocations: 7.984 kB / 331.6 MB, free: 20 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.1069, allocations: 8 kB / 331.6 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000297/0.1072, allocations: 144 kB / 331.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.1083, allocations: 0.7661 MB / 332.5 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.1086, allocations: 176.9 kB / 332.7 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.1088, allocations: 77.8 kB / 332.8 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.815e-05/0.1088, allocations: 4 kB / 332.8 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002367/0.1091, allocations: 148.9 kB / 332.9 MB, free: 14.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.1091, allocations: 4 kB / 332.9 MB, free: 14.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005267/0.1096, allocations: 253.4 kB / 333.2 MB, free: 14.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.1097, allocations: 85.05 kB / 333.2 MB, free: 14.24 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.1098, allocations: 199 kB / 333.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.1099, allocations: 29.7 kB / 333.5 MB, free: 14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.11, allocations: 144.1 kB / 333.6 MB, free: 13.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.11, allocations: 39.45 kB / 333.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.1101, allocations: 45.7 kB / 333.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1102, allocations: 330.8 kB / 334 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.1103, allocations: 67.95 kB / 334.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.1105, allocations: 118.8 kB / 334.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003698/0.1109, allocations: 218.5 kB / 334.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.1109, allocations: 0 / 334.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004343/0.1113, allocations: 241.1 kB / 334.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1114, allocations: 8 kB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1114, allocations: 0 / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1114, allocations: 4 kB / 334.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.1116, allocations: 40.2 kB / 334.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.1116, allocations: 11.94 kB / 334.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.1117, allocations: 27.83 kB / 334.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.1118, allocations: 8 kB / 334.7 MB, free: 12.65 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.0001403/0.1119, allocations: 149.6 kB / 334.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.1119, allocations: 15.81 kB / 334.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004182/0.1124, allocations: 215.6 kB / 335.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.1124, allocations: 4 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1124, allocations: 0 / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1124, allocations: 0 / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.1126, allocations: 273.4 kB / 335.4 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.1127, allocations: 3.984 kB / 335.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.1128, allocations: 23.92 kB / 335.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.1128, allocations: 0 / 335.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.1128, allocations: 8 kB / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1128, allocations: 0 / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1128, allocations: 4.156 kB / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003522/0.1132, allocations: 230.8 kB / 335.7 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.665e-05/0.1132, allocations: 92.91 kB / 335.7 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.1133, allocations: 4 kB / 335.7 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.1134, allocations: 19.98 kB / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.983e-05/0.1135, allocations: 19.97 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.1135, allocations: 4 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.1136, allocations: 152.4 kB / 335.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1136, allocations: 3.938 kB / 335.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1139, allocations: 43.84 kB / 336 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.0001254/0.114, allocations: 103.2 kB / 336.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003477/0.1144, allocations: 183.8 kB / 336.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1144, allocations: 0 / 336.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.1146, allocations: 79.89 kB / 336.3 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.000303/0.1149, allocations: 43.86 kB / 336.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006104/0.1155, allocations: 385.6 kB / 336.8 MB, free: 10.48 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.1158, allocations: 0.7319 MB / 337.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.1159, allocations: 37.52 kB / 337.5 MB, free: 9.691 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.481e-05/0.116, allocations: 19.44 kB / 337.6 MB, free: 9.672 MB / 286.1 MB Notification: Performance of SimCode: time 1.462e-06/0.116, allocations: 0 / 337.6 MB, free: 9.672 MB / 286.1 MB Notification: Performance of Templates: time 0.004781/0.1207, allocations: 2.106 MB / 339.7 MB, free: 7.57 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/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