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.005922/0.005922, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.39/1.39, allocations: 222.9 MB / 239.4 MB, free: 4.492 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.001437/0.001437, allocations: 180.5 kB / 289.7 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03663/0.03663, allocations: 8.805 MB / 348.7 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002363/0.002363, allocations: 79.88 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09486, allocations: 51.56 MB / 0.5029 GB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.002289/0.09718, allocations: 1.25 MB / 0.5041 GB, free: 8.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.09907, allocations: 1.156 MB / 0.5053 GB, free: 7.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.09913, allocations: 0 / 0.5053 GB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004159/0.09958, allocations: 87.91 kB / 0.5053 GB, free: 7.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009938/0.1006, allocations: 386.5 kB / 0.5057 GB, free: 7.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.21e-06/0.1006, allocations: 0 / 0.5057 GB, free: 7.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001456/0.1021, allocations: 0.9637 MB / 0.5067 GB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.359e-05/0.1021, allocations: 11.92 kB / 0.5067 GB, free: 6.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.517e-05/0.1022, allocations: 11.88 kB / 0.5067 GB, free: 6.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.052e-05/0.1022, allocations: 19.86 kB / 0.5067 GB, free: 6.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.1022, allocations: 0 / 0.5067 GB, free: 6.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.1024, allocations: 39.97 kB / 0.5067 GB, free: 6.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.593e-05/0.1024, allocations: 19.92 kB / 0.5068 GB, free: 6.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.1025, allocations: 19.81 kB / 0.5068 GB, free: 5.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.1027, allocations: 83.61 kB / 0.5068 GB, free: 5.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1027, allocations: 0 / 0.5068 GB, free: 5.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1027, allocations: 0 / 0.5068 GB, free: 5.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1027, allocations: 0 / 0.5068 GB, free: 5.91 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.0003904/0.1031, allocations: 394.8 kB / 0.5072 GB, free: 5.477 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1031, allocations: 12.03 kB / 0.5072 GB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.609e-05/0.1032, allocations: 106 kB / 0.5073 GB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003811/0.1036, allocations: 108.1 kB / 0.5074 GB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004332/0.104, allocations: 348.1 kB / 0.5078 GB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.461e-05/0.1041, allocations: 154.9 kB / 0.5079 GB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.053e-05/0.1042, allocations: 158.9 kB / 0.5081 GB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.449e-05/0.1042, allocations: 105.1 kB / 0.5082 GB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/0.1043, allocations: 79.28 kB / 0.5082 GB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.878e-05/0.1043, allocations: 150.6 kB / 0.5084 GB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.522e-05/0.1044, allocations: 150.6 kB / 0.5085 GB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.171e-05/0.1045, allocations: 154.6 kB / 0.5087 GB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003051/0.1048, allocations: 461.9 kB / 0.5091 GB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.992e-05/0.1049, allocations: 177.1 kB / 0.5093 GB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.703e-05/0.1049, allocations: 80.14 kB / 0.5094 GB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.105, allocations: 75.28 kB / 0.5094 GB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/0.105, allocations: 113.8 kB / 0.5095 GB, free: 2.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.105, allocations: 0 / 0.5095 GB, free: 2.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.827e-05/0.1051, allocations: 45.59 kB / 0.5096 GB, free: 2.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.006e-05/0.1052, allocations: 130.7 kB / 0.5097 GB, free: 2.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.1054, allocations: 165.7 kB / 0.5099 GB, free: 2.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.1054, allocations: 29.64 kB / 0.5099 GB, free: 2.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.1054, allocations: 100.1 kB / 0.51 GB, free: 2.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.653e-06/0.1055, allocations: 0 / 0.51 GB, free: 2.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-05/0.1055, allocations: 13.7 kB / 0.51 GB, free: 2.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1056, allocations: 318.8 kB / 0.5103 GB, free: 2.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.907e-06/0.1056, allocations: 4 kB / 0.5103 GB, free: 2.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.494e-06/0.1056, allocations: 0 / 0.5103 GB, free: 2.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.22e-05/0.1057, allocations: 75.28 kB / 0.5104 GB, free: 2.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.769e-05/0.1057, allocations: 79.28 kB / 0.5105 GB, free: 1.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.087e-05/0.1058, allocations: 41.58 kB / 0.5105 GB, free: 1.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/0.1058, allocations: 83.22 kB / 0.5106 GB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.891e-05/0.1058, allocations: 79.22 kB / 0.5107 GB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.036e-05/0.1059, allocations: 162.6 kB / 0.5108 GB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.918e-05/0.106, allocations: 79.22 kB / 0.5109 GB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.572e-05/0.106, allocations: 150.6 kB / 0.511 GB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.755e-05/0.1061, allocations: 79.28 kB / 0.5111 GB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.1061, allocations: 83.22 kB / 0.5112 GB, free: 1.207 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.0001375/0.1063, allocations: 272.3 kB / 0.5115 GB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.104e-05/0.1064, allocations: 128.8 kB / 0.5116 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.641e-05/0.1064, allocations: 113.5 kB / 0.5117 GB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.821e-05/0.1065, allocations: 176.3 kB / 0.5119 GB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.522e-05/0.1066, allocations: 188.2 kB / 0.512 GB, free: 312 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.012e-05/0.1066, allocations: 180.3 kB / 0.5122 GB, free: 124 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002671/0.1069, allocations: 421.2 kB / 0.5126 GB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.636e-05/0.107, allocations: 112.9 kB / 0.5127 GB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.329e-05/0.107, allocations: 104.9 kB / 0.5128 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.749e-05/0.1071, allocations: 180.2 kB / 0.513 GB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.991e-05/0.1072, allocations: 176.3 kB / 0.5132 GB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.152e-05/0.1072, allocations: 184.3 kB / 0.5133 GB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.179e-05/0.1073, allocations: 188.2 kB / 0.5135 GB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001498/0.1075, allocations: 308.1 kB / 0.5138 GB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-05/0.1076, allocations: 190 kB / 0.514 GB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.1077, allocations: 184.2 kB / 0.5142 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.57e-05/0.1078, allocations: 109 kB / 0.5143 GB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.3e-05/0.1078, allocations: 180.3 kB / 0.5144 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.401e-05/0.1079, allocations: 104.9 kB / 0.5145 GB, free: 13.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.108, allocations: 136.1 kB / 0.5147 GB, free: 13.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.108, allocations: 0 / 0.5147 GB, free: 13.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002513/0.1083, allocations: 4 kB / 0.5147 GB, free: 13.42 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.0004158/0.1087, allocations: 0.8126 MB / 0.5155 GB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.129e-05/0.1087, allocations: 7.938 kB / 0.5155 GB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1087, allocations: 0 / 0.5155 GB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.954e-06/0.1087, 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.0004701/0.1092, allocations: 481 kB / 0.5159 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.1106, allocations: 1.819 MB / 0.5177 GB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.111, allocations: 0.7039 MB / 0.5184 GB, free: 9.465 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.738e-05/0.111, allocations: 7.938 kB / 0.5184 GB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.941e-05/0.1111, allocations: 19.42 kB / 0.5184 GB, free: 9.438 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1111, allocations: 0 / 0.5184 GB, free: 9.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.1332, allocations: 1.836 MB / 0.5202 GB, free: 7.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/7.774, allocations: 7.578 kB / 0.5202 GB, free: 7.688 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)