Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002171/0.002171, allocations: 182.4 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.2 MB / 219 MB, free: 9.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 97.86 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1142/0.1142, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.443e-05/4.454e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 50.37 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4666/0.5696, allocations: 78.16 MB / 0.5026 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.5699, allocations: 60.16 kB / 0.5026 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005496/0.5754, allocations: 1.409 MB / 0.504 GB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5755, allocations: 0 / 0.504 GB, free: 11.44 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.5755, allocations: 4 kB / 0.504 GB, free: 11.44 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004254/0.5759, allocations: 368.1 kB / 0.5044 GB, free: 11.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.576, allocations: 7.688 kB / 0.5044 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.435e-05/0.5761, allocations: 37.91 kB / 0.5044 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.5761, allocations: 10.66 kB / 0.5044 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002172/0.5763, allocations: 192.1 kB / 0.5046 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.5764, allocations: 15.17 kB / 0.5046 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.076e-05/0.5764, allocations: 3.844 kB / 0.5046 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.5768, allocations: 159.6 kB / 0.5048 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.5768, allocations: 3.906 kB / 0.5048 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.5768, allocations: 3.188 kB / 0.5048 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.5769, allocations: 3.938 kB / 0.5048 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.005e-05/0.577, allocations: 21.72 kB / 0.5048 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004204/0.5774, allocations: 294.2 kB / 0.5051 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000266/0.5777, allocations: 175.7 kB / 0.5052 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.764e-05/0.5778, allocations: 46.14 kB / 0.5053 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.5778, allocations: 6.922 kB / 0.5053 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.5779, allocations: 34.12 kB / 0.5053 GB, free: 10.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.515e-06/0.5779, allocations: 0 / 0.5053 GB, free: 10.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002755/0.5782, allocations: 94.06 kB / 0.5054 GB, free: 10.16 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.5782, allocations: 114.2 kB / 0.5055 GB, free: 10.03 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.5783, allocations: 114.8 kB / 0.5056 GB, free: 9.934 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.5784, allocations: 29.52 kB / 0.5057 GB, free: 9.902 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.09e-05/0.5784, allocations: 93.83 kB / 0.5058 GB, free: 9.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.5785, allocations: 9.953 kB / 0.5058 GB, free: 9.812 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.5785, allocations: 0 / 0.5058 GB, free: 9.812 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.432e-05/0.5786, allocations: 332.2 kB / 0.5061 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.276e-05/0.5786, allocations: 7.688 kB / 0.5061 GB, free: 9.492 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.993e-05/0.5787, allocations: 59.27 kB / 0.5061 GB, free: 9.422 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.368e-05/0.5787, allocations: 25.88 kB / 0.5062 GB, free: 9.414 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5787, allocations: 0 / 0.5062 GB, free: 9.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00018/0.5789, allocations: 98.31 kB / 0.5063 GB, free: 9.363 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.579, allocations: 3.844 kB / 0.5063 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.579, allocations: 3.844 kB / 0.5063 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.579, allocations: 0 / 0.5063 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.5792, allocations: 25.12 kB / 0.5063 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.5792, allocations: 3.938 kB / 0.5063 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.332e-05/0.5793, allocations: 7.812 kB / 0.5063 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.5793, allocations: 6.812 kB / 0.5063 GB, free: 9.359 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 6.287e-05/0.5794, allocations: 116.6 kB / 0.5064 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.5796, allocations: 78.16 kB / 0.5065 GB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.853e-05/0.5797, allocations: 12.81 kB / 0.5065 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.5797, allocations: 3.844 kB / 0.5065 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.5797, allocations: 0 / 0.5065 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.5797, allocations: 0 / 0.5065 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.5799, allocations: 182 kB / 0.5067 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5799, allocations: 0 / 0.5067 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.5801, allocations: 21.14 kB / 0.5067 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.5801, allocations: 0 / 0.5067 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.5801, allocations: 11.69 kB / 0.5067 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.5801, allocations: 0 / 0.5067 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.5801, allocations: 0 / 0.5067 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002145/0.5804, allocations: 232.8 kB / 0.5069 GB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.132e-05/0.5804, allocations: 85.02 kB / 0.507 GB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.5804, allocations: 3.875 kB / 0.507 GB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.5806, allocations: 6.547 kB / 0.507 GB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.5806, allocations: 3.938 kB / 0.507 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.5806, allocations: 3.844 kB / 0.507 GB, free: 8.695 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.301e-05/0.5807, allocations: 99.66 kB / 0.5071 GB, free: 8.621 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5807, allocations: 0 / 0.5071 GB, free: 8.621 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000315/0.581, allocations: 11.16 kB / 0.5071 GB, free: 8.621 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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.0004382/0.5815, allocations: 0.8884 MB / 0.508 GB, free: 7.766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001759/0.5817, allocations: 56.42 kB / 0.5081 GB, free: 7.754 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5817, allocations: 0 / 0.5081 GB, free: 7.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.488e-05/0.5817, allocations: 3.781 kB / 0.5081 GB, free: 7.754 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.5821, allocations: 48.27 kB / 0.5081 GB, free: 7.746 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005473/0.5827, allocations: 161.1 kB / 0.5083 GB, free: 7.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.5829, allocations: 0.7039 MB / 0.509 GB, free: 6.914 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.328e-05/0.583, allocations: 448 / 0.509 GB, free: 6.914 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.583, allocations: 24.59 kB / 0.509 GB, free: 6.906 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5831, allocations: 3.844 kB / 0.509 GB, free: 6.906 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02143/0.6045, allocations: 1.825 MB / 0.5108 GB, free: 6.332 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002843/0.6049, allocations: 181.3 kB / 0.5109 GB, free: 6.098 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/2.978, allocations: 3.938 kB / 0.5109 GB, free: 6.094 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe 2>&1)