Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_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.001551/0.001551, 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.001966/0.001966, allocations: 193.8 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.519/2.519, allocations: 390.3 MB / 0.6647 GB, free: 416 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 63.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7387/0.7408, allocations: 140.4 MB / 0.9497 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.002322/0.7432, allocations: 0.6451 MB / 0.9504 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.7446, allocations: 1.169 MB / 0.9515 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.7447, allocations: 4 kB / 0.9515 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.773e-05/0.7447, allocations: 7.922 kB / 0.9515 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.486e-05/0.7448, allocations: 13.2 kB / 0.9515 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005036/0.7453, allocations: 142.1 kB / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001804/0.7455, allocations: 133.7 kB / 0.9518 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.7456, allocations: 12.59 kB / 0.9518 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.7457, allocations: 54.89 kB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.7458, allocations: 44.53 kB / 0.9519 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.7459, allocations: 12.59 kB / 0.9519 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.857e-05/0.746, allocations: 29.02 kB / 0.9519 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.14e-05/0.746, allocations: 19.06 kB / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.255e-05/0.7461, allocations: 43.81 kB / 0.952 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.7463, allocations: 117.7 kB / 0.9521 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.7463, allocations: 0.8125 kB / 0.9521 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.405e-06/0.7463, allocations: 0 / 0.9521 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.263e-06/0.7463, allocations: 0 / 0.9521 GB, free: 7.227 MB / 0.7169 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.0006502/0.747, allocations: 404 kB / 0.9525 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.747, allocations: 9.438 kB / 0.9525 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.546e-05/0.7471, allocations: 39.69 kB / 0.9525 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.7471, allocations: 13.64 kB / 0.9526 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.7473, allocations: 175.8 kB / 0.9527 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.7473, allocations: 8.219 kB / 0.9527 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.379e-05/0.7473, allocations: 9.469 kB / 0.9527 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002209/0.7475, allocations: 73.89 kB / 0.9528 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.7476, allocations: 3.938 kB / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.7476, allocations: 1.188 kB / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.7476, allocations: 0 / 0.9528 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.7478, allocations: 40.91 kB / 0.9529 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004263/0.7482, allocations: 320.6 kB / 0.9532 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.7484, allocations: 73.98 kB / 0.9532 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.7485, allocations: 35.94 kB / 0.9533 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.7486, allocations: 1.469 kB / 0.9533 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.7488, allocations: 104.9 kB / 0.9534 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.7488, allocations: 4 kB / 0.9534 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005322/0.7494, allocations: 183.4 kB / 0.9535 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.7494, allocations: 53.97 kB / 0.9536 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.179e-05/0.7495, allocations: 117.7 kB / 0.9537 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.7495, allocations: 28.2 kB / 0.9537 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.7496, allocations: 88.23 kB / 0.9538 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/0.7496, allocations: 18.64 kB / 0.9538 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.412e-05/0.7497, allocations: 45.55 kB / 0.9539 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.408e-05/0.7498, allocations: 320.1 kB / 0.9542 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.7499, allocations: 50.5 kB / 0.9542 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.7501, allocations: 70.55 kB / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002347/0.7503, allocations: 129.5 kB / 0.9544 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.7503, allocations: 3.938 kB / 0.9544 GB, free: 5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003899/0.7507, allocations: 194.5 kB / 0.9546 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.689e-05/0.7508, allocations: 36.88 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.7508, allocations: 1.531 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.7508, allocations: 1.438 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.7509, allocations: 8.156 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.751, allocations: 6.203 kB / 0.9547 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.7512, allocations: 41.72 kB / 0.9547 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.7512, allocations: 6 kB / 0.9547 GB, free: 4.812 MB / 0.7169 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 8.118e-05/0.7513, allocations: 128.3 kB / 0.9548 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.7513, allocations: 3.438 kB / 0.9548 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.7513, allocations: 9.812 kB / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.7513, allocations: 1.25 kB / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.7513, allocations: 0 / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.7513, allocations: 4 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004418/0.7518, allocations: 410.1 kB / 0.9552 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.7518, allocations: 1.031 kB / 0.9552 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.347e-05/0.7518, allocations: 4.094 kB / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.7519, allocations: 4 kB / 0.9553 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.7519, allocations: 5.5 kB / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.7519, allocations: 1.312 kB / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.7519, allocations: 3.984 kB / 0.9553 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003844/0.7523, allocations: 243 kB / 0.9555 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.51e-05/0.7523, allocations: 87.77 kB / 0.9556 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.7524, allocations: 1.5 kB / 0.9556 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.7525, allocations: 10.83 kB / 0.9556 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.7526, allocations: 2.781 kB / 0.9556 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.7526, allocations: 16.2 kB / 0.9556 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.57e-05/0.7526, allocations: 86.06 kB / 0.9557 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.112e-06/0.7526, allocations: 4 kB / 0.9557 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002667/0.7529, allocations: 26.97 kB / 0.9557 GB, free: 3.883 MB / 0.7169 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.0005698/0.7535, allocations: 0.7783 MB / 0.9565 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003558/0.7539, allocations: 184.1 kB / 0.9567 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.7539, allocations: 0 / 0.9567 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.754, allocations: 53.94 kB / 0.9567 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.7543, allocations: 20.08 kB / 0.9567 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.7559, allocations: 1.657 MB / 0.9583 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.7561, allocations: 0.6876 MB / 0.959 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.257e-05/0.7561, allocations: 8.344 kB / 0.959 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.7561, allocations: 22.78 kB / 0.959 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.7562, allocations: 4 kB / 0.9591 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01972/0.7759, allocations: 2.701 MB / 0.9617 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.616/8.392, allocations: 2 kB / 0.9617 GB, free: 15.38 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches