Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.614/2.614, allocations: 251.3 MB / 266.2 MB, free: 11.52 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001413/0.001412, allocations: 182.8 kB / 325.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.506/2.506, allocations: 205.4 MB / 0.5767 GB, free: 21.09 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009361/0.0009359, allocations: 89.97 kB / 0.6812 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006613/0.0006615, allocations: 14.62 kB / 0.7953 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2464, allocations: 106.3 MB / 0.899 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00175/0.2482, allocations: 1.152 MB / 0.9002 GB, free: 64.71 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005923/0.2488, allocations: 257.2 kB / 0.9004 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.963e-05/0.2489, allocations: 4 kB / 0.9004 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.14e-05/0.2489, allocations: 4 kB / 0.9004 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.881e-05/0.249, allocations: 3.938 kB / 0.9004 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.2492, allocations: 35.89 kB / 0.9005 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.075e-05/0.2494, allocations: 47.86 kB / 0.9005 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.905e-05/0.2495, allocations: 19.86 kB / 0.9005 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.581e-05/0.2495, allocations: 23.91 kB / 0.9005 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.471e-05/0.2496, allocations: 19.92 kB / 0.9006 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.141e-05/0.2496, allocations: 0 / 0.9006 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.514e-05/0.2497, allocations: 8 kB / 0.9006 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.92e-05/0.2497, allocations: 11.92 kB / 0.9006 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.2497, allocations: 29.7 kB / 0.9006 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.455e-05/0.2498, allocations: 35.91 kB / 0.9006 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2498, allocations: 0 / 0.9006 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.094e-06/0.2498, allocations: 4 kB / 0.9006 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.2499, allocations: 0 / 0.9006 GB, free: 64.21 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.0006284/0.2505, allocations: 379.3 kB / 0.901 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2505, allocations: 8.031 kB / 0.901 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.091e-05/0.2506, allocations: 4.938 kB / 0.901 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.2507, allocations: 176.2 kB / 0.9012 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.2507, allocations: 4.375 kB / 0.9012 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.2508, allocations: 4.375 kB / 0.9012 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.251, allocations: 78.2 kB / 0.9013 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.251, allocations: 192 / 0.9013 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.2511, allocations: 3.938 kB / 0.9013 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2511, allocations: 0 / 0.9013 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.2514, allocations: 55.95 kB / 0.9013 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004341/0.2518, allocations: 296.8 kB / 0.9016 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.2521, allocations: 58.55 kB / 0.9017 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.2523, allocations: 36.95 kB / 0.9017 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.2523, allocations: 4 kB / 0.9017 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002791/0.2526, allocations: 83.44 kB / 0.9018 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.973e-06/0.2526, allocations: 3.938 kB / 0.9018 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0006011/0.2532, allocations: 149.5 kB / 0.9019 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.2533, allocations: 51.41 kB / 0.902 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.772e-05/0.2533, allocations: 117.8 kB / 0.9021 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.2534, allocations: 25.7 kB / 0.9021 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.835e-05/0.2534, allocations: 96.03 kB / 0.9022 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.2535, allocations: 15.8 kB / 0.9022 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-06/0.2535, allocations: 4 kB / 0.9022 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.948e-05/0.2535, allocations: 322.7 kB / 0.9025 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.2537, allocations: 35.98 kB / 0.9026 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.2539, allocations: 50.48 kB / 0.9026 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.2541, allocations: 35.97 kB / 0.9027 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2541, allocations: 8 kB / 0.9027 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003844/0.2545, allocations: 117.6 kB / 0.9028 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2545, allocations: 4 kB / 0.9028 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2545, allocations: 0 / 0.9028 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.2546, allocations: 0 / 0.9028 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.2547, allocations: 20.02 kB / 0.9028 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.2547, allocations: 4 kB / 0.9028 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.2549, allocations: 23.83 kB / 0.9028 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.2549, allocations: 0 / 0.9028 GB, free: 61.75 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,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.521e-05/0.255, allocations: 128.4 kB / 0.9029 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.255, allocations: 4 kB / 0.903 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004174/0.2555, allocations: 122 kB / 0.9031 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2555, allocations: 0 / 0.9031 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2555, allocations: 0 / 0.9031 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2555, allocations: 0 / 0.9031 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006523/0.2562, allocations: 398.3 kB / 0.9034 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2562, allocations: 0 / 0.9034 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.2563, allocations: 15.98 kB / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.2563, allocations: 0 / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.2563, allocations: 0 / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.2563, allocations: 0 / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.2563, allocations: 4 kB / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004048/0.2568, allocations: 212.2 kB / 0.9037 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.2568, allocations: 81.02 kB / 0.9037 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.2568, allocations: 8.188 kB / 0.9038 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.257, allocations: 11.98 kB / 0.9038 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.2571, allocations: 15.86 kB / 0.9038 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.2571, allocations: 4 kB / 0.9038 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.751e-05/0.2572, allocations: 95.33 kB / 0.9039 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.9e-07/0.2572, allocations: 4 kB / 0.9039 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002878/0.2575, allocations: 12 kB / 0.9039 GB, free: 60.55 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 (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.0001095/0.2576, allocations: 95.25 kB / 0.904 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000418/0.258, allocations: 91.81 kB / 0.9041 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2581, allocations: 0 / 0.9041 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.2583, allocations: 35.97 kB / 0.9041 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.2586, allocations: 15.98 kB / 0.9041 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004114/0.259, allocations: 174.6 kB / 0.9043 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.2592, allocations: 0.6887 MB / 0.905 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.855e-05/0.2593, allocations: 7.859 kB / 0.905 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.174e-05/0.2593, allocations: 11.44 kB / 0.905 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of SimCode: time 6.81e-07/0.2593, allocations: 0 / 0.905 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of Templates: time 0.003634/0.263, allocations: 0.7429 MB / 0.9057 GB, free: 58.64 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)