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.002318/0.002318, allocations: 173.2 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0606/0.0606, allocations: 8.719 MB / 16.79 MB, free: 3.371 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 221.5 MB / 240.9 MB, free: 13.2 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.00108/0.00108, allocations: 97.41 kB / 293.9 MB, free: 7.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.692e-05/1.693e-05, allocations: 0 / 352.7 MB, free: 1.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 52.56 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3276/0.4356, allocations: 79.75 MB / 485 MB, free: 7.254 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.4358, allocations: 68.34 kB / 485.1 MB, free: 7.223 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02085/0.4567, allocations: 9.507 MB / 494.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4567, allocations: 4 kB / 494.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.4568, allocations: 7.938 kB / 494.6 MB, free: 14.58 MB / 362.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.0004218/0.4572, allocations: 397.6 kB / 495 MB, free: 14.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.4572, allocations: 15.98 kB / 495 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.4576, allocations: 117.9 kB / 495.1 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001843/0.4594, allocations: 0.7529 MB / 495.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.4595, allocations: 154.5 kB / 496 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.4595, allocations: 158.6 kB / 496.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.488e-05/0.4596, allocations: 151.4 kB / 496.3 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.499e-05/0.4597, allocations: 101 kB / 496.4 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.4597, allocations: 81.44 kB / 496.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-05/0.4598, allocations: 154.5 kB / 496.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.118e-05/0.4598, allocations: 154.6 kB / 496.8 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002645/0.4601, allocations: 438.5 kB / 497.2 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.347e-05/0.4602, allocations: 169.1 kB / 497.4 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.969e-05/0.4602, allocations: 84.12 kB / 497.5 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.4603, allocations: 83.22 kB / 497.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.4603, allocations: 113.8 kB / 497.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 1.543e-06/0.4603, allocations: 0 / 497.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 7.867e-05/0.4604, allocations: 33.61 kB / 497.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.4604, allocations: 51.41 kB / 497.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.4606, allocations: 138.4 kB / 497.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.4606, allocations: 29.7 kB / 497.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.268e-05/0.4606, allocations: 100.1 kB / 498 MB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.393e-06/0.4606, allocations: 4 kB / 498 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.01e-07/0.4607, allocations: 0 / 498 MB, free: 10.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.4608, allocations: 318.8 kB / 498.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.579e-06/0.4608, allocations: 4 kB / 498.3 MB, free: 10.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.584e-06/0.4608, allocations: 0 / 498.3 MB, free: 10.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.669e-05/0.4608, allocations: 75.28 kB / 498.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.482e-05/0.4609, allocations: 75.28 kB / 498.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.804e-05/0.4609, allocations: 37.59 kB / 498.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.725e-05/0.461, allocations: 83.91 kB / 498.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.934e-05/0.461, allocations: 85.09 kB / 498.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.035e-05/0.4611, allocations: 154.6 kB / 498.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.266e-05/0.4611, allocations: 75.28 kB / 498.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.021e-05/0.4611, allocations: 154.5 kB / 499.1 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.766e-05/0.4612, allocations: 75.28 kB / 499.1 MB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.4613, allocations: 83.52 kB / 499.2 MB, free: 9.762 MB / 362.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.0001013/0.4614, allocations: 265.1 kB / 499.5 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.119e-05/0.4615, allocations: 138.5 kB / 499.6 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.817e-05/0.4615, allocations: 108.9 kB / 499.7 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.706e-05/0.4616, allocations: 124.9 kB / 499.8 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.456e-05/0.4617, allocations: 176.3 kB / 0.4883 GB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.084e-05/0.4617, allocations: 180.3 kB / 0.4885 GB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.127e-05/0.4618, allocations: 189.2 kB / 0.4886 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.462, allocations: 401.8 kB / 0.489 GB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-05/0.4621, allocations: 101 kB / 0.4891 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.475e-05/0.4621, allocations: 104.9 kB / 0.4892 GB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.467e-05/0.4622, allocations: 180.3 kB / 0.4894 GB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.47e-05/0.4623, allocations: 185.2 kB / 0.4896 GB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.886e-05/0.4623, allocations: 181.3 kB / 0.4898 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.159e-05/0.4624, allocations: 181.2 kB / 0.4899 GB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.4626, allocations: 319.6 kB / 0.4902 GB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.491e-05/0.4627, allocations: 190 kB / 0.4904 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.4627, allocations: 180.3 kB / 0.4906 GB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.194e-05/0.4628, allocations: 106 kB / 0.4907 GB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.708e-05/0.4629, allocations: 180.3 kB / 0.4909 GB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-05/0.4629, allocations: 101 kB / 0.491 GB, free: 6.035 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.472e-05/0.463, allocations: 124.1 kB / 0.4911 GB, free: 5.914 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4631, allocations: 0 / 0.4911 GB, free: 5.914 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002572/0.4633, allocations: 4 kB / 0.4911 GB, free: 5.91 MB / 362.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.0004781/0.4638, allocations: 0.8516 MB / 0.4919 GB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 3.538e-05/0.4638, allocations: 0.75 kB / 0.4919 GB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4639, allocations: 0 / 0.4919 GB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.633e-06/0.4639, allocations: 0 / 0.4919 GB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/0.4643, allocations: 0.5341 MB / 0.4924 GB, free: 4.488 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004357/0.4647, allocations: 212.6 kB / 0.4926 GB, free: 4.242 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.465, allocations: 0.7015 MB / 0.4933 GB, free: 3.516 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.524e-05/0.465, allocations: 8.172 kB / 0.4933 GB, free: 3.508 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.284e-05/0.4651, allocations: 19.44 kB / 0.4933 GB, free: 3.492 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4651, allocations: 4 kB / 0.4933 GB, free: 3.488 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02017/0.4853, allocations: 1.422 MB / 0.4947 GB, free: 2.113 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.4855, allocations: 136.9 kB / 0.4949 GB, free: 1.922 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.394/1.88, allocations: 0 / 0.4949 GB, free: 1.922 MB / 362.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)