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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001369/0.001369, allocations: 177.6 kB / 8.047 MB, free: 1.027 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.598/1.598, allocations: 205.3 MB / 213.8 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008246/0.0008243, allocations: 90.27 kB / 261.8 MB, free: 1.68 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.07374/0.07374, allocations: 12.59 MB / 322.3 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.448e-05/1.449e-05, allocations: 4 kB / 378.9 MB, free: 6.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2496, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09887/0.3485, allocations: 77.7 MB / 0.4951 GB, free: 4.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.3487, allocations: 55.98 kB / 0.4952 GB, free: 4.484 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003337/0.3521, allocations: 1.274 MB / 0.4964 GB, free: 3.211 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3521, allocations: 0 / 0.4964 GB, free: 3.211 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.3521, allocations: 0 / 0.4964 GB, free: 3.211 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004089/0.3525, allocations: 354.3 kB / 0.4968 GB, free: 2.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.3526, allocations: 8.031 kB / 0.4968 GB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.59e-05/0.3526, allocations: 7.906 kB / 0.4968 GB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/0.3529, allocations: 186.9 kB / 0.4969 GB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.3529, allocations: 11.95 kB / 0.497 GB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.3529, allocations: 8 kB / 0.497 GB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001167/0.353, allocations: 24 kB / 0.497 GB, free: 2.539 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002482/0.3533, allocations: 113 kB / 0.4971 GB, free: 2.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3533, allocations: 0 / 0.4971 GB, free: 2.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.3533, allocations: 7.938 kB / 0.4971 GB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3534, allocations: 4 kB / 0.4971 GB, free: 2.398 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004761/0.3538, allocations: 270.2 kB / 0.4974 GB, free: 2.094 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002296/0.3541, allocations: 146.3 kB / 0.4975 GB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.055e-05/0.3541, allocations: 29.72 kB / 0.4975 GB, free: 1.879 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.3542, allocations: 4 kB / 0.4975 GB, free: 1.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001115/0.3543, allocations: 55.53 kB / 0.4976 GB, free: 1.809 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.3543, allocations: 0 / 0.4976 GB, free: 1.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001945/0.3545, allocations: 77.58 kB / 0.4977 GB, free: 1.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.3546, allocations: 85.11 kB / 0.4977 GB, free: 1.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.3547, allocations: 109.1 kB / 0.4979 GB, free: 1.508 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.3547, allocations: 25.7 kB / 0.4979 GB, free: 1.477 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.3548, allocations: 92.23 kB / 0.498 GB, free: 1.383 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.391e-05/0.3548, allocations: 19.91 kB / 0.498 GB, free: 1.363 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.3548, allocations: 0 / 0.498 GB, free: 1.363 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.355, allocations: 314.8 kB / 0.4983 GB, free: 1.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.558e-05/0.355, allocations: 19.94 kB / 0.4983 GB, free: 1.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.665e-05/0.3551, allocations: 57.14 kB / 0.4984 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.23e-05/0.3551, allocations: 15.95 kB / 0.4984 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3552, allocations: 0 / 0.4984 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001447/0.3553, allocations: 101.5 kB / 0.4985 GB, free: 0.832 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.3553, allocations: 4 kB / 0.4985 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3553, allocations: 0 / 0.4985 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.3554, allocations: 4 kB / 0.4985 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.631e-05/0.3554, allocations: 19.98 kB / 0.4985 GB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.3555, allocations: 3.938 kB / 0.4985 GB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.076e-05/0.3555, allocations: 4 kB / 0.4985 GB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.3555, allocations: 4 kB / 0.4985 GB, free: 0.793 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,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 7.887e-05/0.3556, allocations: 113.1 kB / 0.4986 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.489e-05/0.3557, allocations: 49.59 kB / 0.4987 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.302e-05/0.3557, allocations: 8.406 kB / 0.4987 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3557, allocations: 4 kB / 0.4987 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3557, allocations: 384 / 0.4987 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.3558, allocations: 3.984 kB / 0.4987 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.356, allocations: 303 kB / 0.499 GB, free: 272 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.356, allocations: 0 / 0.499 GB, free: 272 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.413e-05/0.3561, allocations: 20.11 kB / 0.499 GB, free: 252 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.3561, allocations: 4 kB / 0.499 GB, free: 248 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.3561, allocations: 4 kB / 0.499 GB, free: 244 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3561, allocations: 4 kB / 0.499 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3562, allocations: 0 / 0.499 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.3563, allocations: 190.1 kB / 0.4992 GB, free: 24 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.3564, allocations: 93 kB / 0.4993 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.097e-05/0.3564, allocations: 4 kB / 0.4993 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.23e-05/0.3565, allocations: 4 kB / 0.4993 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.3566, allocations: 3.984 kB / 0.4993 GB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.3566, allocations: 7.938 kB / 0.4993 GB, free: 15.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.648e-05/0.3566, allocations: 87.28 kB / 0.4994 GB, free: 15.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3566, allocations: 3.938 kB / 0.4994 GB, free: 15.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002381/0.3569, allocations: 8 kB / 0.4994 GB, free: 15.8 MB / 362.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 0.0001064/0.357, allocations: 107.2 kB / 0.4995 GB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.3571, allocations: 43.94 kB / 0.4995 GB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3571, allocations: 0 / 0.4995 GB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.663e-05/0.3572, allocations: 19.94 kB / 0.4995 GB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.3574, allocations: 23.31 kB / 0.4996 GB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002858/0.3577, allocations: 93.38 kB / 0.4997 GB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.358, allocations: 0.7083 MB / 0.5003 GB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.86e-05/0.3581, allocations: 8.328 kB / 0.5004 GB, free: 14.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.331e-05/0.3581, allocations: 11.44 kB / 0.5004 GB, free: 14.73 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3581, allocations: 0 / 0.5004 GB, free: 14.73 MB / 362.7 MB Notification: Performance of Templates: time 0.002653/0.3608, allocations: 0.5478 MB / 0.5009 GB, free: 14.18 MB / 362.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)