Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.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.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") [: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.001605/0.001605, allocations: 175.9 kB / 8.193 MB, free: 2.184 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.782/1.782, 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.001327/0.001327, allocations: 91.58 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.0985/0.0985, allocations: 12.6 MB / 322.4 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.819e-06/9.998e-06, allocations: 4 kB / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0837/0.08373, allocations: 50.36 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2875/0.3713, allocations: 81.12 MB / 0.4979 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.3716, allocations: 60.72 kB / 0.498 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02347/0.395, allocations: 5.418 MB / 0.5033 GB, free: 11.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.782e-05/0.3951, allocations: 7.656 kB / 0.5033 GB, free: 11.07 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006635/0.3958, allocations: 0.4906 MB / 0.5037 GB, free: 10.6 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.3958, allocations: 7.875 kB / 0.5038 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.457e-05/0.3959, allocations: 23.28 kB / 0.5038 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000554/0.3965, allocations: 282.2 kB / 0.504 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.3965, allocations: 7.969 kB / 0.5041 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.3966, allocations: 11.86 kB / 0.5041 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001777/0.3968, allocations: 53.61 kB / 0.5041 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003391/0.3971, allocations: 155.8 kB / 0.5043 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.3972, allocations: 0 / 0.5043 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.3972, allocations: 0 / 0.5043 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.3972, allocations: 3.984 kB / 0.5043 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000705/0.3979, allocations: 397.4 kB / 0.5046 GB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.3982, allocations: 110.9 kB / 0.5048 GB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3983, allocations: 53.17 kB / 0.5048 GB, free: 9.836 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.3984, allocations: 7.938 kB / 0.5048 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001507/0.3985, allocations: 78.77 kB / 0.5049 GB, free: 9.773 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.635e-06/0.3985, allocations: 0 / 0.5049 GB, free: 9.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003994/0.399, allocations: 126.8 kB / 0.505 GB, free: 9.715 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.399, allocations: 135.6 kB / 0.5051 GB, free: 9.559 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004567/0.3995, allocations: 285.2 kB / 0.5054 GB, free: 9.438 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.3995, allocations: 33.55 kB / 0.5054 GB, free: 9.402 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.3996, allocations: 154.5 kB / 0.5056 GB, free: 9.25 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.184e-05/0.3996, allocations: 29.36 kB / 0.5056 GB, free: 9.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.3997, allocations: 0 / 0.5056 GB, free: 9.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.79e-05/0.3997, allocations: 322.2 kB / 0.5059 GB, free: 8.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.112e-05/0.3998, allocations: 31.98 kB / 0.506 GB, free: 8.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.4, allocations: 119.4 kB / 0.5061 GB, free: 8.816 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.4001, allocations: 36.39 kB / 0.5061 GB, free: 8.812 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.4002, allocations: 0 / 0.5061 GB, free: 8.812 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003219/0.4005, allocations: 137.8 kB / 0.5062 GB, free: 8.754 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.4005, allocations: 10.28 kB / 0.5062 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.4005, allocations: 3.938 kB / 0.5062 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.4006, allocations: 3.844 kB / 0.5063 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.4008, allocations: 29.77 kB / 0.5063 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.4008, allocations: 0 / 0.5063 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.4009, allocations: 11.69 kB / 0.5063 GB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.401, allocations: 7.688 kB / 0.5063 GB, free: 8.734 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.triggeredBooleanSampler.y,triggeredBooleanSampler.y,$whenCondition2,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToTrigger.y2,$CLKPRE.ClockedSignalToTrigger.y2,$whenCondition1,ClockedSignalToTrigger.y,$PRE.ClockedSignalToTrigger.y3,ClockedSignalToTrigger.y3,ClockedSignalToTrigger.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 9.195e-05/0.4011, allocations: 43.52 kB / 0.5063 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.4012, allocations: 68 kB / 0.5064 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.4016, allocations: 124.5 kB / 0.5065 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.4016, allocations: 0 / 0.5065 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.4016, allocations: 4 kB / 0.5065 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.4016, allocations: 3.906 kB / 0.5065 GB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006775/0.4023, allocations: 451.4 kB / 0.507 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4023, allocations: 4 kB / 0.507 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.4025, allocations: 19.53 kB / 0.507 GB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.4025, allocations: 0 / 0.507 GB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.4025, allocations: 3.984 kB / 0.507 GB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4025, allocations: 3.688 kB / 0.507 GB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4025, allocations: 0 / 0.507 GB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003168/0.4029, allocations: 249.9 kB / 0.5072 GB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.154e-05/0.403, allocations: 108 kB / 0.5073 GB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.22e-05/0.403, allocations: 7.672 kB / 0.5073 GB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.4032, allocations: 7.75 kB / 0.5073 GB, free: 7.941 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.4033, allocations: 11.48 kB / 0.5074 GB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.4033, allocations: 3.688 kB / 0.5074 GB, free: 7.938 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003156/0.4037, allocations: 228.8 kB / 0.5076 GB, free: 7.836 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000448/0.4041, allocations: 57.86 kB / 0.5076 GB, free: 7.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (sample1.y,ClockedSignalToTrigger.u,ClockedSignalToTrigger.y2,ClockedSignalToTrigger.y,$whenCondition2,$whenCondition1,ClockedSignalToTrigger.y3,triggeredBooleanSampler.y,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 3 (integerTable.combiTimeTable.nextTimeEvent,ClockedSignalToTrigger.y3,integerTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008398/0.405, allocations: 340.3 kB / 0.508 GB, free: 7.562 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003529/0.4053, allocations: 107 kB / 0.5081 GB, free: 7.547 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.4054, allocations: 0 / 0.5081 GB, free: 7.547 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.4055, allocations: 34.25 kB / 0.5081 GB, free: 7.547 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000555/0.406, allocations: 42.34 kB / 0.5081 GB, free: 7.539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000852/0.4069, allocations: 330.9 kB / 0.5085 GB, free: 7.344 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003376/0.4073, allocations: 0.778 MB / 0.5092 GB, free: 6.605 MB / 330.7 MB Notification: Performance of SimCode: time 1.373e-06/0.4073, allocations: 0 / 0.5092 GB, free: 6.605 MB / 330.7 MB Notification: Performance of Templates: time 0.008/0.4153, allocations: 3.141 MB / 0.5123 GB, free: 5.027 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe 2>&1)