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.001043/0.001043, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.291/1.291, allocations: 222.9 MB / 239 MB, free: 4.699 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.001203/0.001203, allocations: 196.4 kB / 289.3 MB, free: 2.438 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03458/0.03458, allocations: 8.789 MB / 348.2 MB, free: 4.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.00144, allocations: 74.12 kB / 410.7 MB, free: 42.24 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07328/0.07473, allocations: 51.57 MB / 462.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002223/0.07698, allocations: 1.301 MB / 463.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.07872, allocations: 1.141 MB / 464.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.297e-05/0.07877, allocations: 0 / 464.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004221/0.0792, allocations: 71.75 kB / 464.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008258/0.08004, allocations: 366.9 kB / 465.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.807e-06/0.08006, allocations: 4 kB / 465.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.08117, allocations: 0.7647 MB / 465.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.481e-05/0.08121, allocations: 4 kB / 465.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.27e-05/0.08124, allocations: 15.86 kB / 465.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.191e-05/0.08129, allocations: 15.88 kB / 465.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.08131, allocations: 4 kB / 465.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.08144, allocations: 47.95 kB / 466 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.579e-05/0.08149, allocations: 15.98 kB / 466 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.936e-05/0.08153, allocations: 19.81 kB / 466 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.08169, allocations: 83.89 kB / 466.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.08171, allocations: 3.938 kB / 466.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.08171, allocations: 0 / 466.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.08172, allocations: 0 / 466.1 MB, free: 10.73 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.00034/0.08207, allocations: 379.1 kB / 466.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.08211, allocations: 12.03 kB / 466.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.148e-05/0.08217, allocations: 106 kB / 466.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003781/0.08256, allocations: 108.1 kB / 466.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.08298, allocations: 348.1 kB / 467 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.512e-05/0.08304, allocations: 158.9 kB / 467.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.198e-05/0.08309, allocations: 154.9 kB / 467.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.381e-05/0.08316, allocations: 105.1 kB / 467.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.08319, allocations: 75.28 kB / 467.5 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.835e-05/0.08326, allocations: 150.6 kB / 467.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-05/0.08331, allocations: 150.6 kB / 467.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.827e-05/0.08337, allocations: 154.6 kB / 468 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002753/0.08365, allocations: 477.8 kB / 468.4 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.153e-05/0.08374, allocations: 173.1 kB / 468.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.688e-05/0.08377, allocations: 80.14 kB / 468.7 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.0838, allocations: 79.27 kB / 468.8 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.08385, allocations: 113.8 kB / 468.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.08386, allocations: 0 / 468.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.133e-05/0.08393, allocations: 37.55 kB / 468.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.084, allocations: 130.7 kB / 469 MB, free: 7.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.08415, allocations: 162.2 kB / 469.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.08417, allocations: 25.7 kB / 469.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.748e-05/0.08422, allocations: 100.2 kB / 469.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.312e-06/0.08423, allocations: 4 kB / 469.3 MB, free: 7.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-05/0.08426, allocations: 17.72 kB / 469.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.857e-05/0.08436, allocations: 314.8 kB / 469.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.107e-06/0.08437, allocations: 0 / 469.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.476e-06/0.08438, allocations: 4 kB / 469.6 MB, free: 6.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.084e-05/0.08441, allocations: 75.28 kB / 469.7 MB, free: 6.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.156e-05/0.08444, allocations: 79.28 kB / 469.8 MB, free: 6.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.625e-05/0.0845, allocations: 41.53 kB / 469.8 MB, free: 6.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.08455, allocations: 87.22 kB / 469.9 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.261e-05/0.08457, allocations: 75.28 kB / 470 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.22e-05/0.08464, allocations: 154.6 kB / 470.1 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.364e-05/0.08467, allocations: 79.22 kB / 470.2 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.291e-05/0.08472, allocations: 150.6 kB / 470.4 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.706e-05/0.0848, allocations: 79.22 kB / 470.4 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.08483, allocations: 91.27 kB / 470.5 MB, free: 6.039 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.0001171/0.08495, allocations: 264.3 kB / 470.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.041e-05/0.08503, allocations: 120.8 kB / 470.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.939e-05/0.08509, allocations: 116.8 kB / 471 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-05/0.08515, allocations: 180.3 kB / 471.2 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.374e-05/0.08522, allocations: 188.2 kB / 471.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.858e-05/0.08529, allocations: 176.3 kB / 471.6 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.08552, allocations: 417.2 kB / 472 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.45e-05/0.08556, allocations: 112.9 kB / 472.1 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.029e-05/0.0856, allocations: 104.9 kB / 472.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.425e-05/0.08567, allocations: 188.2 kB / 472.4 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.725e-05/0.08573, allocations: 184.2 kB / 472.5 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.409e-05/0.0858, allocations: 176.3 kB / 472.7 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.472e-05/0.08588, allocations: 180.2 kB / 472.9 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.08602, allocations: 315.7 kB / 473.2 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.393e-05/0.08611, allocations: 193.9 kB / 473.4 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.381e-05/0.08619, allocations: 176.3 kB / 473.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.708e-05/0.08627, allocations: 108.9 kB / 473.7 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.08634, allocations: 180.3 kB / 473.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.799e-05/0.08638, allocations: 112.9 kB / 473.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.93e-05/0.08648, allocations: 115.2 kB / 474.1 MB, free: 2.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08648, allocations: 4 kB / 474.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002601/0.08675, allocations: 7.984 kB / 474.1 MB, free: 2.27 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.0003668/0.08712, allocations: 0.8052 MB / 474.9 MB, free: 1.438 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.608e-05/0.08716, allocations: 7.938 kB / 474.9 MB, free: 1.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.08717, allocations: 4 kB / 474.9 MB, free: 1.426 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.153e-06/0.08718, allocations: 0 / 474.9 MB, free: 1.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.08762, allocations: 471.7 kB / 475.4 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.08892, allocations: 1.807 MB / 477.2 MB, free: 15.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.08918, allocations: 0.6981 MB / 477.9 MB, free: 14.35 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.388e-05/0.08922, allocations: 4 kB / 477.9 MB, free: 14.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.388e-05/0.08926, allocations: 19.42 kB / 477.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.08926, allocations: 0 / 477.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01027/0.09954, allocations: 1.681 MB / 479.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.09973, allocations: 196 kB / 479.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/1.754, allocations: 0 / 479.8 MB, free: 12.51 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe 2>&1)