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.006845/0.006846, allocations: 99.14 kB / 15.73 MB, free: 6.035 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.001424/0.001424, allocations: 194.6 kB / 16.67 MB, free: 5.965 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.309/2.309, allocations: 390.2 MB / 0.6648 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 64.3 kB / 0.9504 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3051, allocations: 140.4 MB / 1.087 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002147/0.3072, allocations: 0.717 MB / 1.088 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001743/0.309, allocations: 1.192 MB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.736e-05/0.3091, allocations: 4 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.964e-05/0.3092, allocations: 3.938 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.3093, allocations: 7.922 kB / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006613/0.3099, allocations: 148.6 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002169/0.3102, allocations: 119.7 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.3103, allocations: 15.98 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.3104, allocations: 43.91 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.3105, allocations: 47.81 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.3105, allocations: 8 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.332e-05/0.3106, allocations: 27.92 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.905e-05/0.3107, allocations: 15.97 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.501e-05/0.3107, allocations: 43.86 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.311, allocations: 107.7 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.311, allocations: 0 / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.311, allocations: 3.938 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.311, allocations: 4 kB / 1.09 GB, free: 15.54 MB / 0.8575 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.0006448/0.3116, allocations: 404.7 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3117, allocations: 12.03 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.35e-05/0.3117, allocations: 30.75 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.279e-05/0.3118, allocations: 8.844 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.3119, allocations: 184.3 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.3119, allocations: 4.375 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.255e-05/0.312, allocations: 4.375 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.3122, allocations: 66.22 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3122, allocations: 7.875 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-06/0.3122, allocations: 0 / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.3122, allocations: 4 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.3124, allocations: 43.95 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004801/0.3129, allocations: 324.7 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.3131, allocations: 50.48 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.235e-05/0.3132, allocations: 28.94 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.3132, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000241/0.3134, allocations: 91.44 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 3.807e-06/0.3134, allocations: 3.984 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004306/0.3139, allocations: 145.5 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.3139, allocations: 55.34 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.268e-05/0.314, allocations: 117.8 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.3141, allocations: 30.08 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.217e-05/0.3141, allocations: 92.05 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.3142, allocations: 15.8 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.817e-05/0.3142, allocations: 33.7 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3143, allocations: 326.7 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.3145, allocations: 47.97 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.3147, allocations: 79.39 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.3149, allocations: 125 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.315, allocations: 3.938 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004112/0.3154, allocations: 195.2 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.3154, allocations: 41.69 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3154, allocations: 0 / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.3155, allocations: 4 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.178e-05/0.3156, allocations: 15.92 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3156, allocations: 0 / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001997/0.3158, allocations: 39.88 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.3158, allocations: 11.98 kB / 1.092 GB, free: 12.66 MB / 0.8575 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 9.064e-05/0.3159, allocations: 121.8 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.448e-05/0.3159, allocations: 4 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002861/0.3162, allocations: 121.8 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3162, allocations: 0 / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3162, allocations: 4 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3162, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003932/0.3166, allocations: 358.5 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3167, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.786e-05/0.3167, allocations: 19.92 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3167, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.3168, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3168, allocations: 4 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/0.3168, allocations: 11.94 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.3171, allocations: 195.5 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.698e-05/0.3171, allocations: 81.02 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.3171, allocations: 0 / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.472e-05/0.3172, allocations: 7.984 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.3173, allocations: 15.92 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.3173, allocations: 8 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.154e-05/0.3173, allocations: 87.31 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3173, allocations: 0 / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002619/0.3176, allocations: 23.98 kB / 1.093 GB, free: 11.52 MB / 0.8575 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.000575/0.3182, allocations: 0.7475 MB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003539/0.3185, allocations: 167.3 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3186, allocations: 0 / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.3187, allocations: 39.97 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.319, allocations: 20.77 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.3209, allocations: 1.636 MB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.3212, allocations: 0.6846 MB / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.897e-05/0.3212, allocations: 11.73 kB / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.187e-05/0.3213, allocations: 11.44 kB / 1.097 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of SimCode: time 5.61e-07/0.3213, allocations: 4 kB / 1.097 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02033/0.3416, allocations: 2.501 MB / 1.099 GB, free: 5.637 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.531/7.873, allocations: 6.469 kB / 1.099 GB, free: 5.633 MB / 0.8575 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