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.007135/0.007135, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001588/0.001588, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.431/2.431, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 67.89 kB / 1.018 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7621/0.764, allocations: 151.6 MB / 1.166 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0019/0.7659, allocations: 0.7251 MB / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001558/0.7675, allocations: 1.193 MB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.87e-05/0.7676, allocations: 4 kB / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.057e-05/0.7676, allocations: 3.938 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.605e-05/0.7677, allocations: 11.81 kB / 1.168 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000565/0.7683, allocations: 138.5 kB / 1.168 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.7685, allocations: 127.8 kB / 1.168 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.125e-05/0.7686, allocations: 11.98 kB / 1.168 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.519e-05/0.7687, allocations: 47.91 kB / 1.168 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.7688, allocations: 47.86 kB / 1.168 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.7688, allocations: 12 kB / 1.168 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.886e-05/0.7689, allocations: 27.92 kB / 1.168 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/0.769, allocations: 11.94 kB / 1.168 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.727e-05/0.769, allocations: 43.84 kB / 1.168 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.7692, allocations: 110 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.7692, allocations: 0 / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7692, allocations: 0 / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.7692, allocations: 0 / 1.169 GB, free: 1.285 MB / 0.8887 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.0006079/0.7699, allocations: 409 kB / 1.169 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.7699, allocations: 12.92 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.445e-05/0.77, allocations: 42.67 kB / 1.169 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.818e-05/0.77, allocations: 4.938 kB / 1.169 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.7701, allocations: 172.2 kB / 1.169 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.7702, allocations: 8.312 kB / 1.169 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.7702, allocations: 8.312 kB / 1.169 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.7704, allocations: 66.22 kB / 1.169 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.7704, allocations: 7.938 kB / 1.169 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.7704, allocations: 0 / 1.169 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.7704, allocations: 0 / 1.169 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.7706, allocations: 43.95 kB / 1.169 GB, free: 428 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004743/0.7711, allocations: 320.7 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.7713, allocations: 54.5 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.7714, allocations: 36.92 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.7714, allocations: 80 / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.7717, allocations: 91.25 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.7717, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004548/0.7721, allocations: 137.6 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.7722, allocations: 51.41 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.7723, allocations: 117.8 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.7723, allocations: 29.7 kB / 1.17 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.18e-05/0.7724, allocations: 88.05 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.178e-05/0.7724, allocations: 23.73 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.495e-05/0.7725, allocations: 37.69 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.7726, allocations: 322.8 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.7728, allocations: 51.95 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.773, allocations: 75.34 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.7733, allocations: 133.5 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.7733, allocations: 0 / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004453/0.7737, allocations: 203.1 kB / 1.171 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.7738, allocations: 37.7 kB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.7738, allocations: 0 / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.7738, allocations: 8 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.995e-05/0.7739, allocations: 15.98 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.7739, allocations: 0 / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.7741, allocations: 31.95 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.7742, allocations: 11.94 kB / 1.171 GB, free: 14.4 MB / 0.9044 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.0001005/0.7743, allocations: 129.7 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.7743, allocations: 7.906 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003238/0.7746, allocations: 110.3 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.7747, allocations: 0 / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7747, allocations: 0 / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.7747, allocations: 0 / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004389/0.7751, allocations: 370.5 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.7751, allocations: 0 / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.386e-05/0.7752, allocations: 15.98 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.7752, allocations: 0 / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.7752, allocations: 0 / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/0.7752, allocations: 8 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.7752, allocations: 7.922 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/0.7756, allocations: 195.4 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.885e-05/0.7756, allocations: 85.11 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.7756, allocations: 0 / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.139e-05/0.7757, allocations: 15.92 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.7758, allocations: 7.938 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.7758, allocations: 0 / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.538e-05/0.7758, allocations: 91.27 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7759, allocations: 0 / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000273/0.7761, allocations: 23.94 kB / 1.172 GB, free: 13.25 MB / 0.9044 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.0005943/0.7767, allocations: 0.7439 MB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003702/0.7771, allocations: 171.3 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.7771, allocations: 128 / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.7773, allocations: 43.86 kB / 1.173 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.7775, allocations: 17.64 kB / 1.173 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002109/0.7797, allocations: 1.642 MB / 1.175 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.78, allocations: 0.689 MB / 1.175 GB, free: 9.781 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.992e-05/0.78, allocations: 0 / 1.175 GB, free: 9.781 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.156e-05/0.7801, allocations: 23.42 kB / 1.175 GB, free: 9.758 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.7801, allocations: 0 / 1.175 GB, free: 9.758 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.7996, allocations: 2.444 MB / 1.178 GB, free: 7.426 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.61, allocations: 15.52 kB / 1.178 GB, free: 7.414 MB / 0.9044 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