Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_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.007111/0.007111, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001627/0.001627, allocations: 196.9 kB / 16.67 MB, free: 5.93 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.603/2.603, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.91 kB / 1.054 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8144/0.8158, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002137/0.818, allocations: 0.7316 MB / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001677/0.8197, allocations: 1.178 MB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.237e-05/0.8198, allocations: 0 / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.639e-05/0.8199, allocations: 11.86 kB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.988e-05/0.82, allocations: 19.86 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006163/0.8206, allocations: 138.6 kB / 1.209 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.8208, allocations: 119.8 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.533e-05/0.8209, allocations: 23.92 kB / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.8211, allocations: 51.83 kB / 1.209 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.999e-05/0.8212, allocations: 39.89 kB / 1.21 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.8212, allocations: 12 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.033e-05/0.8213, allocations: 23.98 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.8213, allocations: 19.91 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.275e-05/0.8214, allocations: 39.84 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002051/0.8216, allocations: 106 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.8216, allocations: 4 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8216, allocations: 0 / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.8216, allocations: 0 / 1.21 GB, free: 11.06 MB / 0.9356 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.0006159/0.8223, allocations: 409 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.8223, allocations: 8.031 kB / 1.21 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.174e-05/0.8224, allocations: 34.75 kB / 1.21 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.037e-05/0.8224, allocations: 4.938 kB / 1.21 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.8225, allocations: 184.1 kB / 1.21 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.8226, allocations: 8.375 kB / 1.21 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.8226, allocations: 8.375 kB / 1.21 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.8228, allocations: 70.2 kB / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.8228, allocations: 3.938 kB / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.8228, allocations: 0 / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.8228, allocations: 0 / 1.21 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.823, allocations: 43.95 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005325/0.8236, allocations: 324.7 kB / 1.211 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.8238, allocations: 46.55 kB / 1.211 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.94e-05/0.8239, allocations: 32.92 kB / 1.211 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.8239, allocations: 7.984 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.8242, allocations: 95.27 kB / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 3.697e-06/0.8242, allocations: 0 / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.00044/0.8246, allocations: 129.6 kB / 1.211 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.8247, allocations: 59.41 kB / 1.211 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.827e-05/0.8248, allocations: 117.7 kB / 1.211 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.8249, allocations: 33.7 kB / 1.211 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/0.8249, allocations: 96.03 kB / 1.211 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.825, allocations: 15.75 kB / 1.211 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.022e-05/0.8251, allocations: 33.7 kB / 1.211 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.8252, allocations: 326.8 kB / 1.212 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.8254, allocations: 43.97 kB / 1.212 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.8255, allocations: 83.33 kB / 1.212 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002799/0.8258, allocations: 129 kB / 1.212 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.8258, allocations: 0 / 1.212 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004511/0.8263, allocations: 199.2 kB / 1.212 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.668e-05/0.8264, allocations: 37.69 kB / 1.212 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.8264, allocations: 4 kB / 1.212 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.8264, allocations: 0 / 1.212 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.8265, allocations: 11.98 kB / 1.212 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.8265, allocations: 4 kB / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002007/0.8267, allocations: 35.89 kB / 1.212 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.8268, allocations: 8.375 kB / 1.212 GB, free: 8.184 MB / 0.9356 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 0.0001196/0.8269, allocations: 125.7 kB / 1.212 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/0.8269, allocations: 3.906 kB / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000304/0.8272, allocations: 122 kB / 1.212 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.8272, allocations: 4 kB / 1.212 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.8272, allocations: 0 / 1.212 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.8272, allocations: 0 / 1.212 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000438/0.8277, allocations: 366.4 kB / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.8277, allocations: 0 / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.238e-05/0.8278, allocations: 11.98 kB / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.8278, allocations: 0 / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.8278, allocations: 0 / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.8278, allocations: 0 / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.8278, allocations: 7.938 kB / 1.213 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.8281, allocations: 211.3 kB / 1.213 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.8282, allocations: 81.11 kB / 1.213 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.8282, allocations: 3.984 kB / 1.213 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.36e-05/0.8283, allocations: 4 kB / 1.213 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.888e-05/0.8283, allocations: 16.39 kB / 1.213 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.8283, allocations: 0 / 1.213 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.654e-05/0.8284, allocations: 99.2 kB / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8284, allocations: 0 / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002598/0.8287, allocations: 23.94 kB / 1.213 GB, free: 7.016 MB / 0.9356 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.0006216/0.8293, allocations: 0.7435 MB / 1.214 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003728/0.8297, allocations: 163.3 kB / 1.214 GB, free: 6.074 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.8297, allocations: 0 / 1.214 GB, free: 6.074 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.8298, allocations: 39.91 kB / 1.214 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.8301, allocations: 21.64 kB / 1.214 GB, free: 6.016 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002019/0.8321, allocations: 1.628 MB / 1.216 GB, free: 4.277 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.8325, allocations: 0.6924 MB / 1.216 GB, free: 3.559 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.26e-05/0.8325, allocations: 4.281 kB / 1.216 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.431e-05/0.8326, allocations: 19.44 kB / 1.216 GB, free: 3.535 MB / 0.9356 GB Notification: Performance of SimCode: time 4.11e-07/0.8326, allocations: 0 / 1.216 GB, free: 3.535 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01922/0.8518, allocations: 2.461 MB / 1.219 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.851/8.703, allocations: 11.98 kB / 1.219 GB, free: 1.195 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches