Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.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.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",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.007217/0.007217, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.388/1.388, 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.001751/0.001751, allocations: 192.4 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.03438/0.03438, allocations: 8.798 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 71.89 kB / 463.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 51.58 MB / 0.5029 GB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002733/0.1063, allocations: 1.241 MB / 0.5041 GB, free: 8.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.1084, allocations: 1.16 MB / 0.5053 GB, free: 7.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.528e-05/0.1085, allocations: 0 / 0.5053 GB, free: 7.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004839/0.109, allocations: 87.91 kB / 0.5053 GB, free: 7.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001162/0.1101, allocations: 394.4 kB / 0.5057 GB, free: 7.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.392e-06/0.1102, allocations: 0 / 0.5057 GB, free: 7.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.1114, allocations: 0.7686 MB / 0.5065 GB, free: 6.461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.1114, allocations: 4 kB / 0.5065 GB, free: 6.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.46e-05/0.1115, allocations: 11.94 kB / 0.5065 GB, free: 6.445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.534e-05/0.1115, allocations: 15.86 kB / 0.5065 GB, free: 6.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.307e-06/0.1115, allocations: 0 / 0.5065 GB, free: 6.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.1117, allocations: 39.97 kB / 0.5065 GB, free: 6.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.354e-05/0.1118, allocations: 19.92 kB / 0.5066 GB, free: 6.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.084e-05/0.1118, allocations: 15.88 kB / 0.5066 GB, free: 6.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001863/0.112, allocations: 87.55 kB / 0.5067 GB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.112, allocations: 0 / 0.5067 GB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.112, allocations: 0 / 0.5067 GB, free: 6.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.112, allocations: 0 / 0.5067 GB, free: 6.27 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.000386/0.1124, allocations: 379 kB / 0.507 GB, free: 5.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1125, allocations: 12.03 kB / 0.507 GB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.879e-05/0.1125, allocations: 106 kB / 0.5071 GB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004203/0.113, allocations: 112.1 kB / 0.5072 GB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004758/0.1134, allocations: 351.3 kB / 0.5076 GB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.59e-05/0.1135, allocations: 150.9 kB / 0.5077 GB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.178e-05/0.1136, allocations: 158.9 kB / 0.5079 GB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.908e-05/0.1137, allocations: 109.1 kB / 0.508 GB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.945e-05/0.1137, allocations: 79.28 kB / 0.508 GB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.157e-05/0.1138, allocations: 150.6 kB / 0.5082 GB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.477e-05/0.1138, allocations: 150.6 kB / 0.5083 GB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.917e-05/0.1139, allocations: 154.5 kB / 0.5085 GB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003042/0.1142, allocations: 461.9 kB / 0.5089 GB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.913e-05/0.1143, allocations: 173.1 kB / 0.5091 GB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.102e-05/0.1143, allocations: 80.14 kB / 0.5092 GB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.195e-05/0.1144, allocations: 79.28 kB / 0.5092 GB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.322e-05/0.1144, allocations: 109.8 kB / 0.5093 GB, free: 3.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.1144, allocations: 0 / 0.5093 GB, free: 3.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.07e-05/0.1145, allocations: 49.53 kB / 0.5094 GB, free: 3.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/0.1146, allocations: 126.7 kB / 0.5095 GB, free: 3.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.1148, allocations: 154.2 kB / 0.5097 GB, free: 2.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.618e-06/0.1148, allocations: 29.7 kB / 0.5097 GB, free: 2.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.761e-05/0.1149, allocations: 100.1 kB / 0.5098 GB, free: 2.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.485e-06/0.1149, allocations: 0 / 0.5098 GB, free: 2.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.162e-05/0.1149, allocations: 13.66 kB / 0.5098 GB, free: 2.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.115, allocations: 326.8 kB / 0.5101 GB, free: 2.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.039e-06/0.115, allocations: 0 / 0.5101 GB, free: 2.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.835e-06/0.115, allocations: 0 / 0.5101 GB, free: 2.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.442e-05/0.1151, allocations: 75.28 kB / 0.5102 GB, free: 2.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.329e-05/0.1151, allocations: 75.28 kB / 0.5102 GB, free: 2.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.182e-05/0.1152, allocations: 45.53 kB / 0.5103 GB, free: 2.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.1152, allocations: 83.28 kB / 0.5104 GB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-05/0.1152, allocations: 75.28 kB / 0.5104 GB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.676e-05/0.1153, allocations: 158.5 kB / 0.5106 GB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.577e-05/0.1153, allocations: 83.22 kB / 0.5107 GB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.319e-05/0.1154, allocations: 154.6 kB / 0.5108 GB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.935e-05/0.1155, allocations: 83.2 kB / 0.5109 GB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.1155, allocations: 75.28 kB / 0.511 GB, free: 1.594 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.0001543/0.1157, allocations: 280.3 kB / 0.5112 GB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.685e-05/0.1157, allocations: 116.8 kB / 0.5113 GB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.146e-05/0.1158, allocations: 112.9 kB / 0.5115 GB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.397e-05/0.1159, allocations: 176.3 kB / 0.5116 GB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-05/0.1159, allocations: 192.1 kB / 0.5118 GB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.494e-05/0.116, allocations: 176.3 kB / 0.512 GB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002359/0.1163, allocations: 425.1 kB / 0.5124 GB, free: 40 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.925e-05/0.1163, allocations: 105 kB / 0.5125 GB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.599e-05/0.1164, allocations: 104.9 kB / 0.5126 GB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.801e-05/0.1164, allocations: 188.2 kB / 0.5128 GB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.041e-05/0.1165, allocations: 176.3 kB / 0.5129 GB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.393e-05/0.1166, allocations: 184.2 kB / 0.5131 GB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.702e-05/0.1167, allocations: 184.2 kB / 0.5133 GB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.1168, allocations: 316.1 kB / 0.5136 GB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.192e-05/0.1169, allocations: 186 kB / 0.5138 GB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.117, allocations: 188.2 kB / 0.5139 GB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.426e-05/0.1171, allocations: 105 kB / 0.514 GB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.124e-05/0.1171, allocations: 180.3 kB / 0.5142 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-05/0.1172, allocations: 104.9 kB / 0.5143 GB, free: 13.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001077/0.1173, allocations: 128 kB / 0.5144 GB, free: 13.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1173, allocations: 0 / 0.5144 GB, free: 13.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002629/0.1176, allocations: 4 kB / 0.5144 GB, free: 13.81 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.0004255/0.118, allocations: 0.8126 MB / 0.5152 GB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.395e-05/0.1181, allocations: 3.938 kB / 0.5152 GB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1181, allocations: 0 / 0.5152 GB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.148e-06/0.1181, allocations: 3.984 kB / 0.5152 GB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.1186, allocations: 477.1 kB / 0.5157 GB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.1201, allocations: 1.802 MB / 0.5175 GB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.1204, allocations: 0.6963 MB / 0.5181 GB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.967e-05/0.1204, allocations: 7.984 kB / 0.5181 GB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.909e-05/0.1205, allocations: 15.44 kB / 0.5182 GB, free: 9.867 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1205, allocations: 0 / 0.5182 GB, free: 9.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.1402, allocations: 1.782 MB / 0.5199 GB, free: 8.164 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/7.874, allocations: 6.5 kB / 0.5199 GB, free: 8.16 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9_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_TestDoubleLayer7over9.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe 2>&1)