Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008137/0.0008137, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008521/0.0008521, allocations: 165.9 kB / 22.46 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8787/0.8787, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.778/1.778, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.066e-06/3.066e-06, allocations: 0 / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.056e-05/2.363e-05, allocations: 5.094 kB / 0.9997 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.001436/0.001459, allocations: 0.7286 MB / 1 GB, free: 12.75 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.002716, allocations: 1.167 MB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.467e-05/0.00277, allocations: 4 kB / 1.002 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/0.002798, allocations: 7.875 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.262e-05/0.002861, allocations: 3.938 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004222/0.003283, allocations: 139.2 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.003437, allocations: 119.7 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.003538, allocations: 8 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.003647, allocations: 67.88 kB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.182e-05/0.003718, allocations: 39.94 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.003741, allocations: 15.94 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.581e-05/0.003797, allocations: 16 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.276e-05/0.00382, allocations: 19.91 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.793e-05/0.003867, allocations: 31.97 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.00403, allocations: 127.7 kB / 1.002 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.004032, allocations: 0 / 1.002 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.323e-06/0.004034, allocations: 0 / 1.002 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.004038, allocations: 0 / 1.002 GB, free: 10.98 MB / 0.9636 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.0004617/0.004499, allocations: 335.8 kB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.004537, allocations: 12.75 kB / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.004567, allocations: 38.73 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.892e-05/0.004616, allocations: 8.891 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.004956, allocations: 117.6 kB / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.004971, allocations: 4.375 kB / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.004988, allocations: 12.38 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.005123, allocations: 66.16 kB / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.00513, allocations: 4.172 kB / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.005139, allocations: 384 / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.005145, allocations: 8.125 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.255e-05/0.005238, allocations: 43.94 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003625/0.0056, allocations: 275.9 kB / 1.003 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.005717, allocations: 54.48 kB / 1.003 GB, free: 9.891 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.315e-05/0.00577, allocations: 33.03 kB / 1.003 GB, free: 9.855 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.00578, allocations: 3.938 kB / 1.003 GB, free: 9.852 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001801/0.00596, allocations: 91.36 kB / 1.003 GB, free: 9.75 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.005961, allocations: 0 / 1.003 GB, free: 9.75 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8): time 0.0002702/0.006231, allocations: 145.6 kB / 1.003 GB, free: 9.602 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.006268, allocations: 51.41 kB / 1.003 GB, free: 9.539 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.549e-05/0.006333, allocations: 121.8 kB / 1.003 GB, free: 9.41 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.00635, allocations: 33.64 kB / 1.004 GB, free: 9.371 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.414e-05/0.006395, allocations: 92.09 kB / 1.004 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.006413, allocations: 23.89 kB / 1.004 GB, free: 9.254 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.006462, allocations: 37.7 kB / 1.004 GB, free: 9.211 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.21e-05/0.006544, allocations: 318.8 kB / 1.004 GB, free: 8.891 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.006655, allocations: 81.67 kB / 1.004 GB, free: 8.805 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.006763, allocations: 121.9 kB / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.006915, allocations: 146.2 kB / 1.004 GB, free: 8.5 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.006917, allocations: 0 / 1.004 GB, free: 8.5 MB / 0.9636 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000266/0.007183, allocations: 248.8 kB / 1.005 GB, free: 8.238 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.007212, allocations: 37.69 kB / 1.005 GB, free: 8.195 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.007218, allocations: 4 kB / 1.005 GB, free: 8.191 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.00723, allocations: 3.938 kB / 1.005 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-05/0.007291, allocations: 20.05 kB / 1.005 GB, free: 8.168 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.007298, allocations: 4 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.007403, allocations: 35.91 kB / 1.005 GB, free: 8.129 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.007418, allocations: 7.984 kB / 1.005 GB, free: 8.121 MB / 0.9636 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 8.002e-05/0.007498, allocations: 117.8 kB / 1.005 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.123e-05/0.007509, allocations: 11.89 kB / 1.005 GB, free: 7.984 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.185e-05/0.007531, allocations: 8.438 kB / 1.005 GB, free: 7.977 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.007533, allocations: 4 kB / 1.005 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.007538, allocations: 4 kB / 1.005 GB, free: 7.969 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.007542, allocations: 0 / 1.005 GB, free: 7.969 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003031/0.007845, allocations: 345.5 kB / 1.005 GB, free: 7.582 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.007848, allocations: 0 / 1.005 GB, free: 7.582 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.047e-05/0.007878, allocations: 11.98 kB / 1.005 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.00788, allocations: 0 / 1.005 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.007887, allocations: 0 / 1.005 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.007888, allocations: 0 / 1.005 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.007889, allocations: 4 kB / 1.005 GB, free: 7.566 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.008053, allocations: 211.4 kB / 1.005 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.081e-05/0.008064, allocations: 7.953 kB / 1.005 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.008077, allocations: 0 / 1.005 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.254e-05/0.008119, allocations: 7.984 kB / 1.005 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.498e-05/0.008154, allocations: 11.98 kB / 1.005 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.00816, allocations: 0 / 1.005 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.444e-05/0.008195, allocations: 91.27 kB / 1.005 GB, free: 7.227 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.008195, allocations: 0 / 1.005 GB, free: 7.227 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001749/0.00837, allocations: 35.94 kB / 1.005 GB, free: 7.191 MB / 0.9636 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.0004039/0.008774, allocations: 0.7397 MB / 1.006 GB, free: 6.422 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002443/0.009018, allocations: 196.9 kB / 1.006 GB, free: 6.211 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.00902, allocations: 0 / 1.006 GB, free: 6.211 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.003e-05/0.00908, allocations: 40.17 kB / 1.006 GB, free: 6.172 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/0.009286, allocations: 24.11 kB / 1.006 GB, free: 6.148 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.01063, allocations: 1.803 MB / 1.008 GB, free: 4.203 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.874e-05/0.01068, allocations: 83.19 kB / 1.008 GB, free: 4.102 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.911e-05/0.01071, allocations: 4 kB / 1.008 GB, free: 4.098 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.131e-05/0.01075, allocations: 24.48 kB / 1.008 GB, free: 4.074 MB / 0.9636 GB Notification: Performance of SimCode: time 5.81e-07/0.01075, allocations: 0 / 1.008 GB, free: 4.074 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.02874, allocations: 3.366 MB / 1.012 GB, free: 0.8711 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.628/6.657, allocations: 6.344 kB / 1.012 GB, free: 0.8672 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable change.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv. Warning: Get data of variable change.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv failed! Error: Could not read variable change.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv. Warning: Get data of variable change.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.870152346789837]