Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger") [: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.001076/0.001077, allocations: 189.7 kB / 7.846 MB, free: 2.508 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.279/1.279, allocations: 205.2 MB / 213.5 MB, free: 13.86 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.0009199/0.0009199, allocations: 99.33 kB / 261.5 MB, free: 13.54 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.07019/0.07019, allocations: 12.59 MB / 322 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.722e-06/6.752e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.08265, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2756/0.3583, allocations: 77.62 MB / 0.4945 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.3586, allocations: 63.72 kB / 0.4946 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003301/0.3619, allocations: 0.9563 MB / 0.4955 GB, free: 11.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.362, allocations: 0 / 0.4955 GB, free: 11.61 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003418/0.3623, allocations: 356.2 kB / 0.4958 GB, free: 11.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3624, allocations: 7.688 kB / 0.4959 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.3624, allocations: 12.69 kB / 0.4959 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.3626, allocations: 180.1 kB / 0.496 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.3626, allocations: 5.438 kB / 0.496 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.3626, allocations: 3.844 kB / 0.496 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000106/0.3627, allocations: 23.47 kB / 0.4961 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.363, allocations: 122.6 kB / 0.4962 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.363, allocations: 3.984 kB / 0.4962 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.363, allocations: 3.906 kB / 0.4962 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.363, allocations: 1.969 kB / 0.4962 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003755/0.3634, allocations: 267.4 kB / 0.4964 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.3636, allocations: 147.1 kB / 0.4966 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.787e-05/0.3637, allocations: 33.33 kB / 0.4966 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.3637, allocations: 3.969 kB / 0.4966 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.633e-05/0.3638, allocations: 60.95 kB / 0.4967 GB, free: 10.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.3638, allocations: 0 / 0.4967 GB, free: 10.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001714/0.3639, allocations: 69.83 kB / 0.4967 GB, free: 10.46 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.364, allocations: 84.33 kB / 0.4968 GB, free: 10.37 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.235e-05/0.3641, allocations: 102.4 kB / 0.4969 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.3641, allocations: 25.7 kB / 0.497 GB, free: 10.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.447e-05/0.3641, allocations: 88.36 kB / 0.497 GB, free: 10.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.3641, allocations: 24.56 kB / 0.4971 GB, free: 10.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-06/0.3642, allocations: 0 / 0.4971 GB, free: 10.15 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.11e-05/0.3642, allocations: 328.9 kB / 0.4974 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.129e-05/0.3643, allocations: 18.28 kB / 0.4974 GB, free: 9.824 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.266e-05/0.3643, allocations: 49.08 kB / 0.4974 GB, free: 9.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.99e-05/0.3644, allocations: 24.98 kB / 0.4975 GB, free: 9.773 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3644, allocations: 0 / 0.4975 GB, free: 9.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001311/0.3645, allocations: 91.83 kB / 0.4975 GB, free: 9.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.3645, allocations: 7.656 kB / 0.4976 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3645, allocations: 0 / 0.4976 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3646, allocations: 5 kB / 0.4976 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.812e-05/0.3647, allocations: 17.52 kB / 0.4976 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.3647, allocations: 3.844 kB / 0.4976 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.571e-05/0.3647, allocations: 4.781 kB / 0.4976 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.3648, allocations: 4.406 kB / 0.4976 GB, free: 9.727 MB / 330.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,ClockedRealToTrigger.y2,$CLKPRE.ClockedRealToTrigger.y2,$whenCondition1,ClockedRealToTrigger.y,$PRE.ClockedRealToTrigger.y3,ClockedRealToTrigger.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 5.56e-05/0.3648, allocations: 113.2 kB / 0.4977 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.923e-05/0.3649, allocations: 47.23 kB / 0.4977 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.3649, allocations: 12.86 kB / 0.4978 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.3649, allocations: 4 kB / 0.4978 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3649, allocations: 0 / 0.4978 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.3649, allocations: 0.75 kB / 0.4978 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.3651, allocations: 292.3 kB / 0.498 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3652, allocations: 0 / 0.498 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.52e-05/0.3652, allocations: 17.47 kB / 0.4981 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3652, allocations: 3.984 kB / 0.4981 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.3653, allocations: 0.5625 kB / 0.4981 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3653, allocations: 4.578 kB / 0.4981 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.3653, allocations: 7.938 kB / 0.4981 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001295/0.3654, allocations: 189.6 kB / 0.4983 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.894e-05/0.3654, allocations: 86.48 kB / 0.4983 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.3655, allocations: 0 / 0.4983 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.832e-05/0.3656, allocations: 5.297 kB / 0.4983 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/0.3656, allocations: 9.312 kB / 0.4983 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-06/0.3656, allocations: 0.8906 kB / 0.4984 GB, free: 9.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.988e-05/0.3656, allocations: 90.84 kB / 0.4984 GB, free: 8.945 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002325/0.3659, allocations: 12.17 kB / 0.4984 GB, free: 8.945 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: 5 (ClockedRealToTrigger.y2,ClockedRealToTrigger.y,$whenCondition1,ClockedRealToTrigger.y3,triggeredSampler.y) * Number of discrete states: 1 (ClockedRealToTrigger.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 9.366e-05/0.366, allocations: 110.9 kB / 0.4986 GB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.3661, allocations: 54 kB / 0.4986 GB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3661, allocations: 0 / 0.4986 GB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.309e-05/0.3661, allocations: 12.09 kB / 0.4986 GB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.3664, allocations: 24.25 kB / 0.4986 GB, free: 8.828 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002453/0.3666, allocations: 103.3 kB / 0.4987 GB, free: 8.742 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.3668, allocations: 0.7118 MB / 0.4994 GB, free: 8.035 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3668, allocations: 0 / 0.4994 GB, free: 8.035 MB / 330.7 MB Notification: Performance of Templates: time 0.002643/0.3694, allocations: 0.6656 MB / 0.5001 GB, free: 7.957 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe 2>&1)