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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001339/0.001339, allocations: 99.38 kB / 15.37 MB, free: 0.707 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.001392/0.001393, allocations: 181 kB / 16.28 MB, free: 6.277 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.335/1.335, allocations: 223.3 MB / 240.3 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.288/2.288, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003917/0.0003918, allocations: 12 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7459/0.7463, allocations: 142.4 MB / 0.9552 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.000764/0.7471, allocations: 462.4 kB / 0.9556 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.7483, allocations: 1.178 MB / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.016e-05/0.7483, allocations: 1.312 kB / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.611e-05/0.7484, allocations: 0 / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.343e-05/0.7484, allocations: 9.109 kB / 0.9568 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.7488, allocations: 133.8 kB / 0.9569 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.368e-05/0.7489, allocations: 107 kB / 0.957 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.246e-05/0.749, allocations: 17.36 kB / 0.957 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.1e-05/0.7491, allocations: 39.31 kB / 0.9571 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.695e-05/0.7492, allocations: 35.02 kB / 0.9571 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.7492, allocations: 4.625 kB / 0.9571 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.042e-05/0.7493, allocations: 20.39 kB / 0.9571 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/0.7493, allocations: 11.2 kB / 0.9571 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.978e-05/0.7493, allocations: 65.12 kB / 0.9572 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.7495, allocations: 100.3 kB / 0.9573 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.7495, allocations: 0 / 0.9573 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.282e-06/0.7495, allocations: 0 / 0.9573 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.018e-06/0.7495, allocations: 4 kB / 0.9573 GB, free: 6.094 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.0004788/0.75, allocations: 398 kB / 0.9577 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.75, allocations: 10.12 kB / 0.9577 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.933e-05/0.7501, allocations: 30.75 kB / 0.9577 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.879e-05/0.7501, allocations: 7.281 kB / 0.9577 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.758e-05/0.7502, allocations: 173.8 kB / 0.9579 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.7502, allocations: 5.031 kB / 0.9579 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/0.7503, allocations: 13.91 kB / 0.9579 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.7504, allocations: 69.47 kB / 0.958 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.7505, allocations: 7.875 kB / 0.958 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.7505, allocations: 1.469 kB / 0.958 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.7505, allocations: 0 / 0.958 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/0.7507, allocations: 53.11 kB / 0.958 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000409/0.7511, allocations: 323.3 kB / 0.9583 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.7513, allocations: 57.89 kB / 0.9584 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.561e-05/0.7514, allocations: 39.95 kB / 0.9584 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.7514, allocations: 3.938 kB / 0.9584 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002268/0.7516, allocations: 100.2 kB / 0.9585 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.7516, allocations: 0 / 0.9585 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004354/0.7521, allocations: 148 kB / 0.9587 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/0.7521, allocations: 56.72 kB / 0.9587 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.083e-05/0.7522, allocations: 116.8 kB / 0.9588 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.7522, allocations: 28.45 kB / 0.9589 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.7523, allocations: 100.2 kB / 0.959 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.7523, allocations: 18.5 kB / 0.959 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.7523, allocations: 19.06 kB / 0.959 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.046e-05/0.7524, allocations: 328.1 kB / 0.9593 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.7525, allocations: 50.22 kB / 0.9594 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.7527, allocations: 77.55 kB / 0.9594 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.753, allocations: 146.3 kB / 0.9596 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.753, allocations: 1.281 kB / 0.9596 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003864/0.7534, allocations: 208.3 kB / 0.9598 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.7534, allocations: 32.58 kB / 0.9598 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.7534, allocations: 1.281 kB / 0.9598 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.7534, allocations: 1.312 kB / 0.9598 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.388e-05/0.7535, allocations: 27.3 kB / 0.9598 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.7535, allocations: 1.125 kB / 0.9598 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.7538, allocations: 46.16 kB / 0.9599 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.7538, allocations: 10.45 kB / 0.9599 GB, free: 3.734 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 6.56e-05/0.7539, allocations: 128.1 kB / 0.96 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.7539, allocations: 7.094 kB / 0.96 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002742/0.7542, allocations: 124 kB / 0.9601 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.7542, allocations: 1 kB / 0.9601 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.7542, allocations: 4 kB / 0.9601 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.7542, allocations: 0.9688 kB / 0.9601 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003416/0.7545, allocations: 367.9 kB / 0.9605 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.7546, allocations: 1.375 kB / 0.9605 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.846e-05/0.7546, allocations: 20.17 kB / 0.9605 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.7546, allocations: 5.312 kB / 0.9605 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.7546, allocations: 1.375 kB / 0.9605 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.7547, allocations: 0 / 0.9605 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.7547, allocations: 3.938 kB / 0.9605 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.7549, allocations: 229.2 kB / 0.9607 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.963e-05/0.755, allocations: 78.48 kB / 0.9608 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.755, allocations: 1.844 kB / 0.9608 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.779e-05/0.7551, allocations: 14.86 kB / 0.9608 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.7551, allocations: 6.688 kB / 0.9608 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.7551, allocations: 5.375 kB / 0.9609 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.055e-05/0.7552, allocations: 95.45 kB / 0.9609 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7552, allocations: 0 / 0.9609 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002544/0.7554, allocations: 23.25 kB / 0.961 GB, free: 2.77 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.0004831/0.7559, allocations: 0.7563 MB / 0.9617 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003541/0.7563, allocations: 181.1 kB / 0.9619 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.7563, allocations: 4.125 kB / 0.9619 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.7564, allocations: 38.86 kB / 0.9619 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.7567, allocations: 18.17 kB / 0.9619 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.7583, allocations: 1.668 MB / 0.9636 GB, free: 440 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.7585, allocations: 0.6911 MB / 0.9642 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.168e-05/0.7585, allocations: 4.031 kB / 0.9642 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.436e-05/0.7585, allocations: 18.22 kB / 0.9643 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of SimCode: time 2.91e-07/0.7585, allocations: 0 / 0.9643 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01078/0.7693, allocations: 2.135 MB / 0.9663 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.7695, allocations: 206.2 kB / 0.9665 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.702/2.471, allocations: 0 / 0.9665 GB, free: 14.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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