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.001159/0.001159, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 239.2 MB, free: 4.625 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.00138/0.00138, allocations: 195.8 kB / 289.6 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03475/0.03475, allocations: 8.804 MB / 348.5 MB, free: 4.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 87.03 kB / 411.2 MB, free: 42.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.0941, allocations: 51.56 MB / 462.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002373/0.09652, allocations: 1.244 MB / 464 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.09833, allocations: 1.145 MB / 465.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.284e-05/0.09838, allocations: 3.938 kB / 465.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003847/0.09877, allocations: 79.69 kB / 465.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008619/0.09966, allocations: 394.5 kB / 465.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.098e-06/0.09968, allocations: 0 / 465.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.1008, allocations: 0.7608 MB / 466.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.91e-05/0.1008, allocations: 12 kB / 466.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.38e-05/0.1009, allocations: 11.92 kB / 466.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.122e-05/0.1009, allocations: 23.8 kB / 466.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.618e-06/0.1009, allocations: 0 / 466.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.1011, allocations: 39.92 kB / 466.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.809e-05/0.1011, allocations: 19.97 kB / 466.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.316e-05/0.1012, allocations: 27.8 kB / 466.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.1013, allocations: 71.98 kB / 466.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1013, allocations: 3.984 kB / 466.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1013, allocations: 0 / 466.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1013, allocations: 0 / 466.6 MB, free: 10.46 MB / 302.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.0003218/0.1017, allocations: 375.1 kB / 466.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.1017, allocations: 12.03 kB / 467 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.476e-05/0.1018, allocations: 110 kB / 467.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003598/0.1021, allocations: 104.1 kB / 467.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.1025, allocations: 356 kB / 467.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.1026, allocations: 154.9 kB / 467.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.1026, allocations: 154.9 kB / 467.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.188e-05/0.1027, allocations: 109.1 kB / 467.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.1027, allocations: 75.28 kB / 468 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.1028, allocations: 154.5 kB / 468.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.617e-05/0.1028, allocations: 154.5 kB / 468.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.62e-05/0.1029, allocations: 150.6 kB / 468.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002626/0.1032, allocations: 465.9 kB / 468.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.432e-05/0.1032, allocations: 169.1 kB / 469.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.772e-05/0.1033, allocations: 84.14 kB / 469.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.1033, allocations: 83.2 kB / 469.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.1034, allocations: 113.8 kB / 469.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.1034, allocations: 0 / 469.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.5e-05/0.1034, allocations: 33.61 kB / 469.4 MB, free: 7.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.1035, allocations: 126.7 kB / 469.5 MB, free: 7.336 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.1036, allocations: 162.2 kB / 469.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.967e-06/0.1037, allocations: 29.7 kB / 469.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.616e-05/0.1037, allocations: 96.14 kB / 469.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.513e-06/0.1037, allocations: 4 kB / 469.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/0.1037, allocations: 9.719 kB / 469.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1039, allocations: 322.8 kB / 470.1 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.468e-06/0.1039, allocations: 0 / 470.1 MB, free: 6.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.737e-06/0.1039, allocations: 3.938 kB / 470.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.402e-05/0.1039, allocations: 75.28 kB / 470.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.639e-05/0.1039, allocations: 75.28 kB / 470.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.754e-05/0.104, allocations: 41.55 kB / 470.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/0.1041, allocations: 87.28 kB / 470.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.654e-05/0.1041, allocations: 79.27 kB / 470.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.485e-05/0.1042, allocations: 158.4 kB / 470.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.369e-05/0.1042, allocations: 75.28 kB / 470.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.098e-05/0.1043, allocations: 158.5 kB / 470.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.93e-05/0.1043, allocations: 75.28 kB / 470.9 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.1044, allocations: 79.33 kB / 471 MB, free: 5.785 MB / 302.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.0001284/0.1045, allocations: 288.2 kB / 471.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.558e-05/0.1046, allocations: 112.8 kB / 471.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.689e-05/0.1046, allocations: 116.8 kB / 471.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.361e-05/0.1047, allocations: 180.2 kB / 471.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-05/0.1047, allocations: 184.3 kB / 471.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.053e-05/0.1048, allocations: 176.3 kB / 472 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002353/0.105, allocations: 425.1 kB / 472.4 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-05/0.1051, allocations: 105 kB / 472.5 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.335e-05/0.1051, allocations: 112.8 kB / 472.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.05e-05/0.1052, allocations: 184.2 kB / 472.8 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-05/0.1053, allocations: 184.2 kB / 473 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-05/0.1053, allocations: 180.3 kB / 473.2 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.24e-05/0.1054, allocations: 176.3 kB / 473.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001301/0.1055, allocations: 315.7 kB / 473.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.704e-05/0.1056, allocations: 193.9 kB / 473.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.1057, allocations: 180.3 kB / 474 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.683e-05/0.1058, allocations: 105 kB / 474.1 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.772e-05/0.1059, allocations: 180.7 kB / 474.3 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.284e-05/0.1059, allocations: 109 kB / 474.4 MB, free: 2.129 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.2e-05/0.106, allocations: 115.2 kB / 474.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.106, allocations: 0 / 474.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000266/0.1063, allocations: 8 kB / 474.5 MB, free: 2.008 MB / 302.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.0004055/0.1067, allocations: 0.8164 MB / 475.4 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.825e-05/0.1067, allocations: 4.016 kB / 475.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1067, allocations: 4 kB / 475.4 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.152e-06/0.1068, allocations: 0 / 475.4 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.1072, allocations: 471.7 kB / 475.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.1085, allocations: 1.792 MB / 477.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.1088, allocations: 0.6885 MB / 478.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.477e-05/0.1088, allocations: 7.984 kB / 478.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.1089, allocations: 23.38 kB / 478.3 MB, free: 14.08 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1089, allocations: 0 / 478.3 MB, free: 14.08 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.128, allocations: 1.752 MB / 480.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.576, allocations: 13.7 kB / 480.1 MB, free: 12.38 MB / 318.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)