Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_10_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.001244/0.001244, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001236/0.001236, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.24/1.24, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.292/2.292, allocations: 437 MB / 0.7101 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.91 kB / 0.8689 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4797/0.4808, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001681/0.4826, allocations: 0.7896 MB / 1.018 GB, free: 1.91 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.4837, allocations: 1.19 MB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.732e-05/0.4837, allocations: 7.938 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.814e-05/0.4838, allocations: 0 / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.502e-05/0.4838, allocations: 3.938 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.4843, allocations: 131 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.4844, allocations: 119.8 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.929e-05/0.4845, allocations: 12 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.287e-05/0.4846, allocations: 47.89 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.246e-05/0.4846, allocations: 39.89 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.4847, allocations: 11.94 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.75e-05/0.4847, allocations: 23.98 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.4847, allocations: 11.98 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.244e-05/0.4848, allocations: 43.84 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.4849, allocations: 110 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.4849, allocations: 3.938 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.283e-06/0.485, allocations: 0 / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.485, allocations: 4 kB / 1.019 GB, free: 152 kB / 0.7637 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.0004821/0.4855, allocations: 405 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.4855, allocations: 12.03 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.484e-05/0.4855, allocations: 30.75 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.4856, allocations: 8.844 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.379e-05/0.4857, allocations: 176.3 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.4857, allocations: 8.375 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.4857, allocations: 16.25 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.4859, allocations: 70.2 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.4859, allocations: 3.938 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.4859, allocations: 3.984 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.4859, allocations: 7.938 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.4861, allocations: 39.95 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003745/0.4865, allocations: 324.7 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.4866, allocations: 50.55 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.754e-05/0.4867, allocations: 32.88 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.4867, allocations: 3.984 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001785/0.4869, allocations: 83.38 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.4869, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003677/0.4873, allocations: 137.6 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.4873, allocations: 55.41 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.909e-05/0.4874, allocations: 117.8 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.4874, allocations: 33.7 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.136e-05/0.4875, allocations: 88.12 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.4875, allocations: 15.75 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-05/0.4876, allocations: 37.7 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.76e-05/0.4876, allocations: 322.8 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.4878, allocations: 51.97 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.4879, allocations: 71.39 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.4882, allocations: 133 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.4882, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003695/0.4886, allocations: 195.2 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.4886, allocations: 37.69 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.4886, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.4886, allocations: 4 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.338e-05/0.4887, allocations: 19.92 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.4887, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001946/0.4889, allocations: 40.39 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.4889, allocations: 8 kB / 1.022 GB, free: 13.27 MB / 0.7794 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.541e-05/0.489, allocations: 122.2 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.208e-05/0.489, allocations: 7.938 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002579/0.4893, allocations: 125.9 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.4893, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.4893, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.4893, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003361/0.4897, allocations: 354.5 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4897, allocations: 4 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.651e-05/0.4897, allocations: 15.92 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.4898, allocations: 0 / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.4898, allocations: 8 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4898, allocations: 0 / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.4898, allocations: 3.938 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002483/0.49, allocations: 207.9 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.974e-05/0.4901, allocations: 81.02 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.4901, allocations: 3.984 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.157e-05/0.4902, allocations: 8 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.4902, allocations: 11.92 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.926e-06/0.4902, allocations: 8.094 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.46e-05/0.4903, allocations: 83.27 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4903, allocations: 4 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002339/0.4905, allocations: 23.94 kB / 1.023 GB, free: 12.11 MB / 0.7794 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.0004847/0.491, allocations: 0.7515 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003138/0.4913, allocations: 171.2 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4913, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.4915, allocations: 39.92 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.4917, allocations: 28.27 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.4933, allocations: 1.632 MB / 1.026 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.4935, allocations: 0.6853 MB / 1.026 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.067e-05/0.4935, allocations: 11.98 kB / 1.026 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.189e-05/0.4936, allocations: 11.44 kB / 1.026 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of SimCode: time 1.272e-06/0.4936, allocations: 0 / 1.026 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6974/1.191, allocations: 2.279 MB / 1.028 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/1.191, allocations: 212.2 kB / 1.029 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/3.002, allocations: 0 / 1.029 GB, free: 6.223 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches