Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.73/1.73, allocations: 292.3 MB / 308.1 MB, free: 4.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00211/0.00211, allocations: 189.3 kB / 376.9 MB, free: 1.824 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.867/1.867, allocations: 205.1 MB / 0.6354 GB, free: 9.805 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001303/0.001303, allocations: 104.4 kB / 0.748 GB, free: 60.95 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 59.91 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3252, allocations: 114.5 MB / 0.9822 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.003326/0.3286, allocations: 0.8284 MB / 0.983 GB, free: 9.547 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002299/0.331, allocations: 1.172 MB / 0.9842 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.959e-05/0.3311, allocations: 0 / 0.9842 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 6.019e-05/0.3312, allocations: 3.938 kB / 0.9842 GB, free: 8.355 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.3313, allocations: 7.922 kB / 0.9842 GB, free: 8.348 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006411/0.332, allocations: 119.8 kB / 0.9843 GB, free: 8.23 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.3322, allocations: 115.8 kB / 0.9844 GB, free: 8.117 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.3324, allocations: 20.17 kB / 0.9844 GB, free: 8.094 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.3325, allocations: 43.91 kB / 0.9845 GB, free: 8.051 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.3326, allocations: 43.81 kB / 0.9845 GB, free: 8.008 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.838e-05/0.3327, allocations: 8 kB / 0.9845 GB, free: 8 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.741e-05/0.3328, allocations: 19.98 kB / 0.9845 GB, free: 7.98 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 3.123e-05/0.3328, allocations: 15.92 kB / 0.9846 GB, free: 7.965 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 9.028e-05/0.3329, allocations: 39.84 kB / 0.9846 GB, free: 7.926 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.3332, allocations: 115.7 kB / 0.9847 GB, free: 7.812 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3332, allocations: 11.92 kB / 0.9847 GB, free: 7.801 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.033e-06/0.3332, allocations: 0 / 0.9847 GB, free: 7.801 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.3332, allocations: 0 / 0.9847 GB, free: 7.801 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008338/0.3341, allocations: 413.2 kB / 0.9851 GB, free: 7.344 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.3341, allocations: 12.03 kB / 0.9851 GB, free: 7.332 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.432e-05/0.3342, allocations: 8.844 kB / 0.9851 GB, free: 7.324 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.3344, allocations: 176.2 kB / 0.9853 GB, free: 7.113 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.3344, allocations: 4.375 kB / 0.9853 GB, free: 7.109 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.77e-05/0.3345, allocations: 24.34 kB / 0.9853 GB, free: 7.086 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002492/0.3347, allocations: 70.16 kB / 0.9854 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.3347, allocations: 11.88 kB / 0.9854 GB, free: 7 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.3348, allocations: 0 / 0.9854 GB, free: 7 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.3348, allocations: 0 / 0.9854 GB, free: 7 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.335, allocations: 55.89 kB / 0.9855 GB, free: 6.945 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.3356, allocations: 348.6 kB / 0.9858 GB, free: 6.555 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.3358, allocations: 54.55 kB / 0.9858 GB, free: 6.492 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.336, allocations: 32.97 kB / 0.9859 GB, free: 6.457 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.336, allocations: 0 / 0.9859 GB, free: 6.457 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003223/0.3363, allocations: 87.36 kB / 0.986 GB, free: 6.359 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 2.024e-06/0.3363, allocations: 0 / 0.986 GB, free: 6.359 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0005077/0.3369, allocations: 161.5 kB / 0.9861 GB, free: 6.195 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.3369, allocations: 51.41 kB / 0.9862 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.337, allocations: 121.8 kB / 0.9863 GB, free: 6.004 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.3371, allocations: 25.7 kB / 0.9863 GB, free: 5.973 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.56e-05/0.3372, allocations: 104 kB / 0.9864 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.3372, allocations: 15.75 kB / 0.9864 GB, free: 5.852 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.142e-05/0.3373, allocations: 33.7 kB / 0.9865 GB, free: 5.812 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001818/0.3375, allocations: 326.8 kB / 0.9868 GB, free: 5.484 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.3377, allocations: 55.95 kB / 0.9868 GB, free: 5.43 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.3378, allocations: 89.11 kB / 0.9869 GB, free: 5.324 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.3382, allocations: 154.7 kB / 0.9871 GB, free: 5.148 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.3382, allocations: 0 / 0.9871 GB, free: 5.148 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004815/0.3387, allocations: 211.1 kB / 0.9873 GB, free: 4.93 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.3387, allocations: 33.69 kB / 0.9873 GB, free: 4.891 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3387, allocations: 4.156 kB / 0.9873 GB, free: 4.887 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.3388, allocations: 4 kB / 0.9873 GB, free: 4.883 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.3389, allocations: 15.98 kB / 0.9873 GB, free: 4.867 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.3389, allocations: 0 / 0.9873 GB, free: 4.867 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.3392, allocations: 40.52 kB / 0.9873 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.3392, allocations: 11.92 kB / 0.9874 GB, free: 4.816 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.3393, allocations: 125.7 kB / 0.9875 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.055e-05/0.3394, allocations: 11.91 kB / 0.9875 GB, free: 4.672 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000337/0.3397, allocations: 130 kB / 0.9876 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3397, allocations: 0 / 0.9876 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3397, allocations: 0 / 0.9876 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3398, allocations: 0 / 0.9876 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005267/0.3403, allocations: 382.4 kB / 0.988 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.3403, allocations: 0 / 0.988 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.3404, allocations: 11.98 kB / 0.988 GB, free: 4.094 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.3404, allocations: 0 / 0.988 GB, free: 4.094 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.3404, allocations: 4 kB / 0.988 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3405, allocations: 3.984 kB / 0.988 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.3405, allocations: 3.938 kB / 0.988 GB, free: 4.082 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007803/0.3412, allocations: 0.7902 MB / 0.9888 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.833e-05/0.3413, allocations: 81.05 kB / 0.9889 GB, free: 3.137 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.3414, allocations: 15.92 kB / 0.9889 GB, free: 3.121 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.3414, allocations: 4 kB / 0.9889 GB, free: 3.117 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.3415, allocations: 7.922 kB / 0.9889 GB, free: 3.109 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.3415, allocations: 4 kB / 0.9889 GB, free: 3.105 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.77e-05/0.3416, allocations: 99.2 kB / 0.989 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3416, allocations: 0 / 0.989 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003779/0.342, allocations: 35.91 kB / 0.989 GB, free: 2.973 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001943/0.3422, allocations: 99.23 kB / 0.9891 GB, free: 2.867 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004108/0.3426, allocations: 179.3 kB / 0.9893 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3426, allocations: 320 / 0.9893 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.3427, allocations: 43.97 kB / 0.9893 GB, free: 2.637 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.3431, allocations: 21.97 kB / 0.9893 GB, free: 2.617 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005601/0.3436, allocations: 315.1 kB / 0.9896 GB, free: 2.273 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.344, allocations: 0.6887 MB / 0.9903 GB, free: 1.559 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.103e-05/0.344, allocations: 4 kB / 0.9903 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.881e-05/0.3441, allocations: 11.44 kB / 0.9903 GB, free: 1.543 MB / 0.7136 GB Notification: Performance of SimCode: time 2.41e-07/0.3441, allocations: 0 / 0.9903 GB, free: 1.543 MB / 0.7136 GB Notification: Performance of Templates: time 0.004605/0.3487, allocations: 1.371 MB / 0.9917 GB, free: 196 kB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)