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.003054/0.00306, allocations: 181 kB / 16.44 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.325/4.325, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.001924/0.001924, allocations: 88.88 kB / 270.9 MB, free: 8.363 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.2606/0.2606, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009686/0.0009692, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2197, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.005515/0.2253, allocations: 2.258 MB / 444.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003253/0.2287, allocations: 0.8857 MB / 445.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005389/0.2293, allocations: 11.94 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.2295, allocations: 27.66 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007386/0.2303, allocations: 83.69 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001817/0.2322, allocations: 215.5 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000986/0.2332, allocations: 243.4 kB / 446.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006204/0.2339, allocations: 119.4 kB / 446.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003559/0.2343, allocations: 99.5 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002732/0.2346, allocations: 107.4 kB / 446.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.322e-05/0.2347, allocations: 8 kB / 446.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.2349, allocations: 39.97 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.2351, allocations: 55.75 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.2353, allocations: 73.52 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000635/0.2359, allocations: 275.6 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.609e-06/0.236, allocations: 0 / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.236, allocations: 3.938 kB / 446.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.236, allocations: 0 / 446.8 MB, free: 11.96 MB / 298.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.001978/0.238, allocations: 0.5923 MB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.834e-05/0.2381, allocations: 8.031 kB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.2384, allocations: 43.48 kB / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008617/0.2393, allocations: 314.7 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-05/0.2394, allocations: 24.56 kB / 447.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.632e-05/0.2395, allocations: 28 kB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003287/0.2428, allocations: 0.7714 MB / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.304e-05/0.2429, allocations: 0 / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.86e-05/0.243, allocations: 12 kB / 448.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.2431, allocations: 8 kB / 448.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.2446, allocations: 251.6 kB / 448.9 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.2466, allocations: 0.7721 MB / 449.6 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.2494, allocations: 0.6538 MB / 450.3 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001221/0.2507, allocations: 0.59 MB / 450.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.504e-05/0.2508, allocations: 42.34 kB / 450.9 MB, free: 7.457 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 6.813e-06/0.2508, allocations: 0 / 450.9 MB, free: 7.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.003341/0.2542, allocations: 0.6399 MB / 451.6 MB, free: 6.793 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002789/0.2545, allocations: 211.8 kB / 451.8 MB, free: 6.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007296/0.2553, allocations: 250.6 kB / 452 MB, free: 6.289 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.2554, allocations: 37.7 kB / 452 MB, free: 6.246 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001863/0.2557, allocations: 211.2 kB / 452.3 MB, free: 6.039 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.2558, allocations: 51.72 kB / 452.3 MB, free: 5.988 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.2559, allocations: 11.94 kB / 452.3 MB, free: 5.977 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.256, allocations: 334.8 kB / 452.6 MB, free: 5.641 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006302/0.2567, allocations: 89.06 kB / 452.7 MB, free: 5.555 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007724/0.2575, allocations: 439 kB / 453.2 MB, free: 4.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007529/0.2583, allocations: 160.2 kB / 453.3 MB, free: 4.801 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.618e-05/0.2584, allocations: 4 kB / 453.3 MB, free: 4.797 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001941/0.2604, allocations: 497.1 kB / 453.8 MB, free: 4.305 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.058e-05/0.2605, allocations: 12 kB / 453.8 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-05/0.2605, allocations: 12 kB / 453.8 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.333e-05/0.2606, allocations: 16 kB / 453.8 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008937/0.2615, allocations: 120.5 kB / 454 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.523e-05/0.2616, allocations: 27.88 kB / 454 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008139/0.2624, allocations: 51.67 kB / 454 MB, free: 4.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.313e-05/0.2626, allocations: 32 kB / 454.1 MB, free: 4.039 MB / 298.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.000481/0.2631, allocations: 189.5 kB / 454.3 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001612/0.2647, allocations: 361.9 kB / 454.6 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.2666, allocations: 368.7 kB / 455 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/0.2667, allocations: 4 kB / 455 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.921e-05/0.2668, allocations: 8 kB / 455 MB, free: 3.105 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/0.2668, allocations: 3.984 kB / 455 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009451/0.2678, allocations: 341 kB / 455.3 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.01e-05/0.2678, allocations: 8 kB / 455.3 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/0.2691, allocations: 103.9 kB / 455.4 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.875e-05/0.2692, allocations: 4 kB / 455.4 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-05/0.2693, allocations: 11.98 kB / 455.4 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.809e-06/0.2693, allocations: 0 / 455.4 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.2693, allocations: 4 kB / 455.4 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003292/0.2726, allocations: 0.8423 MB / 456.3 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.2729, allocations: 120.5 kB / 456.4 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.273, allocations: 12 kB / 456.4 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007881/0.2739, allocations: 40.03 kB / 456.5 MB, free: 1.516 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.903e-05/0.274, allocations: 7.953 kB / 456.5 MB, free: 1.508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.153e-05/0.2741, allocations: 15.98 kB / 456.5 MB, free: 1.492 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003974/0.2745, allocations: 178 kB / 456.7 MB, free: 1.316 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.2746, allocations: 0 / 456.7 MB, free: 1.316 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001614/0.2762, allocations: 76 kB / 456.7 MB, free: 1.242 MB / 298.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.0003624/0.2766, allocations: 131.1 kB / 456.9 MB, free: 1.105 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006044/0.2827, allocations: 376.9 kB / 457.2 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.2828, allocations: 0.5 kB / 457.2 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.283, allocations: 31.98 kB / 457.3 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.2852, allocations: 315 kB / 457.6 MB, free: 408 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003785/0.289, allocations: 0.9123 MB / 458.5 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009127/0.2982, allocations: 0.8278 MB / 459.3 MB, free: 14.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/0.2986, allocations: 27.44 kB / 459.3 MB, free: 14.56 MB / 314.7 MB Notification: Performance of SimCode: time 1.974e-06/0.2987, allocations: 0 / 459.3 MB, free: 14.56 MB / 314.7 MB Notification: Performance of Templates: time 0.03607/0.3348, allocations: 4.334 MB / 463.7 MB, free: 10.23 MB / 314.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)