Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.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.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",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.004874/0.004874, allocations: 105 kB / 15.74 MB, free: 5.992 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.397/1.397, 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.001414/0.001414, allocations: 192.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03464/0.03464, allocations: 8.798 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 75.88 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09438/0.09602, allocations: 51.56 MB / 0.5029 GB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestSingleLayer12over12): time 0.002812/0.09888, allocations: 1.248 MB / 0.5041 GB, free: 8.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.1009, allocations: 1.156 MB / 0.5052 GB, free: 7.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.76e-05/0.1009, allocations: 0 / 0.5052 GB, free: 7.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004529/0.1014, allocations: 83.67 kB / 0.5053 GB, free: 7.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001032/0.1024, allocations: 394.2 kB / 0.5057 GB, free: 7.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.752e-06/0.1025, allocations: 0 / 0.5057 GB, free: 7.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.1039, allocations: 0.9792 MB / 0.5066 GB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.338e-05/0.104, allocations: 4 kB / 0.5067 GB, free: 6.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.543e-05/0.104, allocations: 11.92 kB / 0.5067 GB, free: 6.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.824e-05/0.104, allocations: 15.86 kB / 0.5067 GB, free: 6.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.548e-06/0.104, allocations: 0 / 0.5067 GB, free: 6.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.1042, allocations: 43.92 kB / 0.5067 GB, free: 6.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.18e-05/0.1043, allocations: 19.91 kB / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.077e-05/0.1043, allocations: 23.81 kB / 0.5068 GB, free: 6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.1045, allocations: 84.02 kB / 0.5068 GB, free: 5.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1045, allocations: 0 / 0.5068 GB, free: 5.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1045, allocations: 0 / 0.5068 GB, free: 5.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1045, 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.0003426/0.1048, allocations: 383 kB / 0.5072 GB, free: 5.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1049, allocations: 8.031 kB / 0.5072 GB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.836e-05/0.1049, allocations: 106 kB / 0.5073 GB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004247/0.1054, allocations: 120 kB / 0.5074 GB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004671/0.1058, allocations: 348 kB / 0.5078 GB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.648e-05/0.1059, allocations: 150.9 kB / 0.5079 GB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.106, allocations: 150.9 kB / 0.508 GB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.429e-05/0.106, allocations: 105.1 kB / 0.5081 GB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/0.1061, allocations: 79.28 kB / 0.5082 GB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.866e-05/0.1061, allocations: 154.6 kB / 0.5084 GB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-05/0.1062, allocations: 154.6 kB / 0.5085 GB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.695e-05/0.1062, allocations: 154.5 kB / 0.5087 GB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002852/0.1065, allocations: 461.9 kB / 0.5091 GB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.438e-05/0.1066, allocations: 169.1 kB / 0.5093 GB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.072e-05/0.1067, allocations: 84.14 kB / 0.5093 GB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.1067, allocations: 75.28 kB / 0.5094 GB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/0.1067, allocations: 117.8 kB / 0.5095 GB, free: 2.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.312e-06/0.1067, allocations: 0 / 0.5095 GB, free: 2.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.62e-05/0.1068, allocations: 41.61 kB / 0.5096 GB, free: 2.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.1069, allocations: 130.7 kB / 0.5097 GB, free: 2.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.1071, allocations: 161.7 kB / 0.5099 GB, free: 2.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.1071, allocations: 25.7 kB / 0.5099 GB, free: 2.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.916e-05/0.1072, allocations: 108.1 kB / 0.51 GB, free: 2.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.753e-06/0.1072, allocations: 0 / 0.51 GB, free: 2.477 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.173e-05/0.1072, allocations: 9.719 kB / 0.51 GB, free: 2.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1073, allocations: 326.8 kB / 0.5103 GB, free: 2.133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.588e-06/0.1073, allocations: 0 / 0.5103 GB, free: 2.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.698e-06/0.1073, allocations: 0 / 0.5103 GB, free: 2.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.04e-05/0.1074, allocations: 79.22 kB / 0.5104 GB, free: 2.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.222e-05/0.1074, allocations: 79.22 kB / 0.5105 GB, free: 1.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.15e-05/0.1075, allocations: 45.48 kB / 0.5105 GB, free: 1.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.1075, allocations: 80.84 kB / 0.5106 GB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/0.1075, allocations: 75.28 kB / 0.5106 GB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.941e-05/0.1076, allocations: 162.5 kB / 0.5108 GB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.461e-05/0.1076, allocations: 79.28 kB / 0.5109 GB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.858e-05/0.1077, allocations: 158.5 kB / 0.511 GB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.52e-05/0.1078, allocations: 75.28 kB / 0.5111 GB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.1078, allocations: 75.28 kB / 0.5112 GB, free: 1.23 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.0001311/0.1079, allocations: 280.3 kB / 0.5114 GB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.026e-05/0.108, allocations: 120.8 kB / 0.5116 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.459e-05/0.1081, allocations: 113.5 kB / 0.5117 GB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.484e-05/0.1082, allocations: 188.2 kB / 0.5118 GB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.517e-05/0.1082, allocations: 176.3 kB / 0.512 GB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.478e-05/0.1083, allocations: 176.3 kB / 0.5122 GB, free: 152 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.1085, allocations: 429.1 kB / 0.5126 GB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.789e-05/0.1086, allocations: 105 kB / 0.5127 GB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.603e-05/0.1086, allocations: 112.9 kB / 0.5128 GB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.098e-05/0.1087, allocations: 184.2 kB / 0.513 GB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.839e-05/0.1087, allocations: 176.3 kB / 0.5131 GB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001271/0.1089, allocations: 184.2 kB / 0.5133 GB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.044e-05/0.1089, allocations: 180.3 kB / 0.5135 GB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001955/0.1091, allocations: 315.6 kB / 0.5138 GB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.673e-05/0.1093, allocations: 194.3 kB / 0.514 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.541e-05/0.1093, allocations: 180.2 kB / 0.5141 GB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.412e-05/0.1094, allocations: 105 kB / 0.5142 GB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.972e-05/0.1095, allocations: 192.2 kB / 0.5144 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.229e-05/0.1095, allocations: 101 kB / 0.5145 GB, free: 13.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.1096, allocations: 128.2 kB / 0.5146 GB, free: 13.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1096, allocations: 0 / 0.5146 GB, free: 13.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002773/0.1099, allocations: 0 / 0.5146 GB, free: 13.44 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.0003772/0.1103, allocations: 0.8203 MB / 0.5154 GB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.137e-05/0.1104, allocations: 0 / 0.5154 GB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1104, allocations: 0 / 0.5154 GB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.685e-06/0.1104, allocations: 0 / 0.5154 GB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00042/0.1108, allocations: 475.6 kB / 0.5159 GB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.112, allocations: 1.812 MB / 0.5177 GB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.1123, allocations: 0.7078 MB / 0.5184 GB, free: 9.496 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.199e-05/0.1123, allocations: 7.984 kB / 0.5184 GB, free: 9.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.959e-05/0.1124, allocations: 19.44 kB / 0.5184 GB, free: 9.469 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1124, allocations: 0 / 0.5184 GB, free: 9.469 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.13, allocations: 1.845 MB / 0.5202 GB, free: 7.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.595/7.725, allocations: 5.531 kB / 0.5202 GB, free: 7.707 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestSingleLayer12over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestSingleLayer12over12.fmu > HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe 2>&1)