Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.473/2.473, allocations: 390.3 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 63.91 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7445/0.7459, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001887/0.7479, allocations: 0.721 MB / 0.9504 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001312/0.7492, allocations: 1.185 MB / 0.9516 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.65e-05/0.7493, allocations: 1.062 kB / 0.9516 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.915e-05/0.7493, allocations: 3.938 kB / 0.9516 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.895e-05/0.7494, allocations: 9.062 kB / 0.9516 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005031/0.7499, allocations: 146.7 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.75, allocations: 121.3 kB / 0.9519 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.414e-05/0.7501, allocations: 14.25 kB / 0.9519 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.283e-05/0.7502, allocations: 49.39 kB / 0.9519 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.011e-05/0.7503, allocations: 37.39 kB / 0.952 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.779e-05/0.7503, allocations: 10.34 kB / 0.952 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.116e-05/0.7504, allocations: 29.05 kB / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.314e-05/0.7504, allocations: 19.16 kB / 0.952 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.58e-05/0.7505, allocations: 38.78 kB / 0.952 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.7507, allocations: 108 kB / 0.9521 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.7507, allocations: 1.25 kB / 0.9522 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7507, allocations: 0 / 0.9522 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.817e-06/0.7507, allocations: 0 / 0.9522 GB, free: 7.328 MB / 0.7169 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.000493/0.7512, allocations: 410.7 kB / 0.9525 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.7512, allocations: 9.562 kB / 0.9526 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.428e-05/0.7513, allocations: 35.88 kB / 0.9526 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.362e-05/0.7513, allocations: 10 kB / 0.9526 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.733e-05/0.7514, allocations: 176 kB / 0.9528 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.7514, allocations: 3.156 kB / 0.9528 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.7515, allocations: 6.062 kB / 0.9528 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.7517, allocations: 68.88 kB / 0.9528 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.7517, allocations: 3.938 kB / 0.9528 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.7517, allocations: 8.969 kB / 0.9528 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.7517, allocations: 1.188 kB / 0.9529 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.7519, allocations: 38.8 kB / 0.9529 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003916/0.7523, allocations: 321.8 kB / 0.9532 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001517/0.7525, allocations: 59.55 kB / 0.9533 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.348e-05/0.7526, allocations: 29.55 kB / 0.9533 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.7526, allocations: 5.219 kB / 0.9533 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.7528, allocations: 86.8 kB / 0.9534 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.7528, allocations: 0 / 0.9534 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004189/0.7533, allocations: 144.8 kB / 0.9535 GB, free: 6 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.532e-05/0.7533, allocations: 52.75 kB / 0.9536 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.336e-05/0.7534, allocations: 113.7 kB / 0.9537 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.7534, allocations: 28.05 kB / 0.9537 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.14e-05/0.7535, allocations: 91.75 kB / 0.9538 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.7535, allocations: 18.25 kB / 0.9538 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.44e-05/0.7535, allocations: 39.45 kB / 0.9538 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.258e-05/0.7536, allocations: 321.3 kB / 0.9541 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.7538, allocations: 45.81 kB / 0.9542 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.7539, allocations: 76.8 kB / 0.9543 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.7542, allocations: 136.9 kB / 0.9544 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.7542, allocations: 0 / 0.9544 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003878/0.7546, allocations: 202.5 kB / 0.9546 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.7546, allocations: 32.73 kB / 0.9546 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.7546, allocations: 1.375 kB / 0.9546 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.7546, allocations: 5.531 kB / 0.9546 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.416e-05/0.7547, allocations: 13.14 kB / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.7547, allocations: 1.344 kB / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.755, allocations: 36.17 kB / 0.9547 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.755, allocations: 5.312 kB / 0.9547 GB, free: 4.965 MB / 0.7169 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 7.241e-05/0.7551, allocations: 120.1 kB / 0.9548 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.7551, allocations: 18.08 kB / 0.9548 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.7554, allocations: 115.5 kB / 0.9549 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.7554, allocations: 1.875 kB / 0.9549 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.7554, allocations: 3.984 kB / 0.9549 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.7554, allocations: 480 / 0.9549 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.7558, allocations: 366.6 kB / 0.9553 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.7558, allocations: 0 / 0.9553 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.7558, allocations: 11.3 kB / 0.9553 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.7559, allocations: 0 / 0.9553 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.7559, allocations: 6.094 kB / 0.9553 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.7559, allocations: 0 / 0.9553 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.7559, allocations: 7.875 kB / 0.9553 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.7561, allocations: 202.1 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.189e-05/0.7562, allocations: 86.53 kB / 0.9556 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.7562, allocations: 5.312 kB / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.7563, allocations: 9.203 kB / 0.9556 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.112e-05/0.7563, allocations: 6.469 kB / 0.9556 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.7563, allocations: 9.969 kB / 0.9556 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.063e-05/0.7564, allocations: 89.58 kB / 0.9557 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7564, allocations: 1 kB / 0.9557 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002591/0.7566, allocations: 22.97 kB / 0.9557 GB, free: 4 MB / 0.7169 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.000453/0.7571, allocations: 0.7361 MB / 0.9564 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003662/0.7575, allocations: 180.2 kB / 0.9566 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7575, allocations: 0 / 0.9566 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.7576, allocations: 37.61 kB / 0.9566 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.7579, allocations: 17.83 kB / 0.9566 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.7595, allocations: 1.624 MB / 0.9582 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.7596, allocations: 0.6952 MB / 0.9589 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.104e-05/0.7597, allocations: 7.359 kB / 0.9589 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.777e-05/0.7597, allocations: 19.16 kB / 0.9589 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7597, allocations: 0 / 0.9589 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01868/0.7784, allocations: 2.413 MB / 0.9613 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.602/8.38, allocations: 7.281 kB / 0.9613 GB, free: 15.65 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches