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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 174 kB / 12.73 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03936/0.03936, allocations: 8.702 MB / 21.97 MB, free: 3.727 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.428/1.428, allocations: 221.4 MB / 246 MB, free: 3.562 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.0008603/0.0008603, allocations: 86.94 kB / 299.1 MB, free: 2.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.011e-05/6.014e-05, allocations: 4 kB / 359.6 MB, free: 6.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.29, allocations: 52.54 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.4094, allocations: 80.41 MB / 492.6 MB, free: 6.016 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.4097, allocations: 67.97 kB / 492.6 MB, free: 5.949 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02637/0.4361, allocations: 10.37 MB / 0.4912 GB, free: 11.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4361, allocations: 0 / 0.4912 GB, free: 11.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.4361, allocations: 4 kB / 0.4912 GB, free: 11.53 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.000466/0.4366, allocations: 410.8 kB / 0.4916 GB, free: 11.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.4367, allocations: 16.03 kB / 0.4916 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.183e-05/0.4367, allocations: 105.8 kB / 0.4917 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003213/0.4371, allocations: 115 kB / 0.4918 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.4389, allocations: 0.76 MB / 0.4926 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.536e-05/0.439, allocations: 150.6 kB / 0.4927 GB, free: 9.887 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.573e-05/0.4391, allocations: 154.6 kB / 0.4929 GB, free: 9.734 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.669e-05/0.4391, allocations: 108.9 kB / 0.493 GB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.799e-05/0.4392, allocations: 75.28 kB / 0.493 GB, free: 9.547 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.616e-05/0.4392, allocations: 154.5 kB / 0.4932 GB, free: 9.395 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.18e-05/0.4393, allocations: 154.5 kB / 0.4933 GB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.498e-05/0.4394, allocations: 154.5 kB / 0.4935 GB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003322/0.4397, allocations: 469.9 kB / 0.4939 GB, free: 8.582 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.122e-05/0.4398, allocations: 165.1 kB / 0.4941 GB, free: 8.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.708e-05/0.4399, allocations: 80.14 kB / 0.4942 GB, free: 8.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.48e-05/0.4399, allocations: 75.28 kB / 0.4942 GB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.477e-05/0.44, allocations: 117.8 kB / 0.4944 GB, free: 8.129 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.813e-06/0.44, allocations: 0 / 0.4944 GB, free: 8.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 8.3e-05/0.4401, allocations: 33.61 kB / 0.4944 GB, free: 8.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/0.4402, allocations: 130.7 kB / 0.4945 GB, free: 7.949 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000176/0.4404, allocations: 151.6 kB / 0.4947 GB, free: 7.793 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.4404, allocations: 29.64 kB / 0.4947 GB, free: 7.758 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.899e-05/0.4405, allocations: 100.1 kB / 0.4948 GB, free: 7.656 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-06/0.4405, allocations: 0 / 0.4948 GB, free: 7.656 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.6e-07/0.4405, allocations: 0 / 0.4948 GB, free: 7.656 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4406, allocations: 322.8 kB / 0.4951 GB, free: 7.332 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.586e-06/0.4406, allocations: 0 / 0.4951 GB, free: 7.332 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.224e-06/0.4406, allocations: 0 / 0.4951 GB, free: 7.332 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.082e-05/0.4407, allocations: 79.28 kB / 0.4952 GB, free: 7.254 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.465e-05/0.4407, allocations: 87.2 kB / 0.4952 GB, free: 7.168 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.433e-05/0.4408, allocations: 33.61 kB / 0.4953 GB, free: 7.129 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.4408, allocations: 81.16 kB / 0.4954 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.803e-05/0.4408, allocations: 75.28 kB / 0.4954 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.747e-05/0.4409, allocations: 162.7 kB / 0.4956 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.131e-05/0.441, allocations: 79.28 kB / 0.4957 GB, free: 6.738 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-05/0.441, allocations: 158.5 kB / 0.4958 GB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7e-05/0.4411, allocations: 75.28 kB / 0.4959 GB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.4411, allocations: 87.22 kB / 0.496 GB, free: 6.422 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.0001323/0.4413, allocations: 262.5 kB / 0.4962 GB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.627e-05/0.4414, allocations: 112.8 kB / 0.4963 GB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.006e-05/0.4414, allocations: 109.5 kB / 0.4964 GB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.42e-05/0.4415, allocations: 196.2 kB / 0.4966 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.131e-05/0.4416, allocations: 180.3 kB / 0.4968 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.277e-05/0.4417, allocations: 176.3 kB / 0.497 GB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002668/0.442, allocations: 433.1 kB / 0.4974 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.905e-05/0.442, allocations: 101 kB / 0.4975 GB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.485e-05/0.4421, allocations: 104.9 kB / 0.4976 GB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-05/0.4421, allocations: 180.3 kB / 0.4977 GB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.402e-05/0.4422, allocations: 176.3 kB / 0.4979 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.767e-05/0.4423, allocations: 197 kB / 0.4981 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.03e-05/0.4424, allocations: 176.3 kB / 0.4983 GB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.4425, allocations: 315.6 kB / 0.4986 GB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.47e-05/0.4426, allocations: 194 kB / 0.4987 GB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.519e-05/0.4428, allocations: 180.2 kB / 0.4989 GB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.167e-05/0.4428, allocations: 105 kB / 0.499 GB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7e-05/0.4429, allocations: 180.7 kB / 0.4992 GB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-05/0.443, allocations: 105 kB / 0.4993 GB, free: 2.793 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001058/0.4431, allocations: 131.9 kB / 0.4994 GB, free: 2.664 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4431, allocations: 0 / 0.4994 GB, free: 2.664 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002777/0.4434, allocations: 4 kB / 0.4994 GB, free: 2.66 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.000466/0.4438, allocations: 0.8512 MB / 0.5003 GB, free: 1.781 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 4.836e-05/0.4439, allocations: 4 kB / 0.5003 GB, free: 1.777 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4439, allocations: 0 / 0.5003 GB, free: 1.777 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.413e-06/0.4439, allocations: 0 / 0.5003 GB, free: 1.777 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.4443, allocations: 0.5379 MB / 0.5008 GB, free: 1.234 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004453/0.4448, allocations: 217.8 kB / 0.501 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.4451, allocations: 0.7082 MB / 0.5017 GB, free: 256 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.558e-05/0.4452, allocations: 4.188 kB / 0.5017 GB, free: 252 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.827e-05/0.4452, allocations: 15.44 kB / 0.5017 GB, free: 236 kB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4452, allocations: 4 kB / 0.5017 GB, free: 232 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2393/0.6845, allocations: 2.207 MB / 0.5039 GB, free: 93.47 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/0.6847, allocations: 155 kB / 0.504 GB, free: 93.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.324, allocations: 0 / 0.504 GB, free: 93.25 MB / 378.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe 2>&1)