Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.307/1.307, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 177.3 kB / 326.5 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205 MB / 0.5766 GB, free: 20.98 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007409/0.0007412, allocations: 88.39 kB / 0.6803 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002992, allocations: 9.125 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2428, allocations: 105.4 MB / 0.8967 GB, free: 68.17 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001582/0.2444, allocations: 1.171 MB / 0.8979 GB, free: 66.98 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005064/0.2449, allocations: 261.7 kB / 0.8981 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.589e-05/0.245, allocations: 7.938 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.588e-05/0.245, allocations: 0 / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.721e-05/0.2452, allocations: 7.938 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.2454, allocations: 27.95 kB / 0.8982 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.789e-05/0.2455, allocations: 55.8 kB / 0.8982 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.2456, allocations: 16.27 kB / 0.8983 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.043e-05/0.2457, allocations: 27.8 kB / 0.8983 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.736e-05/0.2458, allocations: 23.91 kB / 0.8983 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.2458, allocations: 4 kB / 0.8983 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.112e-05/0.2458, allocations: 0 / 0.8983 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.245e-05/0.2459, allocations: 15.92 kB / 0.8983 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.395e-05/0.2459, allocations: 15.94 kB / 0.8983 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.928e-05/0.246, allocations: 43.77 kB / 0.8984 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.246, allocations: 4 kB / 0.8984 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.212e-06/0.246, allocations: 0 / 0.8984 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.246, allocations: 0 / 0.8984 GB, free: 66.48 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005018/0.2465, allocations: 375.3 kB / 0.8987 GB, free: 66.06 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2466, allocations: 8.031 kB / 0.8987 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.888e-05/0.2466, allocations: 4.938 kB / 0.8988 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.2467, allocations: 180.3 kB / 0.8989 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.2467, allocations: 4.375 kB / 0.8989 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.2468, allocations: 4.375 kB / 0.8989 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.247, allocations: 78.16 kB / 0.899 GB, free: 65.74 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.247, allocations: 192 / 0.899 GB, free: 65.74 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.247, allocations: 7.922 kB / 0.899 GB, free: 65.73 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.247, allocations: 0 / 0.899 GB, free: 65.73 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.2472, allocations: 59.95 kB / 0.8991 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003969/0.2476, allocations: 292.7 kB / 0.8994 GB, free: 65.34 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.2478, allocations: 66.48 kB / 0.8994 GB, free: 65.27 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.217e-05/0.2479, allocations: 36.95 kB / 0.8995 GB, free: 65.23 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.2479, allocations: 4.062 kB / 0.8995 GB, free: 65.22 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.2481, allocations: 83.38 kB / 0.8995 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.2481, allocations: 0 / 0.8995 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003906/0.2485, allocations: 141.6 kB / 0.8997 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.2486, allocations: 63.39 kB / 0.8997 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.445e-05/0.2486, allocations: 117.8 kB / 0.8998 GB, free: 64.79 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.2487, allocations: 25.7 kB / 0.8999 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.543e-05/0.2487, allocations: 84.14 kB / 0.8999 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.2487, allocations: 19.8 kB / 0.9 GB, free: 64.65 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.2488, allocations: 17.7 kB / 0.9 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.44e-05/0.2488, allocations: 318.8 kB / 0.9003 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.631e-05/0.2489, allocations: 35.97 kB / 0.9003 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.644e-05/0.249, allocations: 58.48 kB / 0.9004 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001751/0.2492, allocations: 82.48 kB / 0.9005 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2492, allocations: 0 / 0.9005 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002423/0.2495, allocations: 121.5 kB / 0.9006 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.2495, allocations: 4 kB / 0.9006 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.2495, allocations: 7.938 kB / 0.9006 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.2495, allocations: 0 / 0.9006 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.693e-05/0.2496, allocations: 15.98 kB / 0.9006 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.2496, allocations: 0 / 0.9006 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.513e-05/0.2497, allocations: 23.92 kB / 0.9006 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.2498, allocations: 4 kB / 0.9006 GB, free: 63.93 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,triggeredMax.y,$PRE.triggeredMax.y,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 6.796e-05/0.2498, allocations: 125.7 kB / 0.9007 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.563e-05/0.2498, allocations: 11.91 kB / 0.9008 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.2501, allocations: 114 kB / 0.9009 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.2501, allocations: 4 kB / 0.9009 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2501, allocations: 0 / 0.9009 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2501, allocations: 0 / 0.9009 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004204/0.2506, allocations: 390.4 kB / 0.9012 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2506, allocations: 0 / 0.9012 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.011e-05/0.2507, allocations: 16.08 kB / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.2507, allocations: 3.984 kB / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.2507, allocations: 4 kB / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.2507, allocations: 0 / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2507, allocations: 0 / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/0.251, allocations: 220.1 kB / 0.9015 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.37e-05/0.251, allocations: 77.11 kB / 0.9015 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.251, allocations: 4 kB / 0.9016 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.2511, allocations: 15.98 kB / 0.9016 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.2512, allocations: 15.92 kB / 0.9016 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.2512, allocations: 4 kB / 0.9016 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.275e-05/0.2512, allocations: 91.33 kB / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2512, allocations: 0 / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002099/0.2515, allocations: 16 kB / 0.9017 GB, free: 62.74 MB / 0.6042 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 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * 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 9.336e-05/0.2516, allocations: 99.25 kB / 0.9018 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002413/0.2518, allocations: 87.86 kB / 0.9019 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2518, allocations: 0 / 0.9019 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.2519, allocations: 40.05 kB / 0.9019 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.2522, allocations: 18.22 kB / 0.9019 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003861/0.2526, allocations: 205 kB / 0.9021 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.2528, allocations: 0.6926 MB / 0.9028 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.2528, allocations: 11.44 kB / 0.9028 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of SimCode: time 2.9e-07/0.2528, allocations: 0 / 0.9028 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of Templates: time 0.002315/0.2551, allocations: 0.9164 MB / 0.9037 GB, free: 60.62 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)