Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 111.5 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 192 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.692/1.692, allocations: 292.3 MB / 0.5492 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 72.66 kB / 0.6717 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2414, allocations: 114.5 MB / 0.7835 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002088/0.2435, allocations: 0.7932 MB / 0.7843 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001536/0.245, allocations: 1.188 MB / 0.7855 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.027e-05/0.2451, allocations: 0 / 0.7855 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.544e-05/0.2452, allocations: 0 / 0.7855 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.197e-05/0.2452, allocations: 11.94 kB / 0.7855 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005174/0.2458, allocations: 127.5 kB / 0.7856 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.246, allocations: 131.7 kB / 0.7857 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.992e-05/0.2461, allocations: 11.98 kB / 0.7857 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.691e-05/0.2461, allocations: 47.89 kB / 0.7858 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.657e-05/0.2462, allocations: 39.89 kB / 0.7858 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.2463, allocations: 12 kB / 0.7858 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.647e-05/0.2463, allocations: 19.98 kB / 0.7858 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.977e-05/0.2464, allocations: 8 kB / 0.7859 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.528e-05/0.2464, allocations: 47.83 kB / 0.7859 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.2466, allocations: 76.12 kB / 0.786 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2466, allocations: 0 / 0.786 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2466, allocations: 0 / 0.786 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.2466, allocations: 0 / 0.786 GB, free: 11.4 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006757/0.2473, allocations: 419.3 kB / 0.7864 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.2473, allocations: 8.031 kB / 0.7864 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.695e-05/0.2474, allocations: 12.92 kB / 0.7864 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.2475, allocations: 168.3 kB / 0.7865 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.2476, allocations: 8.312 kB / 0.7866 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.2476, allocations: 12.38 kB / 0.7866 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.2478, allocations: 58.22 kB / 0.7866 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.2478, allocations: 192 / 0.7866 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.2478, allocations: 11.94 kB / 0.7866 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2478, allocations: 0 / 0.7866 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.248, allocations: 47.89 kB / 0.7867 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.2486, allocations: 316.8 kB / 0.787 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001555/0.2487, allocations: 54.48 kB / 0.787 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.2488, allocations: 28.92 kB / 0.7871 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.2489, allocations: 4 kB / 0.7871 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.2491, allocations: 95.27 kB / 0.7872 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.2491, allocations: 0 / 0.7872 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004365/0.2496, allocations: 133.6 kB / 0.7873 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.2496, allocations: 59.41 kB / 0.7873 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.424e-05/0.2497, allocations: 117.7 kB / 0.7875 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.2498, allocations: 29.7 kB / 0.7875 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.989e-05/0.2499, allocations: 92.12 kB / 0.7876 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.2499, allocations: 19.8 kB / 0.7876 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.235e-05/0.25, allocations: 37.64 kB / 0.7876 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2501, allocations: 322.8 kB / 0.7879 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.2503, allocations: 47.97 kB / 0.788 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.2504, allocations: 79.39 kB / 0.7881 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.2507, allocations: 133 kB / 0.7882 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.2507, allocations: 8 kB / 0.7882 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004072/0.2511, allocations: 195.2 kB / 0.7884 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.2512, allocations: 33.7 kB / 0.7884 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.2512, allocations: 4 kB / 0.7884 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2512, allocations: 0 / 0.7884 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.2513, allocations: 15.92 kB / 0.7884 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.2513, allocations: 0 / 0.7884 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.2516, allocations: 40.02 kB / 0.7885 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.2516, allocations: 11.94 kB / 0.7885 GB, free: 8.559 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.0001309/0.2517, allocations: 126.4 kB / 0.7886 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.2518, allocations: 7.906 kB / 0.7886 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003062/0.2521, allocations: 114 kB / 0.7887 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2521, allocations: 8.469 kB / 0.7887 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2521, allocations: 0 / 0.7887 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2521, allocations: 0 / 0.7887 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004654/0.2526, allocations: 358.5 kB / 0.7891 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2526, allocations: 0 / 0.7891 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.689e-05/0.2527, allocations: 11.92 kB / 0.7891 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.2527, allocations: 4 kB / 0.7891 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.2527, allocations: 4 kB / 0.7891 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2527, allocations: 0 / 0.7891 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2527, allocations: 0 / 0.7891 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.253, allocations: 211.3 kB / 0.7893 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.702e-05/0.253, allocations: 81.11 kB / 0.7894 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.2531, allocations: 4 kB / 0.7894 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.691e-05/0.2532, allocations: 11.98 kB / 0.7894 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.2532, allocations: 3.938 kB / 0.7894 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.2532, allocations: 4 kB / 0.7894 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.926e-05/0.2533, allocations: 91.27 kB / 0.7895 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2533, allocations: 0 / 0.7895 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002535/0.2535, allocations: 24 kB / 0.7895 GB, free: 7.41 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001587/0.2537, allocations: 103.2 kB / 0.7896 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003682/0.2541, allocations: 179.2 kB / 0.7898 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2541, allocations: 0 / 0.7898 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.2542, allocations: 31.92 kB / 0.7898 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.2545, allocations: 19.98 kB / 0.7898 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003816/0.2549, allocations: 199.8 kB / 0.79 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.2552, allocations: 0.6885 MB / 0.7907 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.2552, allocations: 11.44 kB / 0.7907 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2552, allocations: 0 / 0.7907 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of Templates: time 0.002667/0.2579, allocations: 1.213 MB / 0.7919 GB, free: 4.902 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)