Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002491/0.002497, allocations: 172.6 kB / 8.188 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.752/1.752, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001234/0.001234, allocations: 88.33 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09535/0.09535, allocations: 12.59 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.474e-06/7.494e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08276/0.08279, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2893/0.3722, allocations: 80.87 MB / 0.4977 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.3724, allocations: 63.81 kB / 0.4977 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02949/0.4019, allocations: 6.894 MB / 0.5045 GB, free: 10.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.17e-05/0.402, allocations: 3.844 kB / 0.5045 GB, free: 10.46 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.001072/0.4031, allocations: 0.5826 MB / 0.505 GB, free: 9.965 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.4032, allocations: 7.812 kB / 0.505 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.4033, allocations: 42.66 kB / 0.5051 GB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007828/0.4041, allocations: 352.5 kB / 0.5054 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.4041, allocations: 15.12 kB / 0.5054 GB, free: 9.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.4042, allocations: 15.41 kB / 0.5055 GB, free: 9.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004419/0.4046, allocations: 152.9 kB / 0.5056 GB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.4058, allocations: 0.6019 MB / 0.5062 GB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.4059, allocations: 3.938 kB / 0.5062 GB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/0.4059, allocations: 4 kB / 0.5062 GB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.406, allocations: 7.281 kB / 0.5062 GB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008998/0.4069, allocations: 0.7065 MB / 0.5069 GB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009363/0.4078, allocations: 0.5079 MB / 0.5074 GB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004126/0.4083, allocations: 202.7 kB / 0.5076 GB, free: 8.422 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006781/0.4089, allocations: 0.5908 MB / 0.5082 GB, free: 7.746 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.409, allocations: 37.91 kB / 0.5082 GB, free: 7.707 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 2.916e-06/0.409, allocations: 0 / 0.5082 GB, free: 7.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008819/0.4099, allocations: 302.8 kB / 0.5085 GB, free: 7.621 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.827e-05/0.41, allocations: 173.4 kB / 0.5086 GB, free: 7.426 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.4103, allocations: 204.7 kB / 0.5088 GB, free: 7.309 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.4104, allocations: 29.69 kB / 0.5089 GB, free: 7.273 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.689e-05/0.4104, allocations: 174.5 kB / 0.509 GB, free: 7.105 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.019e-05/0.4105, allocations: 52 kB / 0.5091 GB, free: 7.078 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.722e-05/0.4105, allocations: 4.531 kB / 0.5091 GB, free: 7.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.594e-05/0.4106, allocations: 329.1 kB / 0.5094 GB, free: 6.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.4108, allocations: 64.14 kB / 0.5095 GB, free: 6.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.4111, allocations: 394.7 kB / 0.5098 GB, free: 6.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.4114, allocations: 130.3 kB / 0.51 GB, free: 6.254 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.4114, allocations: 3.594 kB / 0.51 GB, free: 6.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009426/0.4123, allocations: 370.3 kB / 0.5103 GB, free: 6.117 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.4124, allocations: 7.969 kB / 0.5103 GB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/0.4124, allocations: 15.02 kB / 0.5103 GB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.202e-05/0.4125, allocations: 16.97 kB / 0.5104 GB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006926/0.4132, allocations: 129.9 kB / 0.5105 GB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.578e-05/0.4132, allocations: 27.95 kB / 0.5105 GB, free: 6.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003597/0.4136, allocations: 33.59 kB / 0.5105 GB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.682e-05/0.4136, allocations: 29.31 kB / 0.5106 GB, free: 6.059 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.0001729/0.4138, allocations: 66.89 kB / 0.5106 GB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007838/0.4146, allocations: 275.8 kB / 0.5109 GB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008144/0.4154, allocations: 287.1 kB / 0.5112 GB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.4155, allocations: 4.875 kB / 0.5112 GB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.4155, allocations: 1.531 kB / 0.5112 GB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.4155, allocations: 5.109 kB / 0.5112 GB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004137/0.4159, allocations: 282.2 kB / 0.5115 GB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/0.4159, allocations: 1.281 kB / 0.5115 GB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008222/0.4168, allocations: 112.2 kB / 0.5116 GB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.4168, allocations: 3 kB / 0.5116 GB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.425e-05/0.4169, allocations: 2.594 kB / 0.5116 GB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.4169, allocations: 6.094 kB / 0.5116 GB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.4169, allocations: 9.516 kB / 0.5116 GB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00121/0.4181, allocations: 0.6783 MB / 0.5122 GB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.069e-05/0.4182, allocations: 112.3 kB / 0.5123 GB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.824e-05/0.4183, allocations: 11.55 kB / 0.5124 GB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004457/0.4188, allocations: 26.08 kB / 0.5124 GB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/0.4188, allocations: 3.156 kB / 0.5124 GB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.601e-05/0.4189, allocations: 21.05 kB / 0.5124 GB, free: 5.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002179/0.4191, allocations: 162.1 kB / 0.5126 GB, free: 4.996 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007297/0.4199, allocations: 66.22 kB / 0.5126 GB, free: 4.984 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.0002211/0.4201, allocations: 114.1 kB / 0.5127 GB, free: 4.887 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006996/0.4208, allocations: 272.4 kB / 0.513 GB, free: 4.848 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4208, allocations: 1.062 kB / 0.513 GB, free: 4.848 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.651e-05/0.4209, allocations: 22.34 kB / 0.513 GB, free: 4.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.4221, allocations: 255 kB / 0.5133 GB, free: 4.766 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.4242, allocations: 0.5813 MB / 0.5138 GB, free: 4.426 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.4247, allocations: 0.852 MB / 0.5147 GB, free: 3.66 MB / 330.7 MB Notification: Performance of SimCode: time 1.173e-06/0.4247, allocations: 0 / 0.5147 GB, free: 3.66 MB / 330.7 MB Notification: Performance of Templates: time 0.01018/0.4349, allocations: 4.32 MB / 0.5189 GB, free: 1.516 MB / 330.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)