Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.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.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",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.005385/0.005385, allocations: 102 kB / 15.73 MB, free: 6.039 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.354/1.354, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001279/0.001279, allocations: 188.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03478/0.03478, allocations: 8.79 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 79.86 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1041, allocations: 51.57 MB / 0.5029 GB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.002263/0.1064, allocations: 1.249 MB / 0.5041 GB, free: 8.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.1082, allocations: 1.152 MB / 0.5052 GB, free: 7.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.049e-05/0.1083, allocations: 3.938 kB / 0.5053 GB, free: 7.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004122/0.1087, allocations: 79.69 kB / 0.5053 GB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009125/0.1096, allocations: 394.5 kB / 0.5057 GB, free: 7.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.358e-06/0.1096, allocations: 0 / 0.5057 GB, free: 7.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.111, allocations: 0.9598 MB / 0.5066 GB, free: 6.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.637e-05/0.1111, allocations: 4 kB / 0.5066 GB, free: 6.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.463e-05/0.1111, allocations: 15.94 kB / 0.5067 GB, free: 6.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.195e-05/0.1112, allocations: 23.84 kB / 0.5067 GB, free: 6.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.1112, allocations: 0 / 0.5067 GB, free: 6.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.1113, allocations: 31.98 kB / 0.5067 GB, free: 6.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.1114, allocations: 19.92 kB / 0.5067 GB, free: 6.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.218e-05/0.1114, allocations: 27.8 kB / 0.5068 GB, free: 6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.1116, allocations: 75.97 kB / 0.5068 GB, free: 5.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1116, allocations: 7.984 kB / 0.5068 GB, free: 5.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1116, allocations: 0 / 0.5068 GB, free: 5.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.1117, allocations: 0 / 0.5068 GB, free: 5.918 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.0004753/0.1121, allocations: 387 kB / 0.5072 GB, free: 5.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1122, allocations: 12.03 kB / 0.5072 GB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.191e-05/0.1122, allocations: 106 kB / 0.5073 GB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004066/0.1126, allocations: 108 kB / 0.5074 GB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.1131, allocations: 351.9 kB / 0.5078 GB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.808e-05/0.1132, allocations: 154.9 kB / 0.5079 GB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.1132, allocations: 150.9 kB / 0.5081 GB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.386e-05/0.1133, allocations: 109.1 kB / 0.5082 GB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1133, allocations: 75.28 kB / 0.5082 GB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.483e-05/0.1133, allocations: 150.6 kB / 0.5084 GB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.4e-05/0.1134, allocations: 154.6 kB / 0.5085 GB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.51e-05/0.1134, allocations: 154.5 kB / 0.5087 GB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002596/0.1137, allocations: 469.9 kB / 0.5091 GB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.257e-05/0.1138, allocations: 169.1 kB / 0.5093 GB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.898e-05/0.1138, allocations: 84.14 kB / 0.5094 GB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.1139, allocations: 75.28 kB / 0.5094 GB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.114, allocations: 117.8 kB / 0.5095 GB, free: 2.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.114, allocations: 0 / 0.5095 GB, free: 2.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.947e-05/0.1141, allocations: 41.48 kB / 0.5096 GB, free: 2.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.1142, allocations: 130.7 kB / 0.5097 GB, free: 2.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.1144, allocations: 169.7 kB / 0.5099 GB, free: 2.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.1144, allocations: 29.7 kB / 0.5099 GB, free: 2.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.796e-05/0.1145, allocations: 100.1 kB / 0.51 GB, free: 2.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.233e-06/0.1145, allocations: 0 / 0.51 GB, free: 2.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.176e-05/0.1145, allocations: 9.719 kB / 0.51 GB, free: 2.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1146, allocations: 326.8 kB / 0.5103 GB, free: 2.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.801e-06/0.1146, allocations: 0 / 0.5103 GB, free: 2.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.945e-06/0.1146, allocations: 0 / 0.5103 GB, free: 2.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.636e-05/0.1147, allocations: 75.28 kB / 0.5104 GB, free: 2.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-05/0.1147, allocations: 79.28 kB / 0.5105 GB, free: 1.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 9.025e-05/0.1148, allocations: 49.48 kB / 0.5105 GB, free: 1.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.1148, allocations: 79.28 kB / 0.5106 GB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.654e-05/0.1149, allocations: 75.28 kB / 0.5107 GB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.115, allocations: 154.6 kB / 0.5108 GB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.16e-05/0.115, allocations: 79.22 kB / 0.5109 GB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.228e-05/0.1151, allocations: 154.5 kB / 0.511 GB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.013e-05/0.1152, allocations: 83.22 kB / 0.5111 GB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.998e-05/0.1152, allocations: 79.28 kB / 0.5112 GB, free: 1.219 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.0001273/0.1154, allocations: 272.3 kB / 0.5114 GB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.1154, allocations: 116.8 kB / 0.5115 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.35e-05/0.1155, allocations: 117.5 kB / 0.5117 GB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.568e-05/0.1156, allocations: 184.2 kB / 0.5118 GB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.485e-05/0.1157, allocations: 180.2 kB / 0.512 GB, free: 332 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.89e-05/0.1157, allocations: 176.3 kB / 0.5122 GB, free: 148 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003291/0.1161, allocations: 425.1 kB / 0.5126 GB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.619e-05/0.1161, allocations: 113 kB / 0.5127 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.33e-05/0.1162, allocations: 104.9 kB / 0.5128 GB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.798e-05/0.1162, allocations: 184.2 kB / 0.513 GB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/0.1163, allocations: 176.3 kB / 0.5131 GB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001666/0.1165, allocations: 188.2 kB / 0.5133 GB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.267e-05/0.1165, allocations: 176.3 kB / 0.5135 GB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.1167, allocations: 316 kB / 0.5138 GB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.776e-05/0.1167, allocations: 193.9 kB / 0.514 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.234e-05/0.1168, allocations: 180.2 kB / 0.5141 GB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.878e-05/0.1169, allocations: 105 kB / 0.5142 GB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.117, allocations: 184.3 kB / 0.5144 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.117, allocations: 108.9 kB / 0.5145 GB, free: 13.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.468e-05/0.1171, allocations: 132.2 kB / 0.5146 GB, free: 13.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1171, allocations: 0 / 0.5146 GB, free: 13.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002738/0.1174, allocations: 4 kB / 0.5146 GB, free: 13.43 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.0003427/0.1177, allocations: 0.8164 MB / 0.5154 GB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.937e-05/0.1178, allocations: 11.88 kB / 0.5155 GB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1178, allocations: 0 / 0.5155 GB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.082e-06/0.1178, allocations: 0 / 0.5155 GB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.1182, allocations: 477.2 kB / 0.5159 GB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.1196, allocations: 1.816 MB / 0.5177 GB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.1199, allocations: 0.7 MB / 0.5184 GB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.499e-05/0.12, allocations: 7.984 kB / 0.5184 GB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.092e-05/0.12, allocations: 23.42 kB / 0.5184 GB, free: 9.453 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.12, allocations: 0 / 0.5184 GB, free: 9.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01705/0.1371, allocations: 1.842 MB / 0.5202 GB, free: 7.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.562/7.699, allocations: 7.5 kB / 0.5202 GB, free: 7.695 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe 2>&1)