Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",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 trunk/package.mo): time 0.001212/0.001212, allocations: 195.5 kB / 8.537 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009286/0.0009287, allocations: 91.3 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1138/0.1147, allocations: 56.9 MB / 343.2 MB, free: 8.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.2149, allocations: 51.47 MB / 394.7 MB, free: 4.977 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2427/0.4576, allocations: 77.6 MB / 472.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.4579, allocations: 86.23 kB / 472.4 MB, free: 13.81 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.005069/0.463, allocations: 1.833 MB / 474.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.463, allocations: 8 kB / 474.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.4632, allocations: 27.23 kB / 474.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001788/0.4634, allocations: 196.6 kB / 474.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.4634, allocations: 0 / 474.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.4634, allocations: 4 kB / 474.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000107/0.4636, allocations: 36.41 kB / 474.5 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.4638, allocations: 124.7 kB / 474.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.4638, allocations: 4 kB / 474.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.4638, allocations: 1.125 kB / 474.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.4638, allocations: 0 / 474.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003853/0.4642, allocations: 274.8 kB / 474.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.4644, allocations: 147.1 kB / 475 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.661e-05/0.4644, allocations: 28.72 kB / 475.1 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.4645, allocations: 4 kB / 475.1 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.085e-05/0.4645, allocations: 59.12 kB / 475.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.4645, allocations: 4 kB / 475.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001758/0.4647, allocations: 76.33 kB / 475.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.4648, allocations: 84.39 kB / 475.3 MB, free: 11.56 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.346e-05/0.4649, allocations: 123.4 kB / 475.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.4649, allocations: 29.7 kB / 475.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.519e-05/0.4649, allocations: 85.58 kB / 475.5 MB, free: 11.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.4649, allocations: 22.97 kB / 475.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.4649, allocations: 0 / 475.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.712e-05/0.465, allocations: 318.5 kB / 475.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.014e-05/0.465, allocations: 15.69 kB / 475.9 MB, free: 10.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.205e-05/0.4651, allocations: 55.28 kB / 475.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.184e-05/0.4651, allocations: 22.88 kB / 475.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4651, allocations: 0 / 475.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000131/0.4653, allocations: 99.8 kB / 476 MB, free: 10.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.4653, allocations: 5.875 kB / 476 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.4653, allocations: 3.984 kB / 476 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.4653, allocations: 7.906 kB / 476.1 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.054e-05/0.4654, allocations: 19.31 kB / 476.1 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.4654, allocations: 1.172 kB / 476.1 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.979e-05/0.4655, allocations: 8 kB / 476.1 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.4655, allocations: 4 kB / 476.1 MB, free: 10.79 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 6.023e-05/0.4656, allocations: 112 kB / 476.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.393e-05/0.4656, allocations: 51.78 kB / 476.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.888e-05/0.4657, allocations: 15.33 kB / 476.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.4657, allocations: 0 / 476.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4657, allocations: 4 kB / 476.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4657, allocations: 0 / 476.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002112/0.4659, allocations: 307.7 kB / 476.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4659, allocations: 7.281 kB / 476.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.801e-05/0.466, allocations: 14.66 kB / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.466, allocations: 0 / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.466, allocations: 0 / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.4661, allocations: 4 kB / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4661, allocations: 0 / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001269/0.4662, allocations: 198.7 kB / 476.8 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001552/0.4664, allocations: 0.5594 MB / 477.3 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.716e-05/0.4664, allocations: 98.52 kB / 477.4 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.4664, allocations: 7.312 kB / 477.4 MB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.147e-05/0.4665, allocations: 0 / 477.4 MB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/0.4666, allocations: 11.33 kB / 477.5 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.4666, allocations: 0 / 477.5 MB, free: 9.414 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.786e-05/0.4666, allocations: 108.4 kB / 477.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008103/0.4675, allocations: 15.94 kB / 477.6 MB, free: 9.305 MB / 346.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: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001227/0.4676, allocations: 102.6 kB / 477.7 MB, free: 9.199 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.4677, allocations: 46.5 kB / 477.7 MB, free: 9.164 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.4677, allocations: 0 / 477.7 MB, free: 9.164 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.507e-05/0.4678, allocations: 17.88 kB / 477.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.4681, allocations: 26.11 kB / 477.8 MB, free: 9.137 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000295/0.4684, allocations: 121.6 kB / 477.9 MB, free: 9.012 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.4686, allocations: 0.7234 MB / 478.6 MB, free: 8.281 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4686, allocations: 3.938 kB / 478.6 MB, free: 8.277 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1)