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/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_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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 188.8 kB / 7.845 MB, free: 2.469 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.199/1.199, allocations: 205.2 MB / 213.5 MB, free: 13.86 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.001006/0.001007, allocations: 87.89 kB / 261.5 MB, free: 13.55 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.06209/0.06209, allocations: 12.59 MB / 322 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.36e-06/5.4e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07647/0.07649, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2488/0.3254, allocations: 80.88 MB / 0.4977 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.3257, allocations: 65.83 kB / 0.4978 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01913/0.3449, allocations: 6.89 MB / 0.5045 GB, free: 10.37 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.3449, allocations: 7.531 kB / 0.5045 GB, free: 10.37 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.0007383/0.3457, allocations: 0.5807 MB / 0.5051 GB, free: 9.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.3457, allocations: 8 kB / 0.5051 GB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.57e-05/0.3458, allocations: 46.22 kB / 0.5051 GB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.3464, allocations: 347.2 kB / 0.5054 GB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.3464, allocations: 11.62 kB / 0.5055 GB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.252e-05/0.3464, allocations: 23.34 kB / 0.5055 GB, free: 9.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002776/0.3467, allocations: 147.6 kB / 0.5056 GB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008143/0.3475, allocations: 0.6022 MB / 0.5062 GB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.3476, allocations: 3.938 kB / 0.5062 GB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.3476, allocations: 7.938 kB / 0.5062 GB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3476, allocations: 7.688 kB / 0.5062 GB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007005/0.3483, allocations: 0.7068 MB / 0.5069 GB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006/0.349, allocations: 0.5023 MB / 0.5074 GB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.3492, allocations: 204.5 kB / 0.5076 GB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004696/0.3497, allocations: 0.5859 MB / 0.5082 GB, free: 7.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.3497, allocations: 41.91 kB / 0.5082 GB, free: 7.625 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 2.535e-06/0.3497, allocations: 0 / 0.5082 GB, free: 7.625 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.0005647/0.3503, allocations: 297.7 kB / 0.5085 GB, free: 7.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.626e-05/0.3504, allocations: 177.1 kB / 0.5087 GB, free: 7.344 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.3507, allocations: 205.5 kB / 0.5089 GB, free: 7.227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.3507, allocations: 30.22 kB / 0.5089 GB, free: 7.191 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.493e-05/0.3507, allocations: 124.3 kB / 0.509 GB, free: 7.082 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.3508, allocations: 44.48 kB / 0.509 GB, free: 7.059 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.979e-06/0.3508, allocations: 3.938 kB / 0.5091 GB, free: 7.055 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.451e-05/0.3509, allocations: 349.9 kB / 0.5094 GB, free: 6.727 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.351, allocations: 59.22 kB / 0.5094 GB, free: 6.727 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.3513, allocations: 395.3 kB / 0.5098 GB, free: 6.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.3515, allocations: 139.5 kB / 0.51 GB, free: 6.223 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.902e-06/0.3515, allocations: 4.125 kB / 0.51 GB, free: 6.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005561/0.352, allocations: 382.2 kB / 0.5103 GB, free: 6.078 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3521, allocations: 8.531 kB / 0.5103 GB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.3521, allocations: 11.25 kB / 0.5103 GB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.572e-05/0.3521, allocations: 17.91 kB / 0.5104 GB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.3525, allocations: 129.5 kB / 0.5105 GB, free: 6.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.324e-05/0.3525, allocations: 24.02 kB / 0.5105 GB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.3528, allocations: 41.33 kB / 0.5105 GB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.3528, allocations: 30.09 kB / 0.5106 GB, free: 6.02 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 () * 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.0001135/0.353, allocations: 138.7 kB / 0.5107 GB, free: 5.891 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004876/0.3535, allocations: 274.1 kB / 0.511 GB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004967/0.354, allocations: 295.6 kB / 0.5112 GB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.354, allocations: 5.375 kB / 0.5113 GB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.354, allocations: 2.062 kB / 0.5113 GB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.354, allocations: 5.016 kB / 0.5113 GB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002725/0.3543, allocations: 271.6 kB / 0.5115 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.3543, allocations: 2.219 kB / 0.5115 GB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004268/0.3547, allocations: 110 kB / 0.5116 GB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.3547, allocations: 3.219 kB / 0.5116 GB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.3548, allocations: 5.156 kB / 0.5116 GB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.3548, allocations: 11.34 kB / 0.5116 GB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3548, allocations: 3.906 kB / 0.5116 GB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007484/0.3556, allocations: 0.6748 MB / 0.5123 GB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-05/0.3556, allocations: 123.6 kB / 0.5124 GB, free: 4.988 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.695e-05/0.3557, allocations: 8.594 kB / 0.5124 GB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.3559, allocations: 18.83 kB / 0.5125 GB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.356, allocations: 8.922 kB / 0.5125 GB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.356, allocations: 13.41 kB / 0.5125 GB, free: 4.977 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001312/0.3562, allocations: 167.7 kB / 0.5126 GB, free: 4.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005129/0.3567, allocations: 66.25 kB / 0.5127 GB, free: 4.871 MB / 330.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.0001661/0.3569, allocations: 114 kB / 0.5128 GB, free: 4.777 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004702/0.3573, allocations: 275.8 kB / 0.5131 GB, free: 4.734 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3574, allocations: 4.062 kB / 0.5131 GB, free: 4.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.286e-05/0.3574, allocations: 17.19 kB / 0.5131 GB, free: 4.727 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007425/0.3581, allocations: 252.4 kB / 0.5133 GB, free: 4.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.3594, allocations: 0.5465 MB / 0.5139 GB, free: 4.348 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/0.3597, allocations: 0.8522 MB / 0.5147 GB, free: 3.582 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3597, allocations: 0 / 0.5147 GB, free: 3.582 MB / 330.7 MB Notification: Performance of Templates: time 0.007269/0.367, allocations: 3.724 MB / 0.5183 GB, free: 1.781 MB / 330.7 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)