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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04102/0.04102, allocations: 8.702 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 221.4 MB / 246 MB, free: 3.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008382/0.0008382, allocations: 96.41 kB / 299.1 MB, free: 3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.908e-05/3.91e-05, allocations: 4 kB / 359.6 MB, free: 6.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2892, allocations: 52.55 MB / 412.2 MB, free: 22.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.402, allocations: 80.41 MB / 492.6 MB, free: 6.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003358/0.4025, allocations: 71.97 kB / 492.6 MB, free: 5.949 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02608/0.4285, allocations: 9.621 MB / 0.4905 GB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4286, allocations: 0 / 0.4905 GB, free: 12.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.4286, allocations: 0 / 0.4905 GB, free: 12.29 MB / 378.7 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.0005426/0.4292, allocations: 414.1 kB / 0.4909 GB, free: 11.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.4293, allocations: 8.031 kB / 0.4909 GB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.645e-05/0.4293, allocations: 105.8 kB / 0.491 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.4296, allocations: 111.1 kB / 0.4911 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.4316, allocations: 0.7682 MB / 0.4918 GB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.625e-05/0.4317, allocations: 154.6 kB / 0.492 GB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.418e-05/0.4318, allocations: 154.6 kB / 0.4921 GB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.377e-05/0.4319, allocations: 101 kB / 0.4922 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.356e-05/0.4319, allocations: 75.28 kB / 0.4923 GB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-05/0.432, allocations: 158.5 kB / 0.4925 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.288e-05/0.4321, allocations: 154.5 kB / 0.4926 GB, free: 10 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.159e-05/0.4322, allocations: 150.6 kB / 0.4927 GB, free: 9.855 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003701/0.4325, allocations: 469.9 kB / 0.4932 GB, free: 9.348 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.4327, allocations: 165.1 kB / 0.4934 GB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.039e-05/0.4327, allocations: 84.08 kB / 0.4934 GB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/0.4327, allocations: 79.22 kB / 0.4935 GB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.089e-05/0.4328, allocations: 109.8 kB / 0.4936 GB, free: 8.895 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.633e-06/0.4328, allocations: 0 / 0.4936 GB, free: 8.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 9.48e-05/0.4329, allocations: 37.61 kB / 0.4937 GB, free: 8.852 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.932e-05/0.433, allocations: 126.7 kB / 0.4938 GB, free: 8.715 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.4332, allocations: 149.3 kB / 0.4939 GB, free: 8.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.4332, allocations: 29.64 kB / 0.4939 GB, free: 8.527 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.996e-05/0.4333, allocations: 100.1 kB / 0.494 GB, free: 8.426 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.956e-06/0.4333, allocations: 0 / 0.494 GB, free: 8.426 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.9e-07/0.4333, allocations: 4 kB / 0.494 GB, free: 8.422 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4335, allocations: 318.8 kB / 0.4943 GB, free: 8.102 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.553e-06/0.4335, allocations: 0 / 0.4943 GB, free: 8.102 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.859e-06/0.4335, allocations: 3.938 kB / 0.4943 GB, free: 8.098 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.409e-05/0.4336, allocations: 79.27 kB / 0.4944 GB, free: 8.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-05/0.4336, allocations: 75.28 kB / 0.4945 GB, free: 7.945 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.598e-05/0.4337, allocations: 37.61 kB / 0.4945 GB, free: 7.902 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.4337, allocations: 81 kB / 0.4946 GB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.623e-05/0.4338, allocations: 79.28 kB / 0.4947 GB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.435e-05/0.4338, allocations: 162.7 kB / 0.4948 GB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.799e-05/0.4339, allocations: 79.28 kB / 0.4949 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-05/0.434, allocations: 154.5 kB / 0.4951 GB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.427e-05/0.4341, allocations: 75.28 kB / 0.4951 GB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/0.4341, allocations: 83.22 kB / 0.4952 GB, free: 7.199 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.4342, allocations: 265.5 kB / 0.4955 GB, free: 6.934 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/0.4343, allocations: 108.9 kB / 0.4956 GB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.474e-05/0.4344, allocations: 112.6 kB / 0.4957 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.877e-05/0.4345, allocations: 184.2 kB / 0.4959 GB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.298e-05/0.4346, allocations: 176.3 kB / 0.496 GB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.072e-05/0.4347, allocations: 192.2 kB / 0.4962 GB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.4349, allocations: 417.2 kB / 0.4966 GB, free: 5.676 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.936e-05/0.435, allocations: 109 kB / 0.4967 GB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.586e-05/0.435, allocations: 104.9 kB / 0.4968 GB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.726e-05/0.4351, allocations: 176.3 kB / 0.497 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.556e-05/0.4352, allocations: 180.2 kB / 0.4971 GB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.139e-05/0.4353, allocations: 189.2 kB / 0.4973 GB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.849e-05/0.4354, allocations: 176.3 kB / 0.4975 GB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.4355, allocations: 323.5 kB / 0.4978 GB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.29e-05/0.4357, allocations: 193.9 kB / 0.498 GB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.236e-05/0.4358, allocations: 184.3 kB / 0.4982 GB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.268e-05/0.4359, allocations: 105 kB / 0.4983 GB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.305e-05/0.4359, allocations: 184.7 kB / 0.4984 GB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.563e-05/0.436, allocations: 101 kB / 0.4985 GB, free: 3.574 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001177/0.4361, allocations: 128.1 kB / 0.4987 GB, free: 3.449 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4361, allocations: 0 / 0.4987 GB, free: 3.449 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003034/0.4364, allocations: 4 kB / 0.4987 GB, free: 3.445 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005724/0.437, allocations: 0.8477 MB / 0.4995 GB, free: 2.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 3.909e-05/0.4371, allocations: 0 / 0.4995 GB, free: 2.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4371, allocations: 0 / 0.4995 GB, free: 2.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.833e-06/0.4371, allocations: 3.938 kB / 0.4995 GB, free: 2.566 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.4375, allocations: 0.5374 MB / 0.5 GB, free: 2.027 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004583/0.438, allocations: 213.8 kB / 0.5002 GB, free: 1.777 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.4383, allocations: 0.7004 MB / 0.5009 GB, free: 1.051 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.779e-05/0.4384, allocations: 4.188 kB / 0.5009 GB, free: 1.047 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.066e-05/0.4384, allocations: 19.42 kB / 0.5009 GB, free: 1.027 MB / 378.7 MB Notification: Performance of SimCode: time 7.72e-07/0.4384, allocations: 4 kB / 0.5009 GB, free: 1.023 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2615/0.6999, allocations: 2.145 MB / 0.503 GB, free: 93.5 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.7002, allocations: 165.6 kB / 0.5032 GB, free: 93.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.606/2.307, allocations: 3 kB / 0.5032 GB, free: 93.27 MB / 378.7 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/linux/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)