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.00122/0.00122, allocations: 104 kB / 15.6 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.391/1.391, 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.001293/0.001293, allocations: 195.7 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03506/0.03506, allocations: 8.802 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 80.34 kB / 411.2 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09156/0.09303, allocations: 51.56 MB / 462.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.002147/0.09521, allocations: 1.248 MB / 464 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.09684, allocations: 1.148 MB / 465.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.832e-05/0.09689, allocations: 0 / 465.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003887/0.09729, allocations: 75.69 kB / 465.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000889/0.09819, allocations: 402.5 kB / 465.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.278e-06/0.09821, allocations: 0 / 465.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001378/0.09959, allocations: 0.9637 MB / 466.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.682e-05/0.09965, allocations: 8 kB / 466.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.297e-05/0.09968, allocations: 7.938 kB / 466.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.754e-05/0.09973, allocations: 19.88 kB / 466.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.047e-05/0.09975, allocations: 0 / 466.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.09989, allocations: 35.97 kB / 466.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.627e-05/0.09995, allocations: 31.84 kB / 466.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.642e-05/0.09999, allocations: 15.81 kB / 466.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.1001, allocations: 80.02 kB / 466.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1002, allocations: 3.938 kB / 466.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1002, allocations: 8 kB / 466.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1002, allocations: 0 / 466.8 MB, free: 10.25 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.0003505/0.1005, allocations: 386.9 kB / 467.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1006, allocations: 8.031 kB / 467.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.437e-05/0.1006, allocations: 110 kB / 467.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003587/0.101, allocations: 108.1 kB / 467.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.1014, allocations: 344 kB / 467.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.751e-05/0.1015, allocations: 154.9 kB / 467.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.1015, allocations: 154.9 kB / 468 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.507e-05/0.1016, allocations: 109.1 kB / 468.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.1016, allocations: 75.28 kB / 468.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.451e-05/0.1016, allocations: 154.6 kB / 468.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/0.1017, allocations: 150.6 kB / 468.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.375e-05/0.1017, allocations: 154.5 kB / 468.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000249/0.102, allocations: 457.9 kB / 469.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.928e-05/0.1021, allocations: 177.1 kB / 469.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.813e-05/0.1021, allocations: 84.14 kB / 469.3 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.1021, allocations: 75.28 kB / 469.4 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.1022, allocations: 109.8 kB / 469.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.1022, allocations: 3.938 kB / 469.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.101e-05/0.1022, allocations: 33.61 kB / 469.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.1023, allocations: 130.7 kB / 469.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.1024, allocations: 169 kB / 469.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.1025, allocations: 25.7 kB / 469.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.853e-05/0.1025, allocations: 100.1 kB / 470 MB, free: 6.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.814e-06/0.1025, allocations: 0 / 470 MB, free: 6.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.503e-05/0.1026, allocations: 13.7 kB / 470 MB, free: 6.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1027, allocations: 318.8 kB / 470.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.358e-06/0.1027, allocations: 0 / 470.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.771e-06/0.1027, allocations: 4.047 kB / 470.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.328e-05/0.1027, allocations: 83.22 kB / 470.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-05/0.1027, allocations: 75.28 kB / 470.5 MB, free: 6.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.003e-05/0.1028, allocations: 53.38 kB / 470.5 MB, free: 6.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.1029, allocations: 79.28 kB / 470.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/0.1029, allocations: 75.28 kB / 470.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.211e-05/0.1029, allocations: 166.5 kB / 470.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.13e-05/0.103, allocations: 75.28 kB / 470.9 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-05/0.103, allocations: 154.6 kB / 471.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.442e-05/0.1031, allocations: 79.22 kB / 471.1 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.1031, allocations: 79.27 kB / 471.2 MB, free: 5.559 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.0001148/0.1032, allocations: 276.3 kB / 471.5 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.46e-05/0.1033, allocations: 124.7 kB / 471.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.149e-05/0.1034, allocations: 121.5 kB / 471.7 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.885e-05/0.1034, allocations: 176.3 kB / 471.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.898e-05/0.1035, allocations: 184.2 kB / 472.1 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.659e-05/0.1036, allocations: 176.3 kB / 472.2 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.1038, allocations: 425.1 kB / 472.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.753e-05/0.1038, allocations: 105 kB / 472.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.959e-05/0.1039, allocations: 108.9 kB / 472.9 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-05/0.1039, allocations: 184.2 kB / 473 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.208e-05/0.104, allocations: 180.3 kB / 473.2 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.977e-05/0.1041, allocations: 180.2 kB / 473.4 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.103e-05/0.1041, allocations: 184.2 kB / 473.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.1043, allocations: 315.7 kB / 473.9 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.1043, allocations: 189.9 kB / 474.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.583e-05/0.1044, allocations: 184.2 kB / 474.3 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.375e-05/0.1045, allocations: 105 kB / 474.4 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.1046, allocations: 184.7 kB / 474.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/0.1046, allocations: 105 kB / 474.6 MB, free: 1.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.301e-05/0.1047, allocations: 132.9 kB / 474.8 MB, free: 1.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1047, allocations: 0 / 474.8 MB, free: 1.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.105, allocations: 4 kB / 474.8 MB, free: 1.77 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.0003462/0.1053, allocations: 0.8125 MB / 475.6 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.224e-05/0.1054, allocations: 8.016 kB / 475.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1054, allocations: 0 / 475.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.304e-06/0.1054, allocations: 4 kB / 475.6 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.1058, allocations: 471.6 kB / 476.1 MB, free: 460 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.107, allocations: 1.818 MB / 477.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.1072, allocations: 0.6984 MB / 478.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.7e-05/0.1073, allocations: 7.984 kB / 478.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.937e-05/0.1073, allocations: 23.44 kB / 478.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1073, allocations: 0 / 478.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01739/0.1247, allocations: 1.808 MB / 480.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.396/7.521, allocations: 4.938 kB / 480.4 MB, free: 12.06 MB / 318.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)