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.001438/0.001438, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.001722/0.001722, allocations: 193.8 kB / 18.86 MB, free: 4.754 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.337/1.337, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.001152/0.001152, allocations: 47.94 kB / 280.8 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09712, allocations: 46.63 MB / 327.4 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003442/0.1006, allocations: 1.91 MB / 329.3 MB, free: 2.871 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.1017, allocations: 0.6164 MB / 330 MB, free: 2.246 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.1019, allocations: 4 kB / 330 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.102, allocations: 15.8 kB / 330 MB, free: 2.227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.1022, allocations: 31.72 kB / 330 MB, free: 2.195 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002618/0.1025, allocations: 59.95 kB / 330.1 MB, free: 2.137 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.1027, allocations: 167.4 kB / 330.2 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.1029, allocations: 69.36 kB / 330.3 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.103, allocations: 67.77 kB / 330.4 MB, free: 1.836 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.1032, allocations: 79.56 kB / 330.4 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.1032, allocations: 16 kB / 330.5 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.62e-05/0.1033, allocations: 27.94 kB / 330.5 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.268e-05/0.1034, allocations: 47.75 kB / 330.5 MB, free: 1.668 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.425e-05/0.1035, allocations: 75.55 kB / 330.6 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.1037, allocations: 128 kB / 330.7 MB, free: 1.469 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1037, allocations: 0 / 330.7 MB, free: 1.469 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1037, allocations: 4 kB / 330.7 MB, free: 1.465 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.1037, allocations: 0 / 330.7 MB, free: 1.465 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.0009009/0.1046, allocations: 0.5067 MB / 331.2 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1047, allocations: 8.031 kB / 331.2 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.402e-05/0.1048, allocations: 28.64 kB / 331.3 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.105, allocations: 239.7 kB / 331.5 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.1051, allocations: 12.66 kB / 331.5 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.1051, allocations: 16.38 kB / 331.5 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.1055, allocations: 199.3 kB / 331.7 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1055, allocations: 3.938 kB / 331.7 MB, free: 368 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.1055, allocations: 4 kB / 331.7 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.685e-05/0.1055, allocations: 8 kB / 331.7 MB, free: 356 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.1058, allocations: 143.8 kB / 331.9 MB, free: 212 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.107, allocations: 0.7703 MB / 332.7 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000344/0.1074, allocations: 173 kB / 332.8 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.1075, allocations: 69.81 kB / 332.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.763e-05/0.1076, allocations: 4 kB / 332.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.1079, allocations: 148.9 kB / 333 MB, free: 14.94 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.764e-06/0.1079, allocations: 4 kB / 333 MB, free: 14.94 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005734/0.1085, allocations: 253.4 kB / 333.3 MB, free: 14.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.1085, allocations: 85.05 kB / 333.4 MB, free: 14.58 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.1087, allocations: 203 kB / 333.6 MB, free: 14.38 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1088, allocations: 25.7 kB / 333.6 MB, free: 14.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.1089, allocations: 144.1 kB / 333.7 MB, free: 14.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.1089, allocations: 43.44 kB / 333.8 MB, free: 14.15 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.106e-05/0.109, allocations: 45.7 kB / 333.8 MB, free: 14.1 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1092, allocations: 326.8 kB / 334.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.1093, allocations: 67.95 kB / 334.2 MB, free: 13.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.1095, allocations: 126.8 kB / 334.3 MB, free: 13.56 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003298/0.1099, allocations: 214.7 kB / 334.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1099, allocations: 3.938 kB / 334.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004052/0.1103, allocations: 241.1 kB / 334.8 MB, free: 13.08 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1103, allocations: 8 kB / 334.8 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1103, allocations: 0 / 334.8 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.1104, allocations: 7.984 kB / 334.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.1105, allocations: 36.11 kB / 334.8 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.026e-06/0.1105, allocations: 4 kB / 334.8 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.1107, allocations: 31.81 kB / 334.9 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.1107, allocations: 8 kB / 334.9 MB, free: 12.98 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.0001461/0.1109, allocations: 145.6 kB / 335 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.851e-05/0.1109, allocations: 15.81 kB / 335 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004425/0.1114, allocations: 215.6 kB / 335.2 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.1114, allocations: 4 kB / 335.3 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.1114, allocations: 0 / 335.3 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1114, allocations: 0 / 335.3 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.1117, allocations: 277.4 kB / 335.5 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1117, allocations: 0 / 335.5 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.1118, allocations: 23.92 kB / 335.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1118, allocations: 0 / 335.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.1118, allocations: 4 kB / 335.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.1119, allocations: 4 kB / 335.6 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1119, allocations: 4.156 kB / 335.6 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003739/0.1122, allocations: 233.6 kB / 335.8 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.491e-05/0.1123, allocations: 88.92 kB / 335.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.1123, allocations: 3.984 kB / 335.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.1125, allocations: 19.98 kB / 335.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.99e-05/0.1126, allocations: 23.91 kB / 335.9 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.779e-06/0.1126, allocations: 4 kB / 335.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.1127, allocations: 140.6 kB / 336.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1127, allocations: 0 / 336.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002624/0.113, allocations: 47.84 kB / 336.1 MB, free: 11.65 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.0001579/0.1131, allocations: 95.25 kB / 336.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004093/0.1136, allocations: 191.8 kB / 336.4 MB, free: 11.36 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1136, allocations: 0 / 336.4 MB, free: 11.36 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.1138, allocations: 83.89 kB / 336.5 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.1141, allocations: 43.81 kB / 336.5 MB, free: 11.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007432/0.1149, allocations: 479.3 kB / 337 MB, free: 10.73 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.1152, allocations: 0.7319 MB / 337.7 MB, free: 9.973 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.115e-05/0.1153, allocations: 23.44 kB / 337.7 MB, free: 9.949 MB / 286.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1153, allocations: 4 kB / 337.7 MB, free: 9.945 MB / 286.1 MB Notification: Performance of Templates: time 0.004264/0.1196, allocations: 2.425 MB / 340.2 MB, free: 7.523 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches