Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 100.6 kB / 16.5 MB, free: 6.645 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.001235/0.001235, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 241.1 MB, free: 13.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 51.58 kB / 300.1 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09209, allocations: 49.45 MB / 349.5 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.0034/0.09552, allocations: 1.91 MB / 351.4 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.09677, allocations: 0.5765 MB / 352 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.09696, allocations: 0 / 352 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.09712, allocations: 19.8 kB / 352 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.09731, allocations: 31.78 kB / 352 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.09757, allocations: 59.88 kB / 352.1 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.0978, allocations: 159.4 kB / 352.3 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.09797, allocations: 57.64 kB / 352.3 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.0981, allocations: 67.66 kB / 352.4 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.09825, allocations: 79.59 kB / 352.5 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.14e-05/0.09829, allocations: 8 kB / 352.5 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.09836, allocations: 16 kB / 352.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.409e-05/0.09844, allocations: 39.84 kB / 352.5 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.227e-05/0.09854, allocations: 79.47 kB / 352.6 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.09874, allocations: 163.6 kB / 352.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.09876, allocations: 7.984 kB / 352.8 MB, free: 1.234 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.09877, allocations: 0 / 352.8 MB, free: 1.234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.09878, allocations: 0 / 352.8 MB, free: 1.234 MB / 286.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.0008848/0.09967, allocations: 0.4911 MB / 353.3 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.09971, allocations: 12.03 kB / 353.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.871e-05/0.09977, allocations: 46.73 kB / 353.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.3e-05/0.09983, allocations: 28.59 kB / 353.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.1001, allocations: 243.7 kB / 353.6 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.1001, allocations: 20.64 kB / 353.6 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.1001, allocations: 19.88 kB / 353.6 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003421/0.1005, allocations: 199.7 kB / 353.8 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1005, allocations: 0 / 353.8 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.889e-05/0.1005, allocations: 8 kB / 353.8 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.1006, allocations: 11.92 kB / 353.8 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003139/0.1009, allocations: 139.8 kB / 354 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.102, allocations: 0.7739 MB / 354.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.1024, allocations: 165.1 kB / 354.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.1025, allocations: 77.73 kB / 355 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/0.1026, allocations: 4 kB / 355 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.1028, allocations: 152.9 kB / 355.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.1028, allocations: 0 / 355.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005885/0.1034, allocations: 253.5 kB / 355.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.1035, allocations: 81.11 kB / 355.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.1037, allocations: 203 kB / 355.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.1037, allocations: 29.7 kB / 355.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.712e-05/0.1038, allocations: 144.1 kB / 355.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.1039, allocations: 35.45 kB / 355.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.827e-05/0.1039, allocations: 45.7 kB / 355.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1041, allocations: 334.8 kB / 356.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.1042, allocations: 67.95 kB / 356.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.1044, allocations: 130.8 kB / 356.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.1049, allocations: 202.7 kB / 356.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.1049, allocations: 0 / 356.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004288/0.1053, allocations: 245.2 kB / 356.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1053, allocations: 12.03 kB / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1054, allocations: 0 / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1054, allocations: 4 kB / 356.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.1055, allocations: 39.91 kB / 356.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.1056, allocations: 4 kB / 356.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.1057, allocations: 23.83 kB / 356.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.1058, allocations: 12.11 kB / 357 MB, free: 12.7 MB / 302.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.0001287/0.1059, allocations: 157.6 kB / 357.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.964e-05/0.1059, allocations: 15.81 kB / 357.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004321/0.1064, allocations: 215.7 kB / 357.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.1064, allocations: 0 / 357.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1064, allocations: 0 / 357.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.1064, allocations: 7.984 kB / 357.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.1067, allocations: 269.4 kB / 357.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1067, allocations: 0 / 357.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.1068, allocations: 23.98 kB / 357.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1068, allocations: 0 / 357.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.1069, allocations: 12 kB / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1069, allocations: 0 / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1069, allocations: 3.984 kB / 357.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000471/0.1073, allocations: 225.5 kB / 357.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.802e-05/0.1074, allocations: 96.91 kB / 358 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.1075, allocations: 8 kB / 358 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.1076, allocations: 11.98 kB / 358 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.799e-05/0.1077, allocations: 19.97 kB / 358 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.1077, allocations: 4 kB / 358 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.1079, allocations: 144.5 kB / 358.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1079, allocations: 0 / 358.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004175/0.1083, allocations: 47.84 kB / 358.2 MB, free: 11.36 MB / 302.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.0008736/0.1092, allocations: 0.7724 MB / 359 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004226/0.1096, allocations: 175.9 kB / 359.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1096, allocations: 0 / 359.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.1098, allocations: 79.89 kB / 359.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.1102, allocations: 44.12 kB / 359.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.1129, allocations: 2.232 MB / 361.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.1132, allocations: 0.7358 MB / 362.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001145/0.1133, allocations: 33.52 kB / 362.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.518e-05/0.1134, allocations: 63.42 kB / 362.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1134, allocations: 0 / 362.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02941/0.1429, allocations: 3.728 MB / 366 MB, free: 3.414 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/0.1431, allocations: 190.7 kB / 366.2 MB, free: 3.152 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/1.948, allocations: 0 / 366.2 MB, free: 3.152 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches