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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",fmuType="me",version="2.0",platforms={"static"}) [: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.001863/0.001868, allocations: 187 kB / 7.843 MB, free: 2.516 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.91/1.91, allocations: 205.2 MB / 213.5 MB, free: 13.94 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.002478/0.002477, allocations: 84.78 kB / 261.5 MB, free: 13.63 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.1375/0.1375, allocations: 12.59 MB / 322 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2735/0.411, allocations: 56.5 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.5246, allocations: 50.37 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3738/0.8984, allocations: 80.88 MB / 0.4978 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.8989, allocations: 61.53 kB / 0.4979 GB, free: 11.94 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.03942/0.9383, allocations: 7.472 MB / 0.5052 GB, free: 10.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.9384, allocations: 7.688 kB / 0.5052 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.9385, allocations: 46.41 kB / 0.5052 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008824/0.9394, allocations: 357.4 kB / 0.5055 GB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.9394, allocations: 11.72 kB / 0.5056 GB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.572e-05/0.9395, allocations: 15.5 kB / 0.5056 GB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004628/0.94, allocations: 153 kB / 0.5057 GB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.9412, allocations: 0.6121 MB / 0.5063 GB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.9413, allocations: 0 / 0.5063 GB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.038e-05/0.9413, allocations: 0 / 0.5063 GB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.9414, allocations: 7.781 kB / 0.5063 GB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009762/0.9423, allocations: 0.7074 MB / 0.507 GB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.9434, allocations: 0.5051 MB / 0.5075 GB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/0.9439, allocations: 206.1 kB / 0.5077 GB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007164/0.9446, allocations: 0.58 MB / 0.5083 GB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.9446, allocations: 44.75 kB / 0.5083 GB, free: 7.918 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.807e-06/0.9446, allocations: 0 / 0.5083 GB, free: 7.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.001028/0.9457, allocations: 304.8 kB / 0.5086 GB, free: 7.828 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.9458, allocations: 169.1 kB / 0.5088 GB, free: 7.637 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003729/0.9462, allocations: 204.7 kB / 0.509 GB, free: 7.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.9463, allocations: 27.11 kB / 0.509 GB, free: 7.488 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.192e-05/0.9463, allocations: 127.2 kB / 0.5091 GB, free: 7.375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.916e-05/0.9464, allocations: 50.3 kB / 0.5092 GB, free: 7.348 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/0.9464, allocations: 0 / 0.5092 GB, free: 7.348 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.863e-05/0.9465, allocations: 350.2 kB / 0.5095 GB, free: 7.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.9467, allocations: 64.47 kB / 0.5095 GB, free: 7.016 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.9471, allocations: 392.6 kB / 0.5099 GB, free: 6.559 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.9474, allocations: 130.2 kB / 0.51 GB, free: 6.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.9475, allocations: 7.688 kB / 0.5101 GB, free: 6.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008839/0.9484, allocations: 386 kB / 0.5104 GB, free: 6.371 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.9484, allocations: 10.44 kB / 0.5104 GB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.9484, allocations: 11.69 kB / 0.5104 GB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.955e-05/0.9485, allocations: 17 kB / 0.5105 GB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006966/0.9492, allocations: 121.5 kB / 0.5106 GB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.368e-05/0.9492, allocations: 22.3 kB / 0.5106 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004163/0.9496, allocations: 46.17 kB / 0.5106 GB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.302e-05/0.9497, allocations: 30.5 kB / 0.5107 GB, free: 6.312 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.0001822/0.9499, allocations: 133.8 kB / 0.5108 GB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007568/0.9507, allocations: 276.2 kB / 0.5111 GB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008571/0.9515, allocations: 300.1 kB / 0.5113 GB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.9516, allocations: 4.844 kB / 0.5114 GB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.9516, allocations: 1.344 kB / 0.5114 GB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.9516, allocations: 1.312 kB / 0.5114 GB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004358/0.9521, allocations: 281 kB / 0.5116 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.9521, allocations: 1.344 kB / 0.5116 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000849/0.9529, allocations: 107.3 kB / 0.5117 GB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.953, allocations: 2.625 kB / 0.5117 GB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.953, allocations: 6.141 kB / 0.5117 GB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.953, allocations: 2.969 kB / 0.5117 GB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.953, allocations: 8.938 kB / 0.5117 GB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001234/0.9543, allocations: 0.6759 MB / 0.5124 GB, free: 5.41 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002381/0.9567, allocations: 1.193 MB / 0.5136 GB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.9569, allocations: 111.6 kB / 0.5137 GB, free: 4.578 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.9571, allocations: 15.77 kB / 0.5137 GB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000774/0.9579, allocations: 22.52 kB / 0.5137 GB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.958, allocations: 6.641 kB / 0.5137 GB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.083e-05/0.9581, allocations: 18.22 kB / 0.5137 GB, free: 4.555 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003663/0.9584, allocations: 161.2 kB / 0.5139 GB, free: 4.469 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003922/0.9624, allocations: 62.34 kB / 0.514 GB, free: 4.461 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.0005244/0.963, allocations: 118.7 kB / 0.5141 GB, free: 4.363 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.9644, allocations: 282.1 kB / 0.5143 GB, free: 4.316 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.9645, allocations: 0 / 0.5143 GB, free: 4.316 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.592e-05/0.9646, allocations: 20.75 kB / 0.5144 GB, free: 4.312 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/0.9666, allocations: 249.7 kB / 0.5146 GB, free: 4.238 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.9702, allocations: 0.5416 MB / 0.5151 GB, free: 3.938 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007821/0.971, allocations: 0.8615 MB / 0.516 GB, free: 3.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.653e-06/0.9711, allocations: 1.719 kB / 0.516 GB, free: 3.16 MB / 330.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)