Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 104.2 kB / 16.31 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 186.3 kB / 17.24 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.735/1.735, allocations: 205.1 MB / 223.1 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0816/0.0816, allocations: 12.59 MB / 283.1 MB, free: 15.46 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 92.2 kB / 343.5 MB, free: 2.934 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3368, allocations: 49.38 MB / 392.9 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.004363/0.3412, allocations: 2.692 MB / 395.6 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.3428, allocations: 0.957 MB / 396.5 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.343, allocations: 10.91 kB / 396.5 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.3432, allocations: 58.88 kB / 396.6 MB, free: 46.58 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.3435, allocations: 57.78 kB / 396.6 MB, free: 46.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006967/0.3442, allocations: 241 kB / 396.9 MB, free: 46.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003637/0.3446, allocations: 385.6 kB / 397.3 MB, free: 46.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003107/0.3449, allocations: 185 kB / 397.4 MB, free: 46.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.345, allocations: 133.3 kB / 397.6 MB, free: 46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.3452, allocations: 156 kB / 397.7 MB, free: 45.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.578e-05/0.3453, allocations: 31.22 kB / 397.8 MB, free: 45.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.3454, allocations: 75.38 kB / 397.8 MB, free: 45.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.3456, allocations: 82.58 kB / 397.9 MB, free: 45.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.3457, allocations: 161.7 kB / 398.1 MB, free: 45.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003617/0.3461, allocations: 381.7 kB / 398.4 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3461, allocations: 4 kB / 398.4 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3461, allocations: 1.188 kB / 398.4 MB, free: 45.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3461, allocations: 0 / 398.4 MB, free: 45.37 MB / 318.1 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.001121/0.3472, allocations: 0.6423 MB / 399.1 MB, free: 44.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3473, allocations: 9.188 kB / 399.1 MB, free: 44.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.287e-05/0.3474, allocations: 39.59 kB / 399.1 MB, free: 44.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.3477, allocations: 329.4 kB / 399.5 MB, free: 44.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.911e-05/0.3477, allocations: 23.78 kB / 399.5 MB, free: 44.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.992e-05/0.3478, allocations: 26.97 kB / 399.5 MB, free: 44.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.349, allocations: 0.7533 MB / 400.3 MB, free: 43.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.3491, allocations: 5.094 kB / 400.3 MB, free: 43.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.456e-05/0.3491, allocations: 11.16 kB / 400.3 MB, free: 43.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.3491, allocations: 6.375 kB / 400.3 MB, free: 43.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005932/0.3497, allocations: 213.8 kB / 400.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008441/0.3506, allocations: 0.7641 MB / 401.2 MB, free: 43.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.3516, allocations: 0.6297 MB / 401.9 MB, free: 42.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.3521, allocations: 270 kB / 402.1 MB, free: 42.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006848/0.3528, allocations: 0.5948 MB / 402.7 MB, free: 41.81 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.3529, allocations: 42 kB / 402.8 MB, free: 41.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=52): time 3.106e-06/0.3529, allocations: 1.188 kB / 402.8 MB, free: 41.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.001278/0.3542, allocations: 0.5202 MB / 403.3 MB, free: 41.51 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.291e-05/0.3543, allocations: 209.7 kB / 403.5 MB, free: 41.28 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.3545, allocations: 247.5 kB / 403.7 MB, free: 41.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.3545, allocations: 39.17 kB / 403.8 MB, free: 41.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.11e-05/0.3546, allocations: 156.7 kB / 403.9 MB, free: 40.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.3547, allocations: 53.64 kB / 404 MB, free: 40.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.3548, allocations: 83.25 kB / 404.1 MB, free: 40.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.328e-05/0.3549, allocations: 342.5 kB / 404.4 MB, free: 40.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.355, allocations: 91.94 kB / 404.5 MB, free: 40.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003404/0.3554, allocations: 430.4 kB / 404.9 MB, free: 39.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005035/0.3559, allocations: 0.5296 MB / 405.4 MB, free: 39.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.393e-06/0.3559, allocations: 4.625 kB / 405.4 MB, free: 39.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007991/0.3567, allocations: 498.3 kB / 405.9 MB, free: 39.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.3568, allocations: 14.33 kB / 406 MB, free: 39.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.3568, allocations: 12.25 kB / 406 MB, free: 39.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.289e-05/0.3568, allocations: 15.81 kB / 406 MB, free: 39.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/0.3572, allocations: 122.3 kB / 406.1 MB, free: 39.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.931e-05/0.3572, allocations: 23.36 kB / 406.1 MB, free: 39.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.3575, allocations: 56.58 kB / 406.2 MB, free: 39.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.3576, allocations: 30.28 kB / 406.2 MB, free: 39 MB / 318.1 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 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000189/0.3578, allocations: 183.8 kB / 406.4 MB, free: 38.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006627/0.3584, allocations: 352.8 kB / 406.7 MB, free: 38.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008027/0.3592, allocations: 355.8 kB / 407.1 MB, free: 38.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.3593, allocations: 5.75 kB / 407.1 MB, free: 38.47 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.3593, allocations: 1.469 kB / 407.1 MB, free: 38.47 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.3593, allocations: 5.453 kB / 407.1 MB, free: 38.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004541/0.3598, allocations: 341.5 kB / 407.4 MB, free: 38.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.3598, allocations: 5.781 kB / 407.4 MB, free: 38.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000439/0.3602, allocations: 104.1 kB / 407.5 MB, free: 38.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.3603, allocations: 3.312 kB / 407.5 MB, free: 38.1 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.014e-05/0.3603, allocations: 15.27 kB / 407.5 MB, free: 38.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.3603, allocations: 3.281 kB / 407.6 MB, free: 38.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.3603, allocations: 5.094 kB / 407.6 MB, free: 38.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.3617, allocations: 0.7774 MB / 408.3 MB, free: 37.47 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.847e-05/0.3618, allocations: 116.5 kB / 408.4 MB, free: 37.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.169e-05/0.3619, allocations: 16.06 kB / 408.5 MB, free: 37.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.3621, allocations: 27.97 kB / 408.5 MB, free: 37.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.3622, allocations: 7.938 kB / 408.5 MB, free: 37.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.3622, allocations: 19.98 kB / 408.5 MB, free: 37.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001395/0.3623, allocations: 182 kB / 408.7 MB, free: 37.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3624, allocations: 0 / 408.7 MB, free: 37.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005221/0.3629, allocations: 68 kB / 408.8 MB, free: 37.02 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001832/0.3631, allocations: 127.2 kB / 408.9 MB, free: 36.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000762/0.3638, allocations: 392.3 kB / 409.3 MB, free: 36.51 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3639, allocations: 0 / 409.3 MB, free: 36.51 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.213e-05/0.364, allocations: 27.92 kB / 409.3 MB, free: 36.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.365, allocations: 313.6 kB / 409.6 MB, free: 36.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.3663, allocations: 0.747 MB / 410.3 MB, free: 35.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.3666, allocations: 0.8042 MB / 411.2 MB, free: 34.56 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.3667, allocations: 47.25 kB / 411.2 MB, free: 34.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.937e-05/0.3668, allocations: 31.44 kB / 411.2 MB, free: 34.48 MB / 318.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3668, allocations: 0 / 411.2 MB, free: 34.48 MB / 318.1 MB Notification: Performance of Templates: time 0.008445/0.3752, allocations: 4.582 MB / 415.8 MB, free: 29.93 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)