Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",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.007201/0.007201, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.41/1.41, allocations: 222.9 MB / 239.4 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 180.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03462/0.03462, allocations: 8.786 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 75.88 kB / 463.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09764/0.09911, allocations: 51.57 MB / 0.5029 GB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002456/0.1016, allocations: 1.244 MB / 0.5041 GB, free: 8.887 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.1035, allocations: 1.16 MB / 0.5053 GB, free: 7.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.78e-05/0.1036, allocations: 0 / 0.5053 GB, free: 7.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004844/0.1041, allocations: 83.69 kB / 0.5053 GB, free: 7.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.1053, allocations: 394.2 kB / 0.5057 GB, free: 7.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.321e-06/0.1053, allocations: 0 / 0.5057 GB, free: 7.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.1066, allocations: 0.7724 MB / 0.5065 GB, free: 6.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.755e-05/0.1066, allocations: 4 kB / 0.5065 GB, free: 6.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.031e-05/0.1067, allocations: 11.88 kB / 0.5065 GB, free: 6.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.689e-05/0.1067, allocations: 23.84 kB / 0.5065 GB, free: 6.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.1067, allocations: 4 kB / 0.5065 GB, free: 6.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.1069, allocations: 31.98 kB / 0.5065 GB, free: 6.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.788e-05/0.107, allocations: 23.91 kB / 0.5066 GB, free: 6.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.107, allocations: 19.88 kB / 0.5066 GB, free: 6.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001886/0.1072, allocations: 83.91 kB / 0.5067 GB, free: 6.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1072, allocations: 0 / 0.5067 GB, free: 6.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1072, allocations: 3.984 kB / 0.5067 GB, free: 6.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1072, allocations: 0 / 0.5067 GB, free: 6.277 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004217/0.1077, allocations: 371.1 kB / 0.507 GB, free: 5.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1077, allocations: 12.03 kB / 0.507 GB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.469e-05/0.1078, allocations: 106 kB / 0.5071 GB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004554/0.1083, allocations: 108.1 kB / 0.5072 GB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.1087, allocations: 355.2 kB / 0.5076 GB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.024e-05/0.1088, allocations: 150.9 kB / 0.5077 GB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.928e-05/0.1088, allocations: 158.8 kB / 0.5079 GB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.698e-05/0.1089, allocations: 113.1 kB / 0.508 GB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.109, allocations: 79.28 kB / 0.508 GB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.187e-05/0.109, allocations: 150.6 kB / 0.5082 GB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.97e-05/0.1091, allocations: 150.6 kB / 0.5083 GB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.977e-05/0.1092, allocations: 150.6 kB / 0.5085 GB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003161/0.1095, allocations: 465.9 kB / 0.5089 GB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.315e-05/0.1096, allocations: 173.1 kB / 0.5091 GB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.142e-05/0.1096, allocations: 80.14 kB / 0.5092 GB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.1097, allocations: 75.28 kB / 0.5092 GB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/0.1097, allocations: 117.8 kB / 0.5093 GB, free: 3.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.513e-06/0.1097, allocations: 0 / 0.5093 GB, free: 3.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.867e-05/0.1098, allocations: 41.55 kB / 0.5094 GB, free: 3.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/0.1099, allocations: 126.7 kB / 0.5095 GB, free: 3.156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.1101, allocations: 162.2 kB / 0.5097 GB, free: 2.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.1101, allocations: 25.7 kB / 0.5097 GB, free: 2.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.52e-05/0.1101, allocations: 96.14 kB / 0.5098 GB, free: 2.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.395e-06/0.1102, allocations: 0 / 0.5098 GB, free: 2.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.608e-05/0.1102, allocations: 9.719 kB / 0.5098 GB, free: 2.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1103, allocations: 326.8 kB / 0.5101 GB, free: 2.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.049e-06/0.1103, allocations: 0 / 0.5101 GB, free: 2.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.707e-06/0.1103, allocations: 0 / 0.5101 GB, free: 2.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.236e-05/0.1104, allocations: 75.28 kB / 0.5102 GB, free: 2.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.558e-05/0.1104, allocations: 75.28 kB / 0.5102 GB, free: 2.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.471e-05/0.1105, allocations: 45.48 kB / 0.5103 GB, free: 2.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.1105, allocations: 84.78 kB / 0.5104 GB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.319e-05/0.1106, allocations: 83.27 kB / 0.5104 GB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.363e-05/0.1107, allocations: 154.6 kB / 0.5106 GB, free: 2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.867e-05/0.1107, allocations: 83.22 kB / 0.5107 GB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.426e-05/0.1108, allocations: 154.6 kB / 0.5108 GB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.621e-05/0.1108, allocations: 79.22 kB / 0.5109 GB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.1109, allocations: 75.28 kB / 0.511 GB, free: 1.613 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0001435/0.111, allocations: 280.3 kB / 0.5112 GB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-05/0.1111, allocations: 112.8 kB / 0.5113 GB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.644e-05/0.1112, allocations: 120.8 kB / 0.5115 GB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-05/0.1112, allocations: 176.3 kB / 0.5116 GB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.07e-05/0.1113, allocations: 188.1 kB / 0.5118 GB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.217e-05/0.1114, allocations: 176.3 kB / 0.512 GB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002822/0.1117, allocations: 425.2 kB / 0.5124 GB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.546e-05/0.1117, allocations: 104.9 kB / 0.5125 GB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.134e-05/0.1118, allocations: 104.9 kB / 0.5126 GB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.88e-05/0.1119, allocations: 184.2 kB / 0.5128 GB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.626e-05/0.112, allocations: 184.3 kB / 0.5129 GB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.603e-05/0.1121, allocations: 180.3 kB / 0.5131 GB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.219e-05/0.1121, allocations: 180.2 kB / 0.5133 GB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001603/0.1123, allocations: 320 kB / 0.5136 GB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.253e-05/0.1124, allocations: 185.9 kB / 0.5138 GB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.146e-05/0.1125, allocations: 180.3 kB / 0.5139 GB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.67e-05/0.1126, allocations: 113 kB / 0.514 GB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-05/0.1127, allocations: 180.3 kB / 0.5142 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.825e-05/0.1127, allocations: 108.9 kB / 0.5143 GB, free: 13.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.884e-05/0.1128, allocations: 128.1 kB / 0.5144 GB, free: 13.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1128, allocations: 0 / 0.5144 GB, free: 13.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002895/0.1131, allocations: 0 / 0.5144 GB, free: 13.83 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0005009/0.1136, allocations: 0.8164 MB / 0.5152 GB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.585e-05/0.1137, allocations: 3.938 kB / 0.5152 GB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1137, allocations: 0 / 0.5152 GB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.1137, allocations: 0 / 0.5152 GB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.1142, allocations: 475.7 kB / 0.5157 GB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.1156, allocations: 1.791 MB / 0.5174 GB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.116, allocations: 0.704 MB / 0.5181 GB, free: 9.914 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.175e-05/0.116, allocations: 4 kB / 0.5181 GB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.945e-05/0.1161, allocations: 23.42 kB / 0.5182 GB, free: 9.887 MB / 366.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1161, allocations: 0 / 0.5182 GB, free: 9.887 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/0.1338, allocations: 1.794 MB / 0.5199 GB, free: 8.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.764/7.898, allocations: 6.406 kB / 0.5199 GB, free: 8.172 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe 2>&1)