Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001549/0.001549, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.968/1.968, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.00101/0.00101, allocations: 82.72 kB / 267.6 MB, free: 14.1 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.0977/0.0977, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.667e-05/4.688e-05, allocations: 4 kB / 386 MB, free: 1.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2991, allocations: 50.38 MB / 436.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1429/0.4421, allocations: 81.61 MB / 0.5058 GB, free: 12.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.4424, allocations: 63.97 kB / 0.5059 GB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03395/0.4763, allocations: 7.269 MB / 0.513 GB, free: 5.074 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.148e-06/0.4764, allocations: 3.984 kB / 0.513 GB, free: 5.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.755e-05/0.4764, allocations: 8 kB / 0.513 GB, free: 5.062 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001272/0.4777, allocations: 0.5683 MB / 0.5135 GB, free: 4.449 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.4778, allocations: 8.031 kB / 0.5136 GB, free: 4.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.4779, allocations: 44.12 kB / 0.5136 GB, free: 4.398 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000872/0.4788, allocations: 362.6 kB / 0.5139 GB, free: 4.004 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.4789, allocations: 16.56 kB / 0.514 GB, free: 3.988 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.4789, allocations: 28 kB / 0.514 GB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.4805, allocations: 0.6626 MB / 0.5146 GB, free: 3.258 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.4806, allocations: 0 / 0.5146 GB, free: 3.258 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.719e-05/0.4806, allocations: 12 kB / 0.5146 GB, free: 3.246 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.4806, allocations: 4 kB / 0.5146 GB, free: 3.242 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004782/0.4811, allocations: 155.7 kB / 0.5148 GB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.4825, allocations: 0.7799 MB / 0.5156 GB, free: 2.234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.4837, allocations: 0.5488 MB / 0.5161 GB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005105/0.4842, allocations: 231.2 kB / 0.5163 GB, free: 1.371 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008406/0.4851, allocations: 0.5817 MB / 0.5169 GB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.4851, allocations: 38.56 kB / 0.5169 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 3.707e-06/0.4851, allocations: 0 / 0.5169 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.0009568/0.4861, allocations: 329.4 kB / 0.5172 GB, free: 292 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/0.4863, allocations: 182.2 kB / 0.5174 GB, free: 72 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2743/0.7606, allocations: 212.5 kB / 0.5176 GB, free: 86.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.063e-05/0.7608, allocations: 34.23 kB / 0.5176 GB, free: 86.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.7609, allocations: 207.7 kB / 0.5178 GB, free: 86.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.73e-05/0.761, allocations: 50.53 kB / 0.5179 GB, free: 86.35 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.726e-05/0.7611, allocations: 9.375 kB / 0.5179 GB, free: 86.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.352e-05/0.7612, allocations: 329.7 kB / 0.5182 GB, free: 86.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.7614, allocations: 70.94 kB / 0.5183 GB, free: 86.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004218/0.7618, allocations: 406.9 kB / 0.5187 GB, free: 85.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.7622, allocations: 149 kB / 0.5188 GB, free: 85.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.7622, allocations: 2.875 kB / 0.5188 GB, free: 85.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001022/0.7633, allocations: 453.4 kB / 0.5192 GB, free: 85.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.381e-05/0.7633, allocations: 10.78 kB / 0.5193 GB, free: 85.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.7634, allocations: 11.31 kB / 0.5193 GB, free: 85.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.291e-05/0.7634, allocations: 17.09 kB / 0.5193 GB, free: 85.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007187/0.7641, allocations: 122.5 kB / 0.5194 GB, free: 85.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.78e-05/0.7642, allocations: 25.22 kB / 0.5194 GB, free: 85.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006171/0.7648, allocations: 55.56 kB / 0.5195 GB, free: 85.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-05/0.7649, allocations: 29.84 kB / 0.5195 GB, free: 85.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002034/0.7651, allocations: 160.1 kB / 0.5197 GB, free: 85.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007959/0.7659, allocations: 301.7 kB / 0.5199 GB, free: 85.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008321/0.7668, allocations: 317.1 kB / 0.5202 GB, free: 85.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.7668, allocations: 6.25 kB / 0.5203 GB, free: 85.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.7668, allocations: 1.156 kB / 0.5203 GB, free: 85.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.7668, allocations: 3.062 kB / 0.5203 GB, free: 85.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005853/0.7674, allocations: 329.5 kB / 0.5206 GB, free: 85.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/0.7675, allocations: 8.328 kB / 0.5206 GB, free: 85.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008373/0.7683, allocations: 109.7 kB / 0.5207 GB, free: 85.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.486e-05/0.7684, allocations: 7.078 kB / 0.5207 GB, free: 85.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.169e-05/0.7684, allocations: 9.75 kB / 0.5207 GB, free: 85.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.166e-06/0.7684, allocations: 7.188 kB / 0.5207 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.7684, allocations: 2.375 kB / 0.5207 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.7698, allocations: 0.7054 MB / 0.5214 GB, free: 84.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.7699, allocations: 117 kB / 0.5215 GB, free: 84.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.451e-05/0.77, allocations: 16.03 kB / 0.5215 GB, free: 84.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004294/0.7705, allocations: 29.55 kB / 0.5216 GB, free: 84.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.7706, allocations: 8.031 kB / 0.5216 GB, free: 84.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.033e-05/0.7706, allocations: 18.31 kB / 0.5216 GB, free: 84.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002661/0.7709, allocations: 173.3 kB / 0.5217 GB, free: 84.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.7709, allocations: 0 / 0.5217 GB, free: 84.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008754/0.7718, allocations: 79.59 kB / 0.5218 GB, free: 84.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002596/0.7721, allocations: 129.1 kB / 0.5219 GB, free: 84.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008653/0.773, allocations: 302.1 kB / 0.5222 GB, free: 84.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.773, allocations: 1.531 kB / 0.5222 GB, free: 84.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.024e-05/0.7731, allocations: 26.06 kB / 0.5223 GB, free: 84.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.7743, allocations: 254.6 kB / 0.5225 GB, free: 84.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.7765, allocations: 0.6183 MB / 0.5231 GB, free: 84.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.7769, allocations: 0.8204 MB / 0.5239 GB, free: 83.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.7771, allocations: 31.53 kB / 0.5239 GB, free: 83.32 MB / 362.7 MB Notification: Performance of SimCode: time 1.322e-06/0.7771, allocations: 0 / 0.5239 GB, free: 83.32 MB / 362.7 MB Notification: Performance of Templates: time 0.01297/0.7901, allocations: 4.276 MB / 0.5281 GB, free: 82.95 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)