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.001327/0.001327, allocations: 102 kB / 17.16 MB, free: 6.32 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.001279/0.001279, allocations: 190 kB / 18.07 MB, free: 5.414 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.458/1.458, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001168/0.001168, allocations: 43.94 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1016, allocations: 46.63 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003442/0.105, allocations: 1.913 MB / 328.5 MB, free: 2.973 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.1065, allocations: 0.6164 MB / 329.1 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1067, allocations: 0 / 329.1 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.1069, allocations: 23.8 kB / 329.1 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.1071, allocations: 23.78 kB / 329.2 MB, free: 2.301 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002958/0.1074, allocations: 63.88 kB / 329.2 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002267/0.1076, allocations: 155.4 kB / 329.4 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.1078, allocations: 69.41 kB / 329.4 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.108, allocations: 67.72 kB / 329.5 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.1081, allocations: 83.55 kB / 329.6 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.1082, allocations: 8 kB / 329.6 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.281e-05/0.1083, allocations: 12 kB / 329.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.45e-05/0.1084, allocations: 39.83 kB / 329.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.1085, allocations: 79.47 kB / 329.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002567/0.1087, allocations: 159.6 kB / 329.9 MB, free: 1.574 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1088, allocations: 0 / 329.9 MB, free: 1.574 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1088, allocations: 4 kB / 329.9 MB, free: 1.57 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.1088, allocations: 0 / 329.9 MB, free: 1.57 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.00103/0.1098, allocations: 0.5028 MB / 330.4 MB, free: 1.02 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.1099, allocations: 8.031 kB / 330.4 MB, free: 1.012 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.382e-05/0.11, allocations: 24.66 kB / 330.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003011/0.1103, allocations: 239.7 kB / 330.7 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.1103, allocations: 16.66 kB / 330.7 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.1103, allocations: 12.38 kB / 330.7 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003396/0.1107, allocations: 199.2 kB / 330.9 MB, free: 488 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1107, allocations: 0 / 330.9 MB, free: 488 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.1107, allocations: 11.98 kB / 330.9 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.1108, allocations: 4 kB / 330.9 MB, free: 472 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000285/0.111, allocations: 147.8 kB / 331 MB, free: 324 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.1121, allocations: 0.7701 MB / 331.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.1124, allocations: 169 kB / 332 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.1125, allocations: 77.8 kB / 332 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.456e-05/0.1126, allocations: 8.141 kB / 332.1 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.1129, allocations: 144.9 kB / 332.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.1129, allocations: 4 kB / 332.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.000595/0.1135, allocations: 261.2 kB / 332.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.1136, allocations: 81.11 kB / 332.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.1138, allocations: 203 kB / 332.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.1138, allocations: 29.69 kB / 332.8 MB, free: 14.45 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.1139, allocations: 140.1 kB / 332.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.242e-05/0.114, allocations: 43.45 kB / 332.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.734e-05/0.1141, allocations: 41.7 kB / 333 MB, free: 14.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1142, allocations: 334.8 kB / 333.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.1144, allocations: 67.95 kB / 333.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002518/0.1146, allocations: 130.6 kB / 333.5 MB, free: 13.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004484/0.1151, allocations: 206.6 kB / 333.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.1151, allocations: 4 kB / 333.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004038/0.1155, allocations: 245.1 kB / 333.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.1155, allocations: 4 kB / 334 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1156, allocations: 0 / 334 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1156, allocations: 4 kB / 334 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.1157, allocations: 36.16 kB / 334 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.1158, allocations: 7.938 kB / 334 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.1159, allocations: 27.83 kB / 334 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.1159, allocations: 11.98 kB / 334 MB, free: 13.09 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.0001362/0.1161, allocations: 141.7 kB / 334.2 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.1161, allocations: 15.81 kB / 334.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005006/0.1166, allocations: 227.8 kB / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1166, allocations: 3.938 kB / 334.4 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1166, allocations: 0 / 334.4 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1167, allocations: 7.984 kB / 334.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.1169, allocations: 265.5 kB / 334.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1169, allocations: 3.938 kB / 334.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.117, allocations: 23.98 kB / 334.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.117, allocations: 4 kB / 334.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.1171, allocations: 3.984 kB / 334.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1171, allocations: 0 / 334.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1171, allocations: 4 kB / 334.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003993/0.1175, allocations: 233.5 kB / 335 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/0.1175, allocations: 88.92 kB / 335 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.1176, allocations: 8 kB / 335 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.1177, allocations: 23.97 kB / 335.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.673e-05/0.1178, allocations: 11.98 kB / 335.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.1178, allocations: 4 kB / 335.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001195/0.1179, allocations: 148.6 kB / 335.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1179, allocations: 0 / 335.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002558/0.1182, allocations: 39.84 kB / 335.3 MB, free: 11.75 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.000131/0.1183, allocations: 107.1 kB / 335.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003753/0.1187, allocations: 171.8 kB / 335.5 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.1187, allocations: 0 / 335.5 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.1189, allocations: 83.89 kB / 335.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.1192, allocations: 39.86 kB / 335.7 MB, free: 11.35 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007715/0.12, allocations: 450.2 kB / 336.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.1204, allocations: 0.7358 MB / 336.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.1205, allocations: 37.52 kB / 336.9 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.724e-05/0.1206, allocations: 15.44 kB / 336.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1206, allocations: 0 / 336.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of Templates: time 0.005127/0.1257, allocations: 1.9 MB / 338.8 MB, free: 8.172 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches