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.001649/0.001649, allocations: 108 kB / 15.61 MB, free: 152 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.467/1.467, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.001369/0.001369, allocations: 180.5 kB / 289.5 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03454/0.03454, allocations: 8.804 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 75.95 kB / 411.2 MB, free: 42.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1018, allocations: 51.56 MB / 462.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestSingleLayer12over12): time 0.002642/0.1045, allocations: 1.244 MB / 464 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.1064, allocations: 1.148 MB / 465.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.952e-05/0.1064, allocations: 0 / 465.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004658/0.1069, allocations: 83.67 kB / 465.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008971/0.1078, allocations: 398.5 kB / 465.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.098e-06/0.1079, allocations: 0 / 465.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001383/0.1092, allocations: 0.9677 MB / 466.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.1093, allocations: 4 kB / 466.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.091e-05/0.1093, allocations: 7.938 kB / 466.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.466e-05/0.1094, allocations: 23.78 kB / 466.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.1094, allocations: 0 / 466.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.1095, allocations: 39.98 kB / 466.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.899e-05/0.1096, allocations: 11.98 kB / 466.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.199e-05/0.1096, allocations: 27.8 kB / 466.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.1098, allocations: 79.97 kB / 466.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1098, allocations: 4 kB / 466.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1098, allocations: 3.938 kB / 466.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.1098, allocations: 0 / 466.8 MB, free: 10.36 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.0003951/0.1102, allocations: 390.9 kB / 467.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1103, allocations: 11.97 kB / 467.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.1103, allocations: 106 kB / 467.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004261/0.1108, allocations: 108.1 kB / 467.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004608/0.1112, allocations: 352 kB / 467.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.392e-05/0.1113, allocations: 150.9 kB / 467.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.149e-05/0.1113, allocations: 150.9 kB / 468 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.713e-05/0.1114, allocations: 109 kB / 468.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.1115, allocations: 79.28 kB / 468.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.436e-05/0.1115, allocations: 150.6 kB / 468.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.486e-05/0.1116, allocations: 158.6 kB / 468.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.705e-05/0.1117, allocations: 150.6 kB / 468.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002666/0.1119, allocations: 461.9 kB / 469.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.87e-05/0.112, allocations: 173.1 kB / 469.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.406e-05/0.1121, allocations: 84.14 kB / 469.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.1121, allocations: 75.28 kB / 469.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.1121, allocations: 109.8 kB / 469.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.81e-07/0.1121, allocations: 0 / 469.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.728e-05/0.1122, allocations: 41.61 kB / 469.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.1123, allocations: 130.6 kB / 469.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.1125, allocations: 165 kB / 469.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.1125, allocations: 25.7 kB / 469.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.813e-05/0.1126, allocations: 104.1 kB / 470 MB, free: 6.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.383e-06/0.1126, allocations: 4 kB / 470 MB, free: 6.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.827e-05/0.1126, allocations: 9.719 kB / 470 MB, free: 6.895 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.499e-05/0.1127, allocations: 322.8 kB / 470.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.089e-06/0.1127, allocations: 4 kB / 470.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.654e-06/0.1127, allocations: 48 / 470.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.941e-05/0.1127, allocations: 75.28 kB / 470.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.1e-05/0.1128, allocations: 79.28 kB / 470.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.968e-05/0.1128, allocations: 41.45 kB / 470.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.796e-05/0.1129, allocations: 87.22 kB / 470.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.1129, allocations: 79.22 kB / 470.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.634e-05/0.113, allocations: 154.6 kB / 470.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.858e-05/0.113, allocations: 83.22 kB / 470.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.42e-05/0.1131, allocations: 158.6 kB / 471.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.574e-05/0.1132, allocations: 79.27 kB / 471.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.761e-05/0.1132, allocations: 79.22 kB / 471.2 MB, free: 5.656 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.0001303/0.1134, allocations: 280.3 kB / 471.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.212e-05/0.1135, allocations: 116.8 kB / 471.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.726e-05/0.1135, allocations: 117.4 kB / 471.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-05/0.1136, allocations: 184.2 kB / 471.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.089e-05/0.1136, allocations: 180.3 kB / 472.1 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.527e-05/0.1137, allocations: 180.2 kB / 472.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002359/0.114, allocations: 425.2 kB / 472.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-05/0.114, allocations: 104.9 kB / 472.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.605e-05/0.114, allocations: 104.9 kB / 472.9 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.877e-05/0.1141, allocations: 180.3 kB / 473 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.377e-05/0.1142, allocations: 184.2 kB / 473.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.237e-05/0.1142, allocations: 184.2 kB / 473.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.782e-05/0.1143, allocations: 188.2 kB / 473.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.1144, allocations: 303.7 kB / 473.9 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.049e-05/0.1145, allocations: 201.9 kB / 474.1 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.091e-05/0.1146, allocations: 176.3 kB / 474.3 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.619e-05/0.1147, allocations: 108.9 kB / 474.4 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.1147, allocations: 176.7 kB / 474.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.1148, allocations: 105 kB / 474.6 MB, free: 2.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.141e-05/0.1149, allocations: 132.8 kB / 474.8 MB, free: 1.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1149, allocations: 0 / 474.8 MB, free: 1.879 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002767/0.1151, allocations: 4 kB / 474.8 MB, free: 1.875 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.0003581/0.1155, allocations: 0.8164 MB / 475.6 MB, free: 1.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.629e-05/0.1156, allocations: 4.047 kB / 475.6 MB, free: 1.023 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1156, allocations: 0 / 475.6 MB, free: 1.023 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.945e-06/0.1156, allocations: 3.938 kB / 475.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.116, allocations: 473.9 kB / 476.1 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.1172, allocations: 1.812 MB / 477.9 MB, free: 14.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.1175, allocations: 0.704 MB / 478.6 MB, free: 13.94 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.814e-05/0.1175, allocations: 3.984 kB / 478.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.602e-05/0.1176, allocations: 19.44 kB / 478.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1176, allocations: 0 / 478.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0162/0.1338, allocations: 1.813 MB / 480.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.496/7.63, allocations: 2.703 kB / 480.4 MB, free: 12.17 MB / 318.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)