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.001434/0.001434, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.422 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.47/2.47, allocations: 437 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 67.88 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5768/0.578, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.00224/0.5803, allocations: 0.6579 MB / 1.018 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001482/0.5818, allocations: 1.175 MB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.609e-05/0.5819, allocations: 0 / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.32e-05/0.5819, allocations: 7.938 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.49e-05/0.582, allocations: 3.938 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005584/0.5826, allocations: 148.7 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001682/0.5827, allocations: 135.7 kB / 1.02 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.353e-05/0.5828, allocations: 8 kB / 1.02 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.91e-05/0.5829, allocations: 55.88 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.833e-05/0.583, allocations: 47.88 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.215e-05/0.5831, allocations: 12 kB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.347e-05/0.5832, allocations: 19.98 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.02e-05/0.5832, allocations: 23.91 kB / 1.02 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.873e-05/0.5833, allocations: 39.91 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.5834, allocations: 119.7 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.5834, allocations: 8 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5835, allocations: 0 / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.5835, allocations: 0 / 1.02 GB, free: 8 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.0006409/0.5841, allocations: 407.2 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.5842, allocations: 8.031 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.5842, allocations: 30.75 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.82e-05/0.5843, allocations: 12.84 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.5844, allocations: 168.3 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.5844, allocations: 12.36 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.5844, allocations: 12.38 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.5846, allocations: 74.2 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.5847, allocations: 3.938 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.5847, allocations: 3.984 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.5847, allocations: 0 / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.5848, allocations: 39.91 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004824/0.5853, allocations: 320.8 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.5856, allocations: 74.48 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.5857, allocations: 36.89 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.5857, allocations: 3.938 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002309/0.5859, allocations: 107.3 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.5859, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0005192/0.5865, allocations: 181.5 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.5865, allocations: 55.41 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.623e-05/0.5866, allocations: 117.8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.5867, allocations: 25.7 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.628e-05/0.5867, allocations: 88.14 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.5868, allocations: 15.81 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.68e-05/0.5868, allocations: 45.62 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.5869, allocations: 322.8 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.5871, allocations: 47.97 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.5872, allocations: 76.34 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000218/0.5875, allocations: 120.2 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5875, allocations: 4 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003887/0.5879, allocations: 195.2 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.5879, allocations: 33.7 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.5879, allocations: 0.8438 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.5879, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.5881, allocations: 19.92 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.5881, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.5883, allocations: 47.86 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.5883, allocations: 4 kB / 1.022 GB, free: 13.07 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 9.631e-05/0.5884, allocations: 124.4 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.5884, allocations: 0 / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.5885, allocations: 20.3 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.5885, allocations: 3.938 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.5885, allocations: 0 / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.5885, allocations: 0 / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004656/0.589, allocations: 410.3 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.589, allocations: 3.938 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.362e-05/0.589, allocations: 11.98 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.589, allocations: 0 / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.589, allocations: 4 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.589, allocations: 0 / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.589, allocations: 0 / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003436/0.5894, allocations: 243.4 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.5895, allocations: 81.02 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.5895, allocations: 7.984 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.844e-05/0.5896, allocations: 0 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.5896, allocations: 11.98 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.5896, allocations: 7.938 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.344e-05/0.5897, allocations: 91.27 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5897, allocations: 0 / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002483/0.59, allocations: 24 kB / 1.023 GB, free: 11.95 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.0005969/0.5906, allocations: 0.7842 MB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000342/0.5909, allocations: 191.2 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.5909, allocations: 0 / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.5911, allocations: 52.11 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.5913, allocations: 19.91 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.5931, allocations: 1.655 MB / 1.026 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.5933, allocations: 0.6885 MB / 1.027 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.049e-05/0.5934, allocations: 8.656 kB / 1.027 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.5934, allocations: 23.42 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of SimCode: time 1.9e-07/0.5934, allocations: 0 / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.6106, allocations: 2.698 MB / 1.029 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.027/7.638, allocations: 13.88 kB / 1.029 GB, free: 5.773 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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