Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Change",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.001605/0.001605, 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.001889/0.001889, allocations: 192.7 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.354/2.354, allocations: 390.2 MB / 0.6647 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002486/0.002486, allocations: 63.91 kB / 0.8127 GB, free: 14.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7711/0.7736, allocations: 140.4 MB / 0.9497 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.003081/0.7768, allocations: 0.7478 MB / 0.9505 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001827/0.7786, allocations: 1.144 MB / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.518e-05/0.7787, allocations: 0 / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.324e-05/0.7788, allocations: 5.594 kB / 0.9516 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.7789, allocations: 11.88 kB / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007357/0.7797, allocations: 129.2 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000211/0.7799, allocations: 125.1 kB / 0.9518 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.78, allocations: 14.8 kB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.7801, allocations: 47.59 kB / 0.9519 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.618e-05/0.7803, allocations: 47.09 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.609e-05/0.7803, allocations: 10 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.144e-05/0.7804, allocations: 20.88 kB / 0.952 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.689e-05/0.7804, allocations: 18.48 kB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.691e-05/0.7805, allocations: 44 kB / 0.952 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001915/0.7807, allocations: 108 kB / 0.9521 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.7807, allocations: 5.094 kB / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.116e-06/0.7807, allocations: 0 / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.7808, allocations: 0 / 0.9521 GB, free: 7.266 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006146/0.7814, allocations: 417.1 kB / 0.9525 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.7814, allocations: 13.64 kB / 0.9525 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.031e-05/0.7815, allocations: 33.12 kB / 0.9526 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.402e-05/0.7816, allocations: 10.09 kB / 0.9526 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.7817, allocations: 171.9 kB / 0.9528 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.7817, allocations: 6.875 kB / 0.9528 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.7817, allocations: 6.688 kB / 0.9528 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.782, allocations: 70.48 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.782, allocations: 7.922 kB / 0.9528 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.782, allocations: 4 kB / 0.9528 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.782, allocations: 1.125 kB / 0.9528 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002294/0.7823, allocations: 43.58 kB / 0.9529 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/0.7828, allocations: 331.2 kB / 0.9532 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.7831, allocations: 63.27 kB / 0.9533 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.7833, allocations: 33.5 kB / 0.9533 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.7833, allocations: 0 / 0.9533 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000313/0.7836, allocations: 87.55 kB / 0.9534 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 2.124e-06/0.7836, allocations: 0 / 0.9534 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0005603/0.7842, allocations: 143.7 kB / 0.9535 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.7842, allocations: 53.44 kB / 0.9536 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.707e-05/0.7843, allocations: 116.2 kB / 0.9537 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.7844, allocations: 32.42 kB / 0.9537 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.7844, allocations: 96.44 kB / 0.9538 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.793e-05/0.7845, allocations: 26.69 kB / 0.9538 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-05/0.7846, allocations: 40.7 kB / 0.9539 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.678e-05/0.7846, allocations: 324.2 kB / 0.9542 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.7849, allocations: 47.75 kB / 0.9542 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.7851, allocations: 84.09 kB / 0.9543 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.7854, allocations: 149.2 kB / 0.9544 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7854, allocations: 4 kB / 0.9544 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005584/0.786, allocations: 213.7 kB / 0.9546 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.06e-05/0.786, allocations: 33.3 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.7861, allocations: 2.469 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.7861, allocations: 1.406 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.7862, allocations: 15.48 kB / 0.9547 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.7862, allocations: 2.25 kB / 0.9547 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.7865, allocations: 39.7 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.904e-05/0.7866, allocations: 11.25 kB / 0.9548 GB, free: 4.84 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * 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.307e-05/0.7867, allocations: 124.5 kB / 0.9549 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.7867, allocations: 6.562 kB / 0.9549 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.033e-05/0.7867, allocations: 9.75 kB / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.7867, allocations: 1.438 kB / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.7868, allocations: 1.25 kB / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.7868, allocations: 0 / 0.9549 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005121/0.7873, allocations: 379.2 kB / 0.9552 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.7873, allocations: 0 / 0.9552 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.839e-05/0.7874, allocations: 14.7 kB / 0.9553 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.7874, allocations: 0 / 0.9553 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.7874, allocations: 1.406 kB / 0.9553 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.7874, allocations: 0 / 0.9553 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.7874, allocations: 5.688 kB / 0.9553 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003448/0.7878, allocations: 207.2 kB / 0.9555 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.7878, allocations: 87.7 kB / 0.9556 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.7879, allocations: 5.375 kB / 0.9556 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.788, allocations: 7.703 kB / 0.9556 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.7881, allocations: 10.48 kB / 0.9556 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.7881, allocations: 11.44 kB / 0.9556 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.868e-05/0.7881, allocations: 99.88 kB / 0.9557 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7881, allocations: 0 / 0.9557 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004683/0.7886, allocations: 24.09 kB / 0.9557 GB, free: 3.934 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: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0006377/0.7893, allocations: 0.7482 MB / 0.9564 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004581/0.7897, allocations: 175.1 kB / 0.9566 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7898, allocations: 0 / 0.9566 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.7899, allocations: 39.53 kB / 0.9566 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.7903, allocations: 22.89 kB / 0.9567 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.7929, allocations: 1.679 MB / 0.9583 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/0.793, allocations: 0.6908 MB / 0.959 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.877e-05/0.7931, allocations: 17.33 kB / 0.959 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.398e-05/0.7931, allocations: 19.28 kB / 0.959 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.7931, allocations: 0 / 0.959 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.8171, allocations: 2.513 MB / 0.9615 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.849/8.666, allocations: 14.16 kB / 0.9615 GB, free: 15.48 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change_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_Change.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches