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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001171/0.001171, allocations: 111.3 kB / 15.24 MB, free: 0.6484 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.00117/0.00117, allocations: 201.3 kB / 16.14 MB, free: 6.594 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.195/1.195, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.379/2.379, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 69.16 kB / 0.8985 GB, free: 36.87 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2285, allocations: 157.4 MB / 1.052 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001797/0.2304, allocations: 0.7908 MB / 1.053 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.2317, allocations: 1.209 MB / 1.054 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.848e-05/0.2317, allocations: 0 / 1.054 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.942e-05/0.2318, allocations: 3.984 kB / 1.054 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.554e-05/0.2318, allocations: 11.92 kB / 1.054 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.2322, allocations: 118.7 kB / 1.054 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.2324, allocations: 107.8 kB / 1.054 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.496e-05/0.2324, allocations: 12 kB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.836e-05/0.2325, allocations: 39.91 kB / 1.054 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.494e-05/0.2326, allocations: 43.81 kB / 1.054 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.2326, allocations: 4 kB / 1.054 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.465e-05/0.2327, allocations: 27.92 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.785e-05/0.2327, allocations: 7.984 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.947e-05/0.2328, allocations: 35.84 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.2329, allocations: 104 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2329, allocations: 8 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.42e-07/0.2329, allocations: 0 / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.2329, allocations: 0 / 1.055 GB, free: 5.668 MB / 0.8106 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.0004917/0.2334, allocations: 409 kB / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2335, allocations: 11.97 kB / 1.055 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.682e-05/0.2335, allocations: 34.69 kB / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.2336, allocations: 8.844 kB / 1.055 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.236e-05/0.2336, allocations: 164.4 kB / 1.055 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.2337, allocations: 16.36 kB / 1.055 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.2337, allocations: 8.375 kB / 1.055 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.2339, allocations: 70.14 kB / 1.055 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.2339, allocations: 7.922 kB / 1.055 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.2339, allocations: 0 / 1.055 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.2339, allocations: 4 kB / 1.055 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.2341, allocations: 35.95 kB / 1.055 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003914/0.2345, allocations: 340.6 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.2346, allocations: 50.48 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.769e-05/0.2347, allocations: 28.88 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.2347, allocations: 0 / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001966/0.2349, allocations: 91.36 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.2349, allocations: 0 / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003924/0.2353, allocations: 137.5 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.2354, allocations: 55.41 kB / 1.056 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.844e-05/0.2355, allocations: 113.8 kB / 1.056 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.2355, allocations: 33.7 kB / 1.056 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.529e-05/0.2355, allocations: 88.12 kB / 1.056 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.2356, allocations: 19.78 kB / 1.056 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.48e-05/0.2356, allocations: 37.7 kB / 1.056 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.204e-05/0.2357, allocations: 318.8 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.2359, allocations: 51.95 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.236, allocations: 75.39 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.2363, allocations: 129 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2363, allocations: 0 / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003823/0.2367, allocations: 195.2 kB / 1.057 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.2367, allocations: 41.62 kB / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.2367, allocations: 0 / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.2367, allocations: 4 kB / 1.057 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.367e-05/0.2368, allocations: 19.92 kB / 1.057 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.2368, allocations: 0 / 1.057 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.237, allocations: 39.94 kB / 1.057 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.2371, allocations: 11.98 kB / 1.057 GB, free: 2.785 MB / 0.8106 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.663e-05/0.2371, allocations: 121.7 kB / 1.057 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/0.2372, allocations: 4 kB / 1.057 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002735/0.2374, allocations: 117.9 kB / 1.057 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2375, allocations: 0 / 1.057 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2375, allocations: 4.469 kB / 1.057 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2375, allocations: 4 kB / 1.057 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00036/0.2378, allocations: 358.4 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2378, allocations: 4 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.822e-05/0.2379, allocations: 11.92 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2379, allocations: 3.938 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.2379, allocations: 4 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2379, allocations: 0 / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2379, allocations: 7.938 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.2382, allocations: 199.5 kB / 1.058 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.043e-05/0.2382, allocations: 81.02 kB / 1.058 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.2383, allocations: 4 kB / 1.058 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.423e-05/0.2384, allocations: 7.984 kB / 1.058 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.248e-05/0.2384, allocations: 16 kB / 1.058 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.2384, allocations: 7.984 kB / 1.058 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.961e-05/0.2385, allocations: 95.2 kB / 1.058 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2385, allocations: 0 / 1.058 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002413/0.2387, allocations: 20 kB / 1.058 GB, free: 1.629 MB / 0.8106 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.0004869/0.2392, allocations: 0.7397 MB / 1.059 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003147/0.2395, allocations: 163.9 kB / 1.059 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2395, allocations: 0 / 1.059 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.2396, allocations: 43.91 kB / 1.059 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.2399, allocations: 19.25 kB / 1.059 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.2416, allocations: 1.636 MB / 1.061 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.2418, allocations: 0.6893 MB / 1.061 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.995e-05/0.2418, allocations: 0 / 1.061 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.2419, allocations: 23.42 kB / 1.061 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2419, allocations: 4 kB / 1.061 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.411/0.6529, allocations: 2.197 MB / 1.064 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002418/0.6532, allocations: 220.6 kB / 1.064 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.958/2.612, allocations: 2.031 kB / 1.064 GB, free: 11.82 MB / 0.8262 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