Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",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.00125/0.00125, 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.001297/0.001297, allocations: 191.1 kB / 16.25 MB, free: 6.625 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.369/1.369, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.554/2.554, allocations: 437 MB / 0.7101 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.00141, allocations: 67.89 kB / 0.8689 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8226/0.8241, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.002256/0.8264, allocations: 0.7304 MB / 1.018 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001708/0.8281, allocations: 1.167 MB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.065e-05/0.8281, allocations: 0 / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/0.8282, allocations: 3.938 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.08e-05/0.8283, allocations: 7.938 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005805/0.8289, allocations: 135.5 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.8291, allocations: 131.8 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.993e-05/0.8292, allocations: 11.98 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.8293, allocations: 51.91 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.8294, allocations: 47.86 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.402e-05/0.8294, allocations: 12 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.262e-05/0.8295, allocations: 23.98 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.087e-05/0.8296, allocations: 19.86 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.386e-05/0.8297, allocations: 43.89 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002295/0.8299, allocations: 123.7 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.8299, allocations: 0 / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of FrontEnd: time 2.185e-06/0.8299, allocations: 0 / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.794e-06/0.8299, allocations: 4 kB / 1.019 GB, free: 200 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0007585/0.8307, allocations: 403.2 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.8307, allocations: 8.031 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.192e-05/0.8308, allocations: 42.73 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.74e-05/0.8309, allocations: 8.844 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.831, allocations: 168.3 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.8311, allocations: 4.375 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.338e-05/0.8311, allocations: 4.375 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002475/0.8313, allocations: 78.2 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.8314, allocations: 3.938 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.8314, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.8314, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.8316, allocations: 47.91 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005878/0.8322, allocations: 320.8 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.8324, allocations: 70.48 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.8325, allocations: 44.89 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.8325, allocations: 0 / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.8328, allocations: 103.3 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.894e-06/0.8328, allocations: 0 / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0004901/0.8333, allocations: 189.7 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.8334, allocations: 51.41 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.693e-05/0.8334, allocations: 117.9 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.8335, allocations: 33.7 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.048e-05/0.8335, allocations: 88.11 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.8336, allocations: 15.81 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.577e-05/0.8336, allocations: 41.64 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.963e-05/0.8337, allocations: 326.8 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.8339, allocations: 51.97 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.834, allocations: 70.48 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.8343, allocations: 116.2 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.8343, allocations: 4 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003728/0.8346, allocations: 195.2 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.8347, allocations: 41.69 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.8347, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.8347, allocations: 4 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.8348, allocations: 15.92 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.8348, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.835, allocations: 35.81 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.8351, allocations: 12.06 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,triggeredTrapezoid1.T,triggeredTrapezoid1.rate,triggeredTrapezoid1.endValue,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001034/0.8352, allocations: 127 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.866e-05/0.8352, allocations: 7.938 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.006e-05/0.8352, allocations: 8.375 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8353, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.8353, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.8353, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000523/0.8358, allocations: 418.2 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.8358, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.362e-05/0.8359, allocations: 4 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.8359, allocations: 0.5625 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.8359, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.8359, allocations: 3.984 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.8359, allocations: 4 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.8363, allocations: 243.3 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.688e-05/0.8363, allocations: 85.02 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.8363, allocations: 4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.503e-05/0.8364, allocations: 7.984 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.8365, allocations: 0 / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.8365, allocations: 15.92 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.55e-05/0.8365, allocations: 83.28 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9e-08/0.8366, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002568/0.8368, allocations: 35.98 kB / 1.023 GB, free: 12.13 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: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0005935/0.8374, allocations: 0.7767 MB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003369/0.8378, allocations: 183.2 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8378, allocations: 0.6562 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.8379, allocations: 51.97 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.8382, allocations: 28.17 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.8399, allocations: 1.666 MB / 1.026 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.8401, allocations: 0.6846 MB / 1.026 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.51e-05/0.8402, allocations: 8.656 kB / 1.026 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.923e-05/0.8402, allocations: 11.44 kB / 1.026 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of SimCode: time 3.51e-07/0.8402, allocations: 4 kB / 1.026 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03924/0.8795, allocations: 2.606 MB / 1.029 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.8797, allocations: 218.1 kB / 1.029 GB, free: 5.852 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/2.534, allocations: 3.375 kB / 1.029 GB, free: 5.852 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches