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="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",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="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",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.458/1.458, allocations: 249.3 MB / 261.8 MB, free: 5.848 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001137/0.001137, allocations: 182.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.2 MB / 0.572 GB, free: 10.67 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.0009595/0.0009597, allocations: 90.98 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.289e-05/4.299e-05, allocations: 8 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2185, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7134/0.9319, allocations: 131.9 MB / 1.021 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.9322, allocations: 70.89 kB / 1.021 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003922/0.9361, allocations: 1.478 MB / 1.022 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.289e-05/0.9361, allocations: 0 / 1.022 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.9362, allocations: 7.938 kB / 1.022 GB, free: 1.5 MB / 0.6355 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.00043/0.9366, allocations: 366.5 kB / 1.022 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.9366, allocations: 12.03 kB / 1.022 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.445e-05/0.9367, allocations: 7.906 kB / 1.022 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.9368, allocations: 171 kB / 1.023 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.9368, allocations: 3.25 kB / 1.023 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.9369, allocations: 4 kB / 1.023 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.937, allocations: 52.42 kB / 1.023 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-06/0.937, allocations: 0 / 1.023 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.937, allocations: 3.812 kB / 1.023 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.937, allocations: 4 kB / 1.023 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.135e-05/0.9371, allocations: 19.62 kB / 1.023 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004278/0.9375, allocations: 299.9 kB / 1.023 GB, free: 492 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.395e-05/0.9376, allocations: 44.19 kB / 1.023 GB, free: 448 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.728e-05/0.9377, allocations: 16.17 kB / 1.023 GB, free: 432 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.9377, allocations: 7.938 kB / 1.023 GB, free: 424 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000137/0.9379, allocations: 69.27 kB / 1.023 GB, free: 352 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.9379, allocations: 0 / 1.023 GB, free: 352 kB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000223/0.9381, allocations: 75.42 kB / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.9382, allocations: 55.36 kB / 1.023 GB, free: 212 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.356e-05/0.9382, allocations: 107.6 kB / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.9383, allocations: 32.7 kB / 1.023 GB, free: 68 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.073e-05/0.9383, allocations: 91.38 kB / 1.023 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.446e-05/0.9384, allocations: 18.94 kB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-06/0.9384, allocations: 4 kB / 1.024 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.9385, allocations: 322.2 kB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.9386, allocations: 11.12 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.359e-05/0.9386, allocations: 33.39 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.637e-05/0.9387, allocations: 11.25 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.9387, allocations: 4 kB / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001263/0.9388, allocations: 87.58 kB / 1.024 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.9388, allocations: 8 kB / 1.024 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.9388, allocations: 0 / 1.024 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.9389, allocations: 3.938 kB / 1.024 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.939, allocations: 15.98 kB / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.939, allocations: 12.28 kB / 1.024 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.406e-05/0.9391, allocations: 19.95 kB / 1.024 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.9391, allocations: 4 kB / 1.024 GB, free: 15.44 MB / 0.6511 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 () * 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.581e-05/0.9392, allocations: 108.3 kB / 1.024 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.9392, allocations: 4.781 kB / 1.024 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001731/0.9394, allocations: 93.27 kB / 1.024 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.9394, allocations: 0 / 1.024 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.9394, allocations: 0 / 1.024 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.9394, allocations: 7.891 kB / 1.024 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003862/0.9398, allocations: 353.4 kB / 1.025 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.9398, allocations: 0 / 1.025 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.391e-05/0.9399, allocations: 19.98 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.9399, allocations: 0 / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.9399, allocations: 0 / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.94, allocations: 3.953 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.94, allocations: 0 / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001718/0.9401, allocations: 181.2 kB / 1.025 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.9402, allocations: 81.11 kB / 1.025 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.9402, allocations: 0 / 1.025 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.9403, allocations: 15.98 kB / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.9404, allocations: 15.41 kB / 1.025 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.9404, allocations: 3.984 kB / 1.025 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.536e-05/0.9405, allocations: 94.77 kB / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9405, allocations: 0 / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002017/0.9407, allocations: 19.31 kB / 1.025 GB, free: 14.42 MB / 0.6511 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) * 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.0001136/0.9408, allocations: 95.25 kB / 1.025 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001264/0.9409, allocations: 47.11 kB / 1.025 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.941, allocations: 0 / 1.025 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.585e-05/0.941, allocations: 26.81 kB / 1.025 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001879/0.9412, allocations: 16.05 kB / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002793/0.9415, allocations: 105.3 kB / 1.025 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.9418, allocations: 0.6908 MB / 1.026 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.745e-05/0.9418, allocations: 7.859 kB / 1.026 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.035e-05/0.9419, allocations: 11.44 kB / 1.026 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of SimCode: time 3.3e-07/0.9419, allocations: 0 / 1.026 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of Templates: time 0.002655/0.9445, allocations: 0.7349 MB / 1.027 GB, free: 12.68 MB / 0.6511 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 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches