Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.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.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",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.0009794/0.0009794, 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.0432/0.0432, allocations: 8.708 MB / 16.78 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.414/1.414, allocations: 221.5 MB / 240.9 MB, free: 13.12 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.001083/0.001083, allocations: 99.81 kB / 293.9 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.281e-05/2.284e-05, allocations: 4 kB / 352.7 MB, free: 1.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1273, allocations: 52.55 MB / 405.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3842/0.5116, allocations: 79.67 MB / 484.9 MB, free: 7.348 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.5118, allocations: 63.84 kB / 485 MB, free: 7.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02038/0.5322, allocations: 9.691 MB / 494.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5323, allocations: 0 / 494.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.5323, allocations: 0 / 494.7 MB, free: 14.48 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.0004541/0.5327, allocations: 401.6 kB / 495.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.5328, allocations: 15.98 kB / 495.1 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002856/0.5331, allocations: 115.2 kB / 495.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.5348, allocations: 0.7618 MB / 496 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.53e-05/0.5349, allocations: 150.6 kB / 496.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.645e-05/0.535, allocations: 150.6 kB / 496.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.448e-05/0.535, allocations: 162.5 kB / 496.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.948e-05/0.5351, allocations: 101 kB / 496.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/0.5351, allocations: 75.28 kB / 496.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.337e-05/0.5352, allocations: 158.5 kB / 496.8 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.434e-05/0.5353, allocations: 150.6 kB / 496.9 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002574/0.5355, allocations: 446.5 kB / 497.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.18e-05/0.5356, allocations: 173.1 kB / 497.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.354e-05/0.5356, allocations: 84.12 kB / 497.6 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.5357, allocations: 75.28 kB / 497.7 MB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/0.5357, allocations: 112.2 kB / 497.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.5357, allocations: 0 / 497.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 7.643e-05/0.5358, allocations: 33.61 kB / 497.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.5359, allocations: 51.41 kB / 497.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.536, allocations: 147.7 kB / 498 MB, free: 11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.536, allocations: 25.7 kB / 498 MB, free: 10.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.575e-05/0.5361, allocations: 104.1 kB / 498.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.292e-06/0.5361, allocations: 0 / 498.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-07/0.5361, allocations: 0 / 498.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5362, allocations: 330.8 kB / 498.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.362e-06/0.5362, allocations: 3.938 kB / 498.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.284e-06/0.5362, allocations: 1.406 kB / 498.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.552e-05/0.5363, allocations: 75.28 kB / 498.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.788e-05/0.5363, allocations: 75.28 kB / 498.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.471e-05/0.5364, allocations: 33.61 kB / 498.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.232e-05/0.5364, allocations: 88.62 kB / 498.7 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/0.5365, allocations: 75.83 kB / 498.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.403e-05/0.5365, allocations: 158.5 kB / 499 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.58e-05/0.5366, allocations: 79.27 kB / 499 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.622e-05/0.5366, allocations: 154.6 kB / 499.2 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.606e-05/0.5367, allocations: 79.22 kB / 499.3 MB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.5367, allocations: 75.52 kB / 499.3 MB, free: 9.637 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 9.846e-05/0.5368, allocations: 259.5 kB / 499.6 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.564e-05/0.5369, allocations: 150.5 kB / 499.7 MB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.595e-05/0.537, allocations: 112.9 kB / 499.8 MB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.784e-05/0.537, allocations: 110.2 kB / 500 MB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.121e-05/0.5371, allocations: 182.3 kB / 0.4884 GB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.725e-05/0.5372, allocations: 184.2 kB / 0.4886 GB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.906e-05/0.5372, allocations: 188.2 kB / 0.4888 GB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.5374, allocations: 397.7 kB / 0.4891 GB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.951e-05/0.5375, allocations: 109 kB / 0.4892 GB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.445e-05/0.5375, allocations: 101 kB / 0.4893 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.604e-05/0.5376, allocations: 180.2 kB / 0.4895 GB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.405e-05/0.5377, allocations: 177.2 kB / 0.4897 GB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.186e-05/0.5377, allocations: 185.4 kB / 0.4899 GB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-05/0.5378, allocations: 185.5 kB / 0.49 GB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.5379, allocations: 311.7 kB / 0.4903 GB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.23e-05/0.538, allocations: 189.9 kB / 0.4905 GB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.114e-05/0.5381, allocations: 188.2 kB / 0.4907 GB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-05/0.5382, allocations: 102.1 kB / 0.4908 GB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.5383, allocations: 180.2 kB / 0.491 GB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.5383, allocations: 101 kB / 0.4911 GB, free: 5.906 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.599e-05/0.5384, allocations: 124.9 kB / 0.4912 GB, free: 5.785 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5384, allocations: 0 / 0.4912 GB, free: 5.785 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002394/0.5387, allocations: 4 kB / 0.4912 GB, free: 5.781 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.0004756/0.5391, allocations: 0.8399 MB / 0.492 GB, free: 4.914 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 3.231e-05/0.5392, allocations: 1.312 kB / 0.492 GB, free: 4.914 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5392, allocations: 0 / 0.492 GB, free: 4.914 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.844e-06/0.5392, allocations: 0 / 0.492 GB, free: 4.914 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004065/0.5396, allocations: 0.535 MB / 0.4925 GB, free: 4.375 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004258/0.54, allocations: 216.6 kB / 0.4927 GB, free: 4.129 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.5404, allocations: 0.704 MB / 0.4934 GB, free: 3.398 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.971e-05/0.5404, allocations: 8.172 kB / 0.4934 GB, free: 3.391 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.616e-05/0.5405, allocations: 23.42 kB / 0.4935 GB, free: 3.371 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5405, allocations: 0 / 0.4935 GB, free: 3.371 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.5603, allocations: 1.389 MB / 0.4948 GB, free: 2.031 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.5605, allocations: 133.9 kB / 0.4949 GB, free: 1.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.484/2.045, allocations: 0.6562 kB / 0.4949 GB, free: 1.84 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestSingleLayer12over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestSingleLayer12over12.fmu > HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe 2>&1)