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.005843/0.005843, allocations: 98.95 kB / 15.73 MB, free: 6.055 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.366/1.366, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001515/0.001515, allocations: 192.4 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03588/0.03588, allocations: 8.799 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 75.88 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09027/0.09185, allocations: 51.56 MB / 0.5029 GB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.002579/0.09447, allocations: 1.242 MB / 0.5041 GB, free: 8.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.09669, allocations: 1.16 MB / 0.5052 GB, free: 7.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.09678, allocations: 0 / 0.5052 GB, free: 7.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005217/0.09731, allocations: 87.89 kB / 0.5053 GB, free: 7.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.0985, allocations: 390.4 kB / 0.5057 GB, free: 7.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.094e-06/0.09852, allocations: 0 / 0.5057 GB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001449/0.09998, allocations: 0.9637 MB / 0.5066 GB, free: 6.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.912e-05/0.1, allocations: 8 kB / 0.5067 GB, free: 6.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.147e-05/0.1001, allocations: 7.938 kB / 0.5067 GB, free: 6.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.045e-05/0.1001, allocations: 23.84 kB / 0.5067 GB, free: 6.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.1002, allocations: 0 / 0.5067 GB, free: 6.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.1003, allocations: 35.98 kB / 0.5067 GB, free: 6.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.444e-05/0.1004, allocations: 23.91 kB / 0.5067 GB, free: 6.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.068e-05/0.1005, allocations: 19.81 kB / 0.5068 GB, free: 6.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002441/0.1007, allocations: 83.61 kB / 0.5068 GB, free: 5.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1007, allocations: 0 / 0.5068 GB, free: 5.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1007, allocations: 0 / 0.5068 GB, free: 5.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1008, allocations: 0 / 0.5068 GB, free: 5.973 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.0004578/0.1012, allocations: 390.8 kB / 0.5072 GB, free: 5.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.1013, allocations: 12.03 kB / 0.5072 GB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.116e-05/0.1014, allocations: 106 kB / 0.5073 GB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004334/0.1018, allocations: 112.1 kB / 0.5074 GB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004519/0.1023, allocations: 344.1 kB / 0.5078 GB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/0.1023, allocations: 158.9 kB / 0.5079 GB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.1024, allocations: 154.9 kB / 0.5081 GB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.124e-05/0.1025, allocations: 105.1 kB / 0.5082 GB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.1025, allocations: 75.28 kB / 0.5082 GB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.655e-05/0.1026, allocations: 154.6 kB / 0.5084 GB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.765e-05/0.1026, allocations: 154.6 kB / 0.5085 GB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.096e-05/0.1027, allocations: 154.6 kB / 0.5087 GB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002939/0.103, allocations: 469.9 kB / 0.5091 GB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.946e-05/0.1031, allocations: 165.1 kB / 0.5093 GB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.733e-05/0.1031, allocations: 84.14 kB / 0.5094 GB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.1031, allocations: 75.28 kB / 0.5094 GB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/0.1032, allocations: 117.8 kB / 0.5095 GB, free: 3.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.102e-06/0.1032, allocations: 0 / 0.5095 GB, free: 3.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.874e-05/0.1033, allocations: 37.59 kB / 0.5096 GB, free: 2.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.1034, allocations: 134.7 kB / 0.5097 GB, free: 2.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.1035, allocations: 161.7 kB / 0.5099 GB, free: 2.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.1036, allocations: 37.58 kB / 0.5099 GB, free: 2.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.202e-05/0.1036, allocations: 104.1 kB / 0.51 GB, free: 2.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-06/0.1036, allocations: 0 / 0.51 GB, free: 2.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.096e-05/0.1037, allocations: 9.719 kB / 0.51 GB, free: 2.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1038, allocations: 322.8 kB / 0.5103 GB, free: 2.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.571e-06/0.1038, allocations: 0 / 0.5103 GB, free: 2.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.046e-06/0.1038, allocations: 0 / 0.5103 GB, free: 2.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.022e-05/0.1038, allocations: 75.28 kB / 0.5104 GB, free: 2.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-05/0.1039, allocations: 83.28 kB / 0.5105 GB, free: 2.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.487e-05/0.1039, allocations: 41.53 kB / 0.5105 GB, free: 1.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.971e-05/0.104, allocations: 79.28 kB / 0.5106 GB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.6e-05/0.104, allocations: 75.28 kB / 0.5107 GB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.426e-05/0.1041, allocations: 154.6 kB / 0.5108 GB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.623e-05/0.1041, allocations: 91.19 kB / 0.5109 GB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.212e-05/0.1042, allocations: 150.6 kB / 0.511 GB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.862e-05/0.1043, allocations: 83.22 kB / 0.5111 GB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.1043, allocations: 79.28 kB / 0.5112 GB, free: 1.266 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.0001195/0.1044, allocations: 272.3 kB / 0.5114 GB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.236e-05/0.1045, allocations: 120.8 kB / 0.5116 GB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.845e-05/0.1045, allocations: 117.5 kB / 0.5117 GB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.281e-05/0.1046, allocations: 184.3 kB / 0.5118 GB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.502e-05/0.1047, allocations: 180.2 kB / 0.512 GB, free: 376 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.122e-05/0.1047, allocations: 176.3 kB / 0.5122 GB, free: 192 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.105, allocations: 421.2 kB / 0.5126 GB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-05/0.105, allocations: 112.9 kB / 0.5127 GB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.025e-05/0.1051, allocations: 104.9 kB / 0.5128 GB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.435e-05/0.1051, allocations: 188.2 kB / 0.513 GB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.778e-05/0.1052, allocations: 180.3 kB / 0.5132 GB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.405e-05/0.1053, allocations: 180.3 kB / 0.5133 GB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.292e-05/0.1053, allocations: 180.2 kB / 0.5135 GB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.1054, allocations: 320.1 kB / 0.5138 GB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.91e-05/0.1055, allocations: 186 kB / 0.514 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.792e-05/0.1056, allocations: 184.2 kB / 0.5142 GB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.355e-05/0.1057, allocations: 101 kB / 0.5142 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.814e-05/0.1057, allocations: 180.3 kB / 0.5144 GB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.1058, allocations: 116.9 kB / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.236e-05/0.1059, allocations: 132.1 kB / 0.5147 GB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1059, allocations: 0 / 0.5147 GB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002618/0.1061, allocations: 4 kB / 0.5147 GB, free: 13.48 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.0003527/0.1065, allocations: 0.8126 MB / 0.5155 GB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.071e-05/0.1066, allocations: 11.88 kB / 0.5155 GB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1066, allocations: 0 / 0.5155 GB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.092e-06/0.1066, allocations: 0 / 0.5155 GB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.107, allocations: 479.7 kB / 0.5159 GB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001279/0.1083, allocations: 1.815 MB / 0.5177 GB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.1085, allocations: 0.7039 MB / 0.5184 GB, free: 9.523 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.901e-05/0.1086, allocations: 7.984 kB / 0.5184 GB, free: 9.516 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.71e-05/0.1086, allocations: 15.44 kB / 0.5184 GB, free: 9.5 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1086, allocations: 0 / 0.5184 GB, free: 9.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.1262, allocations: 1.843 MB / 0.5202 GB, free: 7.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/7.778, allocations: 3.438 kB / 0.5202 GB, free: 7.746 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe 2>&1)