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.001491/0.001491, allocations: 186 kB / 16.44 MB, free: 5.691 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.906/1.906, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001115/0.001114, allocations: 84.44 kB / 270.9 MB, free: 8.371 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.09928/0.09928, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005411/0.0005411, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08903/0.08959, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.433/0.5227, allocations: 81.71 MB / 0.5118 GB, free: 12.31 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.5229, allocations: 59.02 kB / 0.5118 GB, free: 12.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03032/0.5533, allocations: 7.305 MB / 0.519 GB, free: 8.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5533, allocations: 0 / 0.519 GB, free: 8.695 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.499e-05/0.5534, allocations: 8 kB / 0.519 GB, free: 8.688 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001222/0.5546, allocations: 0.6118 MB / 0.5196 GB, free: 8.059 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.5547, allocations: 12.03 kB / 0.5196 GB, free: 8.047 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.5548, allocations: 44.22 kB / 0.5196 GB, free: 8.004 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007438/0.5555, allocations: 357.2 kB / 0.52 GB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.5556, allocations: 19.44 kB / 0.52 GB, free: 7.645 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.424e-05/0.5556, allocations: 26.75 kB / 0.52 GB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.5575, allocations: 0.7383 MB / 0.5207 GB, free: 7.008 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.5576, allocations: 0 / 0.5207 GB, free: 7.008 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.5576, allocations: 11.38 kB / 0.5207 GB, free: 7.004 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.5576, allocations: 8 kB / 0.5207 GB, free: 6.996 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009242/0.5586, allocations: 231.3 kB / 0.521 GB, free: 6.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.5596, allocations: 0.7601 MB / 0.5217 GB, free: 6.078 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.5612, allocations: 0.6205 MB / 0.5223 GB, free: 5.488 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006926/0.5619, allocations: 0.5891 MB / 0.5229 GB, free: 4.777 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.5619, allocations: 38.05 kB / 0.5229 GB, free: 4.734 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 4.217e-06/0.562, allocations: 4 kB / 0.5229 GB, free: 4.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.001993/0.564, allocations: 0.608 MB / 0.5235 GB, free: 4.215 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.5641, allocations: 183.4 kB / 0.5237 GB, free: 4.012 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.5644, allocations: 220.2 kB / 0.5239 GB, free: 3.824 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.5645, allocations: 29.27 kB / 0.5239 GB, free: 3.793 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.177e-05/0.5646, allocations: 208.6 kB / 0.5241 GB, free: 3.617 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.707e-05/0.5646, allocations: 42.38 kB / 0.5242 GB, free: 3.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.272e-05/0.5647, allocations: 11.19 kB / 0.5242 GB, free: 3.582 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.294e-05/0.5648, allocations: 337.2 kB / 0.5245 GB, free: 3.254 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/0.5651, allocations: 90.62 kB / 0.5246 GB, free: 3.188 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004248/0.5655, allocations: 423.9 kB / 0.525 GB, free: 2.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003958/0.5659, allocations: 166 kB / 0.5252 GB, free: 2.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/0.5659, allocations: 7.953 kB / 0.5252 GB, free: 2.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001063/0.567, allocations: 485.8 kB / 0.5256 GB, free: 2.117 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.5671, allocations: 16.03 kB / 0.5256 GB, free: 2.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.5671, allocations: 12 kB / 0.5256 GB, free: 2.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.444e-05/0.5671, allocations: 16 kB / 0.5257 GB, free: 2.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006102/0.5678, allocations: 123.1 kB / 0.5258 GB, free: 1.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.421e-05/0.5678, allocations: 19.94 kB / 0.5258 GB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.5682, allocations: 50.61 kB / 0.5258 GB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.5683, allocations: 31.5 kB / 0.5259 GB, free: 1.867 MB / 330.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 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * 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.0003108/0.5686, allocations: 189.1 kB / 0.5261 GB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009637/0.5696, allocations: 339.4 kB / 0.5264 GB, free: 1.441 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.5706, allocations: 363.2 kB / 0.5267 GB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.5707, allocations: 4 kB / 0.5267 GB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.5707, allocations: 0 / 0.5267 GB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.5707, allocations: 11.97 kB / 0.5267 GB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.5712, allocations: 324.4 kB / 0.5271 GB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.5713, allocations: 0 / 0.5271 GB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007535/0.572, allocations: 115.6 kB / 0.5272 GB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-05/0.5721, allocations: 4 kB / 0.5272 GB, free: 0.7422 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.571e-05/0.5721, allocations: 7.375 kB / 0.5272 GB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.685e-06/0.5721, allocations: 0 / 0.5272 GB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5721, allocations: 4 kB / 0.5272 GB, free: 0.7344 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/0.5741, allocations: 0.8201 MB / 0.528 GB, free: 40 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001797/0.5744, allocations: 124 kB / 0.5281 GB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.679e-05/0.5745, allocations: 15.06 kB / 0.5281 GB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/0.5749, allocations: 26.8 kB / 0.5281 GB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.575, allocations: 11.92 kB / 0.5281 GB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.878e-05/0.575, allocations: 14.56 kB / 0.5282 GB, free: 15.85 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002954/0.5753, allocations: 178.4 kB / 0.5283 GB, free: 15.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5754, allocations: 0 / 0.5283 GB, free: 15.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007837/0.5761, allocations: 85.02 kB / 0.5284 GB, free: 15.64 MB / 346.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 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * 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.0002749/0.5764, allocations: 122.7 kB / 0.5285 GB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.5777, allocations: 360.8 kB / 0.5289 GB, free: 15.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5777, allocations: 0 / 0.5289 GB, free: 15.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000216/0.578, allocations: 38.22 kB / 0.5289 GB, free: 15.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.5794, allocations: 286.6 kB / 0.5292 GB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.5821, allocations: 0.9359 MB / 0.5301 GB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.5826, allocations: 0.8236 MB / 0.5309 GB, free: 13.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.5828, allocations: 31.44 kB / 0.5309 GB, free: 13.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5828, allocations: 0 / 0.5309 GB, free: 13.2 MB / 346.7 MB Notification: Performance of Templates: time 0.01157/0.5944, allocations: 4.255 MB / 0.5351 GB, free: 8.988 MB / 346.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)