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.00588/0.00588, allocations: 102.2 kB / 15.73 MB, free: 6.066 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.389/1.389, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001305/0.001305, allocations: 196.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.03668/0.03668, allocations: 8.795 MB / 348.7 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 75.88 kB / 463.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.0969, allocations: 51.57 MB / 0.5029 GB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestSingleLayer12over12): time 0.002213/0.09915, allocations: 1.246 MB / 0.5041 GB, free: 8.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.1009, allocations: 1.16 MB / 0.5052 GB, free: 7.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.342e-05/0.101, allocations: 0 / 0.5052 GB, free: 7.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003861/0.1014, allocations: 83.84 kB / 0.5053 GB, free: 7.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009479/0.1023, allocations: 394.5 kB / 0.5057 GB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.147e-06/0.1024, allocations: 3.938 kB / 0.5057 GB, free: 7.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.1037, allocations: 0.9559 MB / 0.5066 GB, free: 6.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.753e-05/0.1038, allocations: 7.984 kB / 0.5066 GB, free: 6.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.458e-05/0.1038, allocations: 19.94 kB / 0.5067 GB, free: 6.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.631e-05/0.1039, allocations: 11.88 kB / 0.5067 GB, free: 6.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.003e-05/0.1039, allocations: 0 / 0.5067 GB, free: 6.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.104, allocations: 43.91 kB / 0.5067 GB, free: 6.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.804e-05/0.1041, allocations: 23.91 kB / 0.5067 GB, free: 6.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.155e-05/0.1041, allocations: 19.81 kB / 0.5068 GB, free: 6.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.1043, allocations: 71.69 kB / 0.5068 GB, free: 6.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1043, allocations: 0 / 0.5068 GB, free: 6.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1043, allocations: 0 / 0.5068 GB, free: 6.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1043, allocations: 0 / 0.5068 GB, free: 6.023 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.0003471/0.1047, allocations: 398.8 kB / 0.5072 GB, free: 5.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.1047, allocations: 8.031 kB / 0.5072 GB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.689e-05/0.1047, allocations: 110 kB / 0.5073 GB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003733/0.1051, allocations: 104.1 kB / 0.5074 GB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.1055, allocations: 356 kB / 0.5078 GB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.1056, allocations: 154.9 kB / 0.5079 GB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.67e-05/0.1057, allocations: 150.9 kB / 0.508 GB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.808e-05/0.1057, allocations: 109.1 kB / 0.5082 GB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.1058, allocations: 75.28 kB / 0.5082 GB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.296e-05/0.1058, allocations: 150.6 kB / 0.5084 GB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.253e-05/0.1059, allocations: 158.5 kB / 0.5085 GB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.746e-05/0.1059, allocations: 154.6 kB / 0.5087 GB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002702/0.1062, allocations: 457.9 kB / 0.5091 GB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.543e-05/0.1063, allocations: 169.1 kB / 0.5093 GB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.563e-05/0.1063, allocations: 84.12 kB / 0.5093 GB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.1064, allocations: 79.28 kB / 0.5094 GB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.1064, allocations: 117.8 kB / 0.5095 GB, free: 3.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.1064, allocations: 0 / 0.5095 GB, free: 3.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.502e-05/0.1065, allocations: 37.66 kB / 0.5096 GB, free: 3.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.1066, allocations: 126.7 kB / 0.5097 GB, free: 2.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.1067, allocations: 169.7 kB / 0.5099 GB, free: 2.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.1067, allocations: 29.7 kB / 0.5099 GB, free: 2.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.586e-05/0.1068, allocations: 96.14 kB / 0.51 GB, free: 2.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-06/0.1068, allocations: 0 / 0.51 GB, free: 2.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.1068, allocations: 13.72 kB / 0.51 GB, free: 2.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1069, allocations: 318.8 kB / 0.5103 GB, free: 2.234 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.881e-06/0.107, allocations: 4 kB / 0.5103 GB, free: 2.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.689e-06/0.107, allocations: 0 / 0.5103 GB, free: 2.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.422e-05/0.107, allocations: 83.16 kB / 0.5104 GB, free: 2.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.721e-05/0.107, allocations: 87.22 kB / 0.5105 GB, free: 2.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.888e-05/0.1071, allocations: 45.58 kB / 0.5105 GB, free: 2.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.1071, allocations: 83.28 kB / 0.5106 GB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/0.1072, allocations: 75.28 kB / 0.5106 GB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.9e-05/0.1072, allocations: 154.5 kB / 0.5108 GB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.046e-05/0.1073, allocations: 75.28 kB / 0.5109 GB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-05/0.1073, allocations: 154.5 kB / 0.511 GB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.331e-05/0.1074, allocations: 83.28 kB / 0.5111 GB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.1074, allocations: 75.28 kB / 0.5112 GB, free: 1.32 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.0001121/0.1075, allocations: 276.3 kB / 0.5114 GB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.08e-05/0.1076, allocations: 128.7 kB / 0.5116 GB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.454e-05/0.1077, allocations: 113.5 kB / 0.5117 GB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.978e-05/0.1077, allocations: 184.2 kB / 0.5118 GB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.045e-05/0.1078, allocations: 180.3 kB / 0.512 GB, free: 424 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.793e-05/0.1078, allocations: 180.2 kB / 0.5122 GB, free: 236 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002302/0.1081, allocations: 421.2 kB / 0.5126 GB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.185e-05/0.1081, allocations: 113 kB / 0.5127 GB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.171e-05/0.1082, allocations: 108.9 kB / 0.5128 GB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-05/0.1082, allocations: 180.3 kB / 0.513 GB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.1083, allocations: 180.3 kB / 0.5131 GB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.827e-05/0.1083, allocations: 180.2 kB / 0.5133 GB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.386e-05/0.1084, allocations: 180.2 kB / 0.5135 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.1085, allocations: 315.7 kB / 0.5138 GB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-05/0.1086, allocations: 186.4 kB / 0.514 GB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.02e-05/0.1087, allocations: 188.2 kB / 0.5141 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.048e-05/0.1088, allocations: 101 kB / 0.5142 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.19e-05/0.1088, allocations: 188.2 kB / 0.5144 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.884e-05/0.1089, allocations: 105 kB / 0.5145 GB, free: 13.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.086e-05/0.109, allocations: 132.2 kB / 0.5146 GB, free: 13.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.109, allocations: 0 / 0.5146 GB, free: 13.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.1092, allocations: 4 kB / 0.5146 GB, free: 13.53 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.0003749/0.1096, allocations: 0.8203 MB / 0.5154 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.425e-05/0.1097, allocations: 0 / 0.5154 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1097, allocations: 0 / 0.5154 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.356e-06/0.1097, allocations: 0 / 0.5154 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/0.1101, allocations: 469.2 kB / 0.5159 GB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.1114, allocations: 1.831 MB / 0.5177 GB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.1117, allocations: 0.7 MB / 0.5184 GB, free: 9.578 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.048e-05/0.1117, allocations: 4 kB / 0.5184 GB, free: 9.574 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.1118, allocations: 19.44 kB / 0.5184 GB, free: 9.555 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1118, allocations: 0 / 0.5184 GB, free: 9.555 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01685/0.1286, allocations: 1.848 MB / 0.5202 GB, free: 7.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.622/7.75, allocations: 3.281 kB / 0.5202 GB, free: 7.793 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Machines.TestSingleLayer12over12_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_TestSingleLayer12over12.fmu > HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe 2>&1)