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.001577/0.001577, allocations: 184.2 kB / 15.8 MB, free: 6.316 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.088/2.088, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001609/0.00161, allocations: 94.84 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1011/0.1011, allocations: 12.61 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005526/0.0005526, allocations: 12.88 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09568, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1445/0.2403, allocations: 78.25 MB / 0.5085 GB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.2406, allocations: 59.97 kB / 0.5086 GB, free: 12.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006732/0.2473, allocations: 1.425 MB / 0.51 GB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2474, allocations: 0 / 0.51 GB, free: 11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.2474, allocations: 0 / 0.51 GB, free: 11 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005995/0.248, allocations: 382.9 kB / 0.5103 GB, free: 10.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.2481, allocations: 12.03 kB / 0.5103 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.165e-05/0.2481, allocations: 38.55 kB / 0.5104 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.2482, allocations: 7.906 kB / 0.5104 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.2485, allocations: 194.9 kB / 0.5106 GB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.2485, allocations: 7.953 kB / 0.5106 GB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.2485, allocations: 8 kB / 0.5106 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004922/0.249, allocations: 165.8 kB / 0.5107 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.2491, allocations: 0 / 0.5107 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.2491, allocations: 0 / 0.5107 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.2491, allocations: 3.984 kB / 0.5107 GB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.2493, allocations: 47.91 kB / 0.5108 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.2499, allocations: 282.6 kB / 0.5111 GB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.2503, allocations: 184.9 kB / 0.5112 GB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.2503, allocations: 7.875 kB / 0.5112 GB, free: 9.469 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.2504, allocations: 38.7 kB / 0.5113 GB, free: 9.422 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.284e-06/0.2504, allocations: 4 kB / 0.5113 GB, free: 9.418 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.000508/0.2509, allocations: 121.5 kB / 0.5114 GB, free: 9.293 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.516e-05/0.251, allocations: 114.8 kB / 0.5115 GB, free: 9.156 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.2512, allocations: 113.3 kB / 0.5116 GB, free: 9.035 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.2512, allocations: 25.7 kB / 0.5116 GB, free: 9.004 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.253e-05/0.2513, allocations: 104.2 kB / 0.5117 GB, free: 8.898 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.2513, allocations: 0 / 0.5117 GB, free: 8.898 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.105e-06/0.2513, allocations: 4 kB / 0.5117 GB, free: 8.895 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2515, allocations: 326.8 kB / 0.5121 GB, free: 8.566 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.043e-05/0.2516, allocations: 11.98 kB / 0.5121 GB, free: 8.555 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.2517, allocations: 75.72 kB / 0.5121 GB, free: 8.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.2518, allocations: 24.12 kB / 0.5122 GB, free: 8.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.2519, allocations: 4 kB / 0.5122 GB, free: 8.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003047/0.2522, allocations: 113.3 kB / 0.5123 GB, free: 8.309 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.2522, allocations: 4 kB / 0.5123 GB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.2522, allocations: 4.281 kB / 0.5123 GB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.2523, allocations: 4 kB / 0.5123 GB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.2524, allocations: 19.98 kB / 0.5123 GB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/0.2525, allocations: 11.92 kB / 0.5123 GB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.797e-05/0.2525, allocations: 7.938 kB / 0.5123 GB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.2526, allocations: 4 kB / 0.5123 GB, free: 8.254 MB / 362.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 () * Number of clocked 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 0.000131/0.2527, allocations: 129.6 kB / 0.5125 GB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.2529, allocations: 73.53 kB / 0.5125 GB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.472e-05/0.253, allocations: 16.3 kB / 0.5125 GB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.253, allocations: 4 kB / 0.5125 GB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.253, allocations: 4 kB / 0.5125 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.253, allocations: 0 / 0.5125 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.2533, allocations: 181.5 kB / 0.5127 GB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2533, allocations: 4 kB / 0.5127 GB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.2535, allocations: 15.98 kB / 0.5127 GB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.2535, allocations: 4 kB / 0.5127 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.2535, allocations: 0 / 0.5127 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2536, allocations: 0 / 0.5127 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/0.2536, allocations: 4 kB / 0.5127 GB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004139/0.254, allocations: 240.4 kB / 0.513 GB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.107e-05/0.2541, allocations: 88.95 kB / 0.5131 GB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.2541, allocations: 8 kB / 0.5131 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.2542, allocations: 0 / 0.5131 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.2543, allocations: 8.25 kB / 0.5131 GB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.248e-06/0.2543, allocations: 0 / 0.5131 GB, free: 7.367 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.322e-05/0.2544, allocations: 103.2 kB / 0.5132 GB, free: 7.266 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.2544, allocations: 0 / 0.5132 GB, free: 7.266 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003345/0.2548, allocations: 16 kB / 0.5132 GB, free: 7.25 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 () * Number of clocked 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.0007841/0.2556, allocations: 0.898 MB / 0.5141 GB, free: 6.312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002843/0.2559, allocations: 67.84 kB / 0.5141 GB, free: 6.246 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2559, allocations: 0 / 0.5141 GB, free: 6.246 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.297e-05/0.256, allocations: 11.98 kB / 0.5141 GB, free: 6.234 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004471/0.2564, allocations: 56.28 kB / 0.5142 GB, free: 6.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.2584, allocations: 1.798 MB / 0.516 GB, free: 4.289 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.2588, allocations: 0.7043 MB / 0.5166 GB, free: 3.559 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.707e-05/0.2589, allocations: 4.438 kB / 0.5166 GB, free: 3.555 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.612e-05/0.259, allocations: 23.48 kB / 0.5167 GB, free: 3.531 MB / 362.7 MB Notification: Performance of SimCode: time 1.302e-06/0.259, allocations: 0 / 0.5167 GB, free: 3.531 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.2839, allocations: 1.85 MB / 0.5185 GB, free: 1.695 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003542/0.2843, allocations: 190.5 kB / 0.5187 GB, free: 1.457 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.412/2.696, allocations: 0 / 0.5187 GB, free: 1.457 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)