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.001519/0.001518, allocations: 177.7 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.182/2.182, allocations: 205.3 MB / 213.8 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 82.64 kB / 261.8 MB, free: 1.688 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.1042/0.1042, allocations: 12.6 MB / 322.4 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.419e-05/2.419e-05, allocations: 0 / 379 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3182, allocations: 50.36 MB / 429.4 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1444/0.4626, allocations: 77.5 MB / 0.495 GB, free: 4.734 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.4629, allocations: 59.97 kB / 0.4951 GB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005916/0.4688, allocations: 1.416 MB / 0.4965 GB, free: 3.258 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4689, allocations: 0 / 0.4965 GB, free: 3.258 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.4689, allocations: 0 / 0.4965 GB, free: 3.258 MB / 346.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.000529/0.4694, allocations: 366.3 kB / 0.4968 GB, free: 2.855 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.4695, allocations: 12.03 kB / 0.4968 GB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.045e-05/0.4696, allocations: 15.81 kB / 0.4968 GB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.4699, allocations: 190.9 kB / 0.497 GB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.4699, allocations: 3.953 kB / 0.497 GB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.4699, allocations: 4 kB / 0.497 GB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001544/0.4701, allocations: 31.94 kB / 0.4971 GB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.4705, allocations: 141.9 kB / 0.4972 GB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.4705, allocations: 3.984 kB / 0.4972 GB, free: 2.398 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.4705, allocations: 0 / 0.4972 GB, free: 2.398 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.4705, allocations: 7.984 kB / 0.4972 GB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.471, allocations: 263.1 kB / 0.4974 GB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.4713, allocations: 169 kB / 0.4976 GB, free: 1.879 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.884e-05/0.4714, allocations: 46.58 kB / 0.4977 GB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.4715, allocations: 0 / 0.4977 GB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.4715, allocations: 42.56 kB / 0.4977 GB, free: 1.773 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.953e-06/0.4715, allocations: 0 / 0.4977 GB, free: 1.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002843/0.4718, allocations: 81.61 kB / 0.4978 GB, free: 1.688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.4719, allocations: 102.8 kB / 0.4979 GB, free: 1.562 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.472, allocations: 113.3 kB / 0.498 GB, free: 1.441 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.4721, allocations: 25.7 kB / 0.498 GB, free: 1.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.632e-05/0.4721, allocations: 92.17 kB / 0.4981 GB, free: 1.316 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.4722, allocations: 15.83 kB / 0.4981 GB, free: 1.301 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-06/0.4722, allocations: 4 kB / 0.4981 GB, free: 1.297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4723, allocations: 314.8 kB / 0.4984 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.993e-05/0.4724, allocations: 4 kB / 0.4984 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.4725, allocations: 71.66 kB / 0.4985 GB, free: 0.8789 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.151e-05/0.4726, allocations: 16 kB / 0.4985 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.4726, allocations: 3.953 kB / 0.4985 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000198/0.4728, allocations: 89.39 kB / 0.4986 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.4728, allocations: 4 kB / 0.4986 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.4728, allocations: 4.188 kB / 0.4986 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.4729, allocations: 0 / 0.4986 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.4731, allocations: 23.92 kB / 0.4986 GB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.4731, allocations: 7.938 kB / 0.4986 GB, free: 0.7266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.949e-05/0.4732, allocations: 12.34 kB / 0.4986 GB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.4732, allocations: 4 kB / 0.4986 GB, free: 0.7109 MB / 346.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 9.036e-05/0.4733, allocations: 109 kB / 0.4987 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002035/0.4735, allocations: 85.47 kB / 0.4988 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.885e-05/0.4736, allocations: 11.91 kB / 0.4988 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.462e-05/0.4736, allocations: 8.406 kB / 0.4988 GB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.4736, allocations: 4 kB / 0.4988 GB, free: 500 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4737, allocations: 0 / 0.4988 GB, free: 500 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.4737, allocations: 3.984 kB / 0.4989 GB, free: 496 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.4739, allocations: 158.1 kB / 0.499 GB, free: 300 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.4739, allocations: 4 kB / 0.499 GB, free: 296 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.4741, allocations: 19.92 kB / 0.499 GB, free: 276 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.4741, allocations: 4 kB / 0.499 GB, free: 272 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.4741, allocations: 4 kB / 0.499 GB, free: 268 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.4741, allocations: 3.938 kB / 0.499 GB, free: 264 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4741, allocations: 0 / 0.499 GB, free: 264 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/0.4744, allocations: 216.5 kB / 0.4992 GB, free: 12 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.002e-05/0.4745, allocations: 85.02 kB / 0.4993 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.4745, allocations: 4.094 kB / 0.4993 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.4747, allocations: 3.984 kB / 0.4993 GB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.323e-05/0.4747, allocations: 7.984 kB / 0.4993 GB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.4747, allocations: 0 / 0.4993 GB, free: 15.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.288e-05/0.4748, allocations: 105 kB / 0.4994 GB, free: 15.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4749, allocations: 0 / 0.4994 GB, free: 15.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003522/0.4752, allocations: 8 kB / 0.4994 GB, free: 15.79 MB / 362.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.0005882/0.4758, allocations: 0.8744 MB / 0.5003 GB, free: 14.87 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001669/0.476, allocations: 48.05 kB / 0.5003 GB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.476, allocations: 0 / 0.5003 GB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.463e-05/0.4761, allocations: 7.938 kB / 0.5004 GB, free: 14.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004593/0.4765, allocations: 35.97 kB / 0.5004 GB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006073/0.4771, allocations: 164.1 kB / 0.5005 GB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.4775, allocations: 0.6963 MB / 0.5012 GB, free: 13.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.651e-05/0.4775, allocations: 4.438 kB / 0.5012 GB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.233e-05/0.4776, allocations: 23.42 kB / 0.5013 GB, free: 13.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4776, allocations: 0 / 0.5013 GB, free: 13.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07212/0.5498, allocations: 1.506 MB / 0.5027 GB, free: 12.32 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003343/0.5502, allocations: 150.6 kB / 0.5029 GB, free: 12.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.67/3.22, allocations: 0 / 0.5029 GB, free: 12.14 MB / 362.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)