Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.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.TestClockedIntegerToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger",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.002965/0.002964, allocations: 187.6 kB / 7.843 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 2.208/2.208, allocations: 205.2 MB / 213.4 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.001324/0.001323, allocations: 93.66 kB / 261.5 MB, free: 13.65 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.1107/0.1107, allocations: 12.59 MB / 322 MB, free: 1.008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3025/0.4133, allocations: 56.5 MB / 378.5 MB, free: 75.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.512, allocations: 50.38 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3402/0.8522, allocations: 81.11 MB / 0.498 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/0.8525, allocations: 63.27 kB / 0.4981 GB, free: 11.91 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.02762/0.8801, allocations: 5.91 MB / 0.5039 GB, free: 10.71 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.8802, allocations: 11.34 kB / 0.5039 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.989e-05/0.8803, allocations: 22.94 kB / 0.5039 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000558/0.8809, allocations: 280.4 kB / 0.5042 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.8809, allocations: 3.812 kB / 0.5042 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.881, allocations: 15.48 kB / 0.5042 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001804/0.8812, allocations: 48.95 kB / 0.5042 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003485/0.8815, allocations: 159.8 kB / 0.5044 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.8815, allocations: 3.984 kB / 0.5044 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.8816, allocations: 3.688 kB / 0.5044 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.8816, allocations: 0 / 0.5044 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007272/0.8823, allocations: 400.6 kB / 0.5048 GB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.8826, allocations: 113.8 kB / 0.5049 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.8827, allocations: 50.23 kB / 0.5049 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.8828, allocations: 3.75 kB / 0.5049 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.883, allocations: 79.86 kB / 0.505 GB, free: 9.883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.846e-06/0.883, allocations: 3.938 kB / 0.505 GB, free: 9.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006136/0.8836, allocations: 126.4 kB / 0.5051 GB, free: 9.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/0.8837, allocations: 132.5 kB / 0.5053 GB, free: 9.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007829/0.8845, allocations: 288.7 kB / 0.5055 GB, free: 9.539 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.015e-05/0.8846, allocations: 25.7 kB / 0.5056 GB, free: 9.508 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.884e-05/0.8847, allocations: 102.3 kB / 0.5056 GB, free: 9.418 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/0.8848, allocations: 33.16 kB / 0.5057 GB, free: 9.398 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.232e-05/0.8848, allocations: 0 / 0.5057 GB, free: 9.398 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.885, allocations: 341.9 kB / 0.506 GB, free: 9.074 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.8851, allocations: 30.53 kB / 0.506 GB, free: 9.074 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.8854, allocations: 118.9 kB / 0.5062 GB, free: 8.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.8856, allocations: 42.08 kB / 0.5062 GB, free: 8.973 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.8857, allocations: 0 / 0.5062 GB, free: 8.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006165/0.8863, allocations: 151.3 kB / 0.5063 GB, free: 8.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.8863, allocations: 3.844 kB / 0.5063 GB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.8864, allocations: 3.844 kB / 0.5063 GB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.987e-05/0.8864, allocations: 0 / 0.5063 GB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003313/0.8868, allocations: 31.05 kB / 0.5064 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.8868, allocations: 0 / 0.5064 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.8871, allocations: 15.83 kB / 0.5064 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.8872, allocations: 3.781 kB / 0.5064 GB, free: 8.891 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 0.0002113/0.8874, allocations: 130.3 kB / 0.5065 GB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002802/0.8877, allocations: 60.62 kB / 0.5066 GB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000648/0.8884, allocations: 126.6 kB / 0.5067 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.8884, allocations: 0 / 0.5067 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.8885, allocations: 3.984 kB / 0.5067 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.8885, allocations: 3.953 kB / 0.5067 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.8896, allocations: 459.9 kB / 0.5071 GB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.8896, allocations: 0 / 0.5071 GB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002057/0.8898, allocations: 15.5 kB / 0.5072 GB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.214e-05/0.8899, allocations: 3.984 kB / 0.5072 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.369e-05/0.8899, allocations: 0 / 0.5072 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.8899, allocations: 3.844 kB / 0.5072 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.89, allocations: 0 / 0.5072 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006484/0.8906, allocations: 254.1 kB / 0.5074 GB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007128/0.8914, allocations: 0.6154 MB / 0.508 GB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.8916, allocations: 112.1 kB / 0.5081 GB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.8917, allocations: 7.938 kB / 0.5081 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.8921, allocations: 7.828 kB / 0.5081 GB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.8922, allocations: 7.828 kB / 0.5081 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.014e-05/0.8923, allocations: 7.594 kB / 0.5081 GB, free: 7.457 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0005875/0.8929, allocations: 226 kB / 0.5084 GB, free: 7.359 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002747/0.8957, allocations: 62.17 kB / 0.5084 GB, free: 7.344 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.001428/0.8972, allocations: 344.3 kB / 0.5087 GB, free: 7.082 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005532/0.8977, allocations: 108 kB / 0.5088 GB, free: 7.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.8978, allocations: 0 / 0.5088 GB, free: 7.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002135/0.898, allocations: 37.34 kB / 0.5089 GB, free: 7.066 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008927/0.8989, allocations: 46.77 kB / 0.5089 GB, free: 7.055 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.9002, allocations: 286.3 kB / 0.5092 GB, free: 6.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004611/0.9006, allocations: 0.7823 MB / 0.51 GB, free: 6.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.523e-06/0.9007, allocations: 0 / 0.51 GB, free: 6.16 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe 2>&1)