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.001044/0.001044, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00116/0.00116, allocations: 191 kB / 16.25 MB, free: 6.637 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.419/1.419, allocations: 222.9 MB / 239.9 MB, free: 4.445 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.423/2.423, allocations: 390.2 MB / 0.6644 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 67.89 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7485/0.7501, allocations: 140.4 MB / 0.9493 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.002942/0.7531, allocations: 0.7999 MB / 0.95 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001913/0.7551, allocations: 1.137 MB / 0.9511 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.763e-05/0.7552, allocations: 5.375 kB / 0.9512 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.109e-05/0.7552, allocations: 3.938 kB / 0.9512 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.7554, allocations: 9.391 kB / 0.9512 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006926/0.7561, allocations: 121.3 kB / 0.9513 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.7563, allocations: 125.6 kB / 0.9514 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.7565, allocations: 18.44 kB / 0.9514 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.7566, allocations: 44.66 kB / 0.9515 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.7568, allocations: 37.42 kB / 0.9515 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.7568, allocations: 11.06 kB / 0.9515 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.7569, allocations: 20.47 kB / 0.9515 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.25e-05/0.757, allocations: 22.97 kB / 0.9515 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.177e-05/0.7571, allocations: 44.5 kB / 0.9516 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.7573, allocations: 104.1 kB / 0.9517 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.7573, allocations: 1.281 kB / 0.9517 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.685e-06/0.7573, allocations: 3.938 kB / 0.9517 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.7573, allocations: 3.938 kB / 0.9517 GB, free: 7.281 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.0005822/0.7579, allocations: 412.4 kB / 0.9521 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.7579, allocations: 9.344 kB / 0.9521 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.962e-05/0.758, allocations: 36.02 kB / 0.9521 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.987e-05/0.758, allocations: 13.5 kB / 0.9521 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.068e-05/0.7581, allocations: 171.6 kB / 0.9523 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.7582, allocations: 8.422 kB / 0.9523 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.369e-05/0.7582, allocations: 14.73 kB / 0.9523 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.7584, allocations: 63.72 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.7584, allocations: 3.938 kB / 0.9524 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.7584, allocations: 1.344 kB / 0.9524 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.7584, allocations: 1.375 kB / 0.9524 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.7586, allocations: 45.8 kB / 0.9524 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004597/0.7591, allocations: 332.2 kB / 0.9528 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.7593, allocations: 58.33 kB / 0.9528 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.667e-05/0.7594, allocations: 37.06 kB / 0.9529 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.7594, allocations: 1.281 kB / 0.9529 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.7597, allocations: 88.33 kB / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.7597, allocations: 0 / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004342/0.7601, allocations: 151.1 kB / 0.9531 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.7602, allocations: 58.5 kB / 0.9531 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.922e-05/0.7603, allocations: 114.4 kB / 0.9532 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.7603, allocations: 28.73 kB / 0.9533 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.259e-05/0.7603, allocations: 100.4 kB / 0.9534 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.7604, allocations: 14.69 kB / 0.9534 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.331e-05/0.7604, allocations: 37.17 kB / 0.9534 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.122e-05/0.7605, allocations: 328.8 kB / 0.9537 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.7607, allocations: 60.38 kB / 0.9538 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.7609, allocations: 85.09 kB / 0.9539 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/0.7611, allocations: 144.3 kB / 0.954 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.7612, allocations: 1.125 kB / 0.954 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004354/0.7616, allocations: 208.5 kB / 0.9542 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.7616, allocations: 41.73 kB / 0.9542 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.7617, allocations: 1.062 kB / 0.9542 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.7617, allocations: 2.094 kB / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.639e-05/0.7618, allocations: 12.39 kB / 0.9543 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.7618, allocations: 1.656 kB / 0.9543 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.762, allocations: 32.17 kB / 0.9543 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.7621, allocations: 10.31 kB / 0.9543 GB, free: 4.859 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.516e-05/0.7622, allocations: 133.1 kB / 0.9544 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/0.7622, allocations: 7.125 kB / 0.9544 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.012e-05/0.7622, allocations: 9.938 kB / 0.9544 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.7622, allocations: 1.188 kB / 0.9544 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.7622, allocations: 1.406 kB / 0.9544 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.7623, allocations: 0 / 0.9544 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004166/0.7627, allocations: 379.1 kB / 0.9548 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.7627, allocations: 0 / 0.9548 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.362e-05/0.7627, allocations: 9.734 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.7628, allocations: 1.188 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.7628, allocations: 1.125 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.7628, allocations: 0 / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.7628, allocations: 1.094 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.7631, allocations: 212.1 kB / 0.955 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.93e-05/0.7631, allocations: 87.17 kB / 0.9551 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.7632, allocations: 5.156 kB / 0.9551 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.945e-05/0.7633, allocations: 15.58 kB / 0.9551 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.899e-05/0.7633, allocations: 11.23 kB / 0.9551 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.7634, allocations: 2.281 kB / 0.9551 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.185e-05/0.7634, allocations: 101.1 kB / 0.9552 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7634, allocations: 0 / 0.9552 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003036/0.7638, allocations: 27.78 kB / 0.9553 GB, free: 3.945 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.0007491/0.7645, allocations: 0.7389 MB / 0.956 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004945/0.765, allocations: 188.4 kB / 0.9562 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.765, allocations: 0 / 0.9562 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.7652, allocations: 40.03 kB / 0.9562 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.7655, allocations: 24.08 kB / 0.9562 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.768, allocations: 1.696 MB / 0.9579 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.7682, allocations: 0.6894 MB / 0.9586 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.008e-05/0.7683, allocations: 15.34 kB / 0.9586 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.024e-05/0.7684, allocations: 19.03 kB / 0.9586 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7684, allocations: 4 kB / 0.9586 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.7855, allocations: 2.383 MB / 0.9609 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.7858, allocations: 203.4 kB / 0.9611 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.591, allocations: 0.8125 kB / 0.9611 GB, free: 15.38 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Change_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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