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.001753/0.001753, allocations: 180.9 kB / 7.65 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.07208/0.07208, allocations: 8.71 MB / 16.79 MB, free: 3.387 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.572/1.572, allocations: 221.5 MB / 240.9 MB, free: 13.15 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.0009213/0.0009212, allocations: 91.88 kB / 293.9 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.628e-05/1.645e-05, allocations: 0 / 352.7 MB, free: 1.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 52.56 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3781/0.4846, allocations: 79.74 MB / 485 MB, free: 7.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4849, allocations: 71.16 kB / 485.1 MB, free: 7.297 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03199/0.5169, allocations: 10.27 MB / 495.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5169, allocations: 0 / 495.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.517, allocations: 0 / 495.4 MB, free: 13.86 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.000466/0.5174, allocations: 406.2 kB / 495.8 MB, free: 13.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.5175, allocations: 15.98 kB / 495.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.5178, allocations: 113.9 kB / 495.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.5195, allocations: 0.7661 MB / 496.6 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.138e-05/0.5196, allocations: 151.8 kB / 496.8 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.5197, allocations: 150.6 kB / 496.9 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.426e-05/0.5197, allocations: 158.5 kB / 497.1 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.452e-05/0.5198, allocations: 105 kB / 497.2 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.5198, allocations: 75.28 kB / 497.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.534e-05/0.5199, allocations: 154.5 kB / 497.4 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.432e-05/0.5199, allocations: 154.6 kB / 497.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002496/0.5202, allocations: 438.5 kB / 498 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.67e-05/0.5203, allocations: 177.1 kB / 498.2 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.73e-05/0.5203, allocations: 80.14 kB / 498.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.5204, allocations: 75.28 kB / 498.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/0.5204, allocations: 113.8 kB / 498.4 MB, free: 10.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.5204, allocations: 0 / 498.4 MB, free: 10.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 8.373e-05/0.5205, allocations: 34.64 kB / 498.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.5206, allocations: 55.41 kB / 498.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.5207, allocations: 143.7 kB / 498.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.5208, allocations: 29.64 kB / 498.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.5208, allocations: 100.1 kB / 498.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.343e-06/0.5208, allocations: 0 / 498.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-07/0.5208, allocations: 4 kB / 498.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.521, allocations: 318.8 kB / 499.1 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.701e-06/0.521, allocations: 3.938 kB / 499.1 MB, free: 9.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.484e-06/0.521, allocations: 4 kB / 499.1 MB, free: 9.906 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.361e-05/0.521, allocations: 83.27 kB / 499.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.265e-05/0.5211, allocations: 76.69 kB / 499.3 MB, free: 9.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.513e-05/0.5211, allocations: 33.61 kB / 499.3 MB, free: 9.711 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/0.5212, allocations: 79.28 kB / 499.4 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-05/0.5212, allocations: 75.28 kB / 499.5 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.726e-05/0.5213, allocations: 162.5 kB / 499.6 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.619e-05/0.5213, allocations: 80.84 kB / 499.7 MB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.178e-05/0.5214, allocations: 151.1 kB / 499.8 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.302e-05/0.5215, allocations: 83.2 kB / 499.9 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.5215, allocations: 79.52 kB / 0.4883 GB, free: 9.012 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.0001142/0.5216, allocations: 259.5 kB / 0.4885 GB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.768e-05/0.5217, allocations: 142.5 kB / 0.4887 GB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.488e-05/0.5218, allocations: 108.9 kB / 0.4888 GB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.5218, allocations: 122.2 kB / 0.4889 GB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.797e-05/0.5219, allocations: 180.2 kB / 0.4891 GB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.369e-05/0.522, allocations: 176.3 kB / 0.4892 GB, free: 8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.131e-05/0.5221, allocations: 181.2 kB / 0.4894 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.5223, allocations: 409.7 kB / 0.4898 GB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.548e-05/0.5223, allocations: 101 kB / 0.4899 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.618e-05/0.5224, allocations: 105.9 kB / 0.49 GB, free: 7.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.055e-05/0.5224, allocations: 184.2 kB / 0.4902 GB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.458e-05/0.5225, allocations: 177.2 kB / 0.4903 GB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.449e-05/0.5226, allocations: 180.3 kB / 0.4905 GB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.926e-05/0.5227, allocations: 184.2 kB / 0.4907 GB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001554/0.5228, allocations: 311.7 kB / 0.491 GB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.724e-05/0.5229, allocations: 193.9 kB / 0.4912 GB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.523, allocations: 178 kB / 0.4913 GB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.473e-05/0.5231, allocations: 109.4 kB / 0.4914 GB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.5232, allocations: 184.2 kB / 0.4916 GB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.5232, allocations: 108.9 kB / 0.4917 GB, free: 5.281 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.318e-05/0.5233, allocations: 120.9 kB / 0.4918 GB, free: 5.164 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5233, allocations: 0 / 0.4918 GB, free: 5.164 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002728/0.5236, allocations: 7.984 kB / 0.4918 GB, free: 5.156 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.0003928/0.524, allocations: 0.8494 MB / 0.4927 GB, free: 4.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 3.234e-05/0.524, allocations: 0 / 0.4927 GB, free: 4.277 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5241, allocations: 4 kB / 0.4927 GB, free: 4.273 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.91e-07/0.5241, allocations: 0 / 0.4927 GB, free: 4.273 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.5244, allocations: 0.5307 MB / 0.4932 GB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003981/0.5248, allocations: 220.7 kB / 0.4934 GB, free: 3.488 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.5251, allocations: 0.6963 MB / 0.4941 GB, free: 2.766 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.041e-05/0.5252, allocations: 4.188 kB / 0.4941 GB, free: 2.762 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.728e-05/0.5252, allocations: 25.2 kB / 0.4941 GB, free: 2.742 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5252, allocations: 0 / 0.4941 GB, free: 2.742 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01814/0.5434, allocations: 1.467 MB / 0.4955 GB, free: 1.324 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/0.5436, allocations: 135.2 kB / 0.4957 GB, free: 1.133 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.486/2.029, allocations: 1.75 kB / 0.4957 GB, free: 1.133 MB / 362.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)