Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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.001181/0.001181, allocations: 68.47 kB / 19.17 MB, free: 0.7344 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.001278/0.001278, allocations: 173.9 kB / 22.46 MB, free: 2.09 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.9335/0.9335, allocations: 177.2 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.8/1.8, allocations: 389.1 MB / 0.633 GB, free: 12.66 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.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.321e-05/2.508e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002195/0.00222, allocations: 1.416 MB / 1.001 GB, free: 12.09 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007184/0.002938, allocations: 470.9 kB / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.066e-05/0.002989, allocations: 0 / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 8.811e-05/0.003077, allocations: 7.938 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.311e-05/0.00315, allocations: 11.86 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008477/0.003998, allocations: 242 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.00421, allocations: 143.8 kB / 1.002 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 5.416e-05/0.004264, allocations: 11.98 kB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.176e-05/0.004356, allocations: 79.88 kB / 1.002 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.727e-05/0.004443, allocations: 39.89 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.004469, allocations: 8 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002975/0.004767, allocations: 187.7 kB / 1.002 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 7.345e-05/0.00484, allocations: 35.91 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.333e-05/0.004903, allocations: 35.91 kB / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.005252, allocations: 271.4 kB / 1.002 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.005255, allocations: 0 / 1.002 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.744e-06/0.005257, allocations: 0 / 1.002 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.005263, allocations: 4 kB / 1.002 GB, free: 10.58 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006183/0.005882, allocations: 376 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.005931, allocations: 12.75 kB / 1.003 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.005972, allocations: 38.69 kB / 1.003 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.006018, allocations: 16.84 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.006203, allocations: 157.5 kB / 1.003 GB, free: 9.926 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.006218, allocations: 8.375 kB / 1.003 GB, free: 9.918 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.006239, allocations: 16.36 kB / 1.003 GB, free: 9.902 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.006392, allocations: 79.95 kB / 1.003 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.006401, allocations: 192 / 1.003 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.00641, allocations: 4.375 kB / 1.003 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.006422, allocations: 4.125 kB / 1.003 GB, free: 9.805 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.42e-05/0.006486, allocations: 43.91 kB / 1.003 GB, free: 9.762 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.006683, allocations: 181.7 kB / 1.003 GB, free: 9.539 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 8.992e-05/0.006773, allocations: 73.25 kB / 1.003 GB, free: 9.449 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.454e-05/0.006827, allocations: 49.75 kB / 1.004 GB, free: 9.395 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.015e-05/0.006838, allocations: 0 / 1.004 GB, free: 9.395 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001861/0.007024, allocations: 113 kB / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.007025, allocations: 0 / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14): time 0.0002834/0.007308, allocations: 193.4 kB / 1.004 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.007365, allocations: 89.09 kB / 1.004 GB, free: 8.965 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.007465, allocations: 147.9 kB / 1.004 GB, free: 8.812 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.007488, allocations: 37.64 kB / 1.004 GB, free: 8.77 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.926e-05/0.007537, allocations: 100.5 kB / 1.004 GB, free: 8.664 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.007576, allocations: 39.69 kB / 1.004 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.431e-05/0.007641, allocations: 49.7 kB / 1.004 GB, free: 8.57 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.007736, allocations: 326.8 kB / 1.005 GB, free: 8.242 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.982e-05/0.007786, allocations: 39.98 kB / 1.005 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003091/0.008095, allocations: 0.604 MB / 1.005 GB, free: 7.445 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.008225, allocations: 97.62 kB / 1.005 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.008228, allocations: 4 kB / 1.005 GB, free: 7.34 MB / 0.9636 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001805/0.008408, allocations: 161.4 kB / 1.005 GB, free: 7.176 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.008426, allocations: 11.94 kB / 1.005 GB, free: 7.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.008449, allocations: 0 / 1.005 GB, free: 7.164 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.008464, allocations: 4 kB / 1.005 GB, free: 7.16 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.922e-05/0.008543, allocations: 15.94 kB / 1.005 GB, free: 7.145 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.00855, allocations: 0 / 1.005 GB, free: 7.145 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.00873, allocations: 70.42 kB / 1.006 GB, free: 7.078 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.008741, allocations: 8 kB / 1.006 GB, free: 7.07 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 0.0001066/0.008848, allocations: 133.8 kB / 1.006 GB, free: 6.93 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/0.008862, allocations: 11.91 kB / 1.006 GB, free: 6.918 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.322e-05/0.008895, allocations: 20.7 kB / 1.006 GB, free: 6.895 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.008898, allocations: 4 kB / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.008903, allocations: 96 / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.00891, allocations: 7.984 kB / 1.006 GB, free: 6.883 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.009024, allocations: 152.7 kB / 1.006 GB, free: 6.691 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.009026, allocations: 0 / 1.006 GB, free: 6.691 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.472e-05/0.009051, allocations: 15.92 kB / 1.006 GB, free: 6.676 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.009054, allocations: 0 / 1.006 GB, free: 6.676 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.009064, allocations: 3.938 kB / 1.006 GB, free: 6.672 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.009066, allocations: 3.938 kB / 1.006 GB, free: 6.668 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.009067, allocations: 4 kB / 1.006 GB, free: 6.664 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001675/0.009234, allocations: 173.9 kB / 1.006 GB, free: 6.473 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.044e-05/0.009245, allocations: 11.95 kB / 1.006 GB, free: 6.461 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.009264, allocations: 11.94 kB / 1.006 GB, free: 6.449 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.142e-05/0.009286, allocations: 3.984 kB / 1.006 GB, free: 6.445 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.192e-05/0.009328, allocations: 4 kB / 1.006 GB, free: 6.441 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.009334, allocations: 8 kB / 1.006 GB, free: 6.434 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.451e-05/0.009388, allocations: 119.2 kB / 1.006 GB, free: 6.316 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.009389, allocations: 3.938 kB / 1.006 GB, free: 6.312 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002345/0.009623, allocations: 71.86 kB / 1.006 GB, free: 6.242 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext) * 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.0005067/0.01013, allocations: 0.7887 MB / 1.007 GB, free: 5.418 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002157/0.01035, allocations: 168.2 kB / 1.007 GB, free: 5.242 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01035, allocations: 0 / 1.007 GB, free: 5.242 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.578e-05/0.01039, allocations: 43.92 kB / 1.007 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.01052, allocations: 0 / 1.007 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.01185, allocations: 1.732 MB / 1.009 GB, free: 3.375 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.695e-05/0.01191, allocations: 97.05 kB / 1.009 GB, free: 3.254 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.557e-05/0.01195, allocations: 8.719 kB / 1.009 GB, free: 3.246 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/0.01199, allocations: 32.5 kB / 1.009 GB, free: 3.215 MB / 0.9636 GB Notification: Performance of SimCode: time 6.01e-07/0.012, allocations: 0 / 1.009 GB, free: 3.215 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.0318, allocations: 4.805 MB / 1.014 GB, free: 14.59 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.774/6.806, allocations: 8.531 kB / 1.014 GB, free: 14.59 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv --start-time -86400 --stop-time 1.2096e+06 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 518.4 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable occSchDay.occupied in file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.244907113723457]