Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0007833/0.0007833, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008241/0.0008241, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8738/0.8738, allocations: 177.2 MB / 202.8 MB, free: 5.555 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.72/1.72, allocations: 377.8 MB / 0.6221 GB, free: 8.621 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 0.9809 GB, free: 2.598 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.536e-05/2.727e-05, allocations: 5.375 kB / 0.9809 GB, free: 2.594 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002217/0.002245, allocations: 1.42 MB / 0.9823 GB, free: 1.164 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006434/0.002888, allocations: 462.1 kB / 0.9828 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.693e-05/0.002925, allocations: 0 / 0.9828 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 8.308e-05/0.003008, allocations: 3.938 kB / 0.9828 GB, free: 0.707 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.164e-05/0.00307, allocations: 19.86 kB / 0.9828 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006336/0.003703, allocations: 246.5 kB / 0.983 GB, free: 460 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.003885, allocations: 143.8 kB / 0.9832 GB, free: 316 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 4.582e-05/0.003931, allocations: 8 kB / 0.9832 GB, free: 308 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 9.277e-05/0.004024, allocations: 83.88 kB / 0.9832 GB, free: 224 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.567e-05/0.004099, allocations: 31.89 kB / 0.9833 GB, free: 192 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.004129, allocations: 12 kB / 0.9833 GB, free: 180 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.004378, allocations: 187.8 kB / 0.9835 GB, free: 15.99 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.669e-05/0.004455, allocations: 43.84 kB / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.718e-05/0.004522, allocations: 39.92 kB / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.004817, allocations: 271.4 kB / 0.9838 GB, free: 15.64 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.00482, allocations: 0 / 0.9838 GB, free: 15.64 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.213e-06/0.004821, allocations: 0 / 0.9838 GB, free: 15.64 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.004826, allocations: 0 / 0.9838 GB, free: 15.64 MB / 0.948 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.000482/0.005308, allocations: 381.5 kB / 0.9842 GB, free: 15.24 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.005356, allocations: 8.031 kB / 0.9842 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.349e-05/0.00539, allocations: 30.75 kB / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.00543, allocations: 16.89 kB / 0.9842 GB, free: 15.18 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.005611, allocations: 160.5 kB / 0.9844 GB, free: 15 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.005624, allocations: 8.375 kB / 0.9844 GB, free: 14.99 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.005642, allocations: 8.375 kB / 0.9844 GB, free: 14.98 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.005795, allocations: 79.95 kB / 0.9845 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.005804, allocations: 192 / 0.9845 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.005815, allocations: 4.375 kB / 0.9845 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.473e-06/0.005821, allocations: 4.125 kB / 0.9845 GB, free: 14.88 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.199e-05/0.005883, allocations: 39.91 kB / 0.9845 GB, free: 14.84 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002062/0.006089, allocations: 185.6 kB / 0.9847 GB, free: 14.62 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 9.111e-05/0.006181, allocations: 77.25 kB / 0.9848 GB, free: 14.52 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.625e-05/0.006237, allocations: 57.73 kB / 0.9848 GB, free: 14.46 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.006248, allocations: 4 kB / 0.9848 GB, free: 14.46 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.006421, allocations: 109.1 kB / 0.9849 GB, free: 14.33 MB / 0.948 GB Notification: Performance of pre-optimization done (n=14): time 9.01e-07/0.006422, allocations: 0 / 0.9849 GB, free: 14.33 MB / 0.948 GB Notification: Performance of matching and sorting (n=14): time 0.0002864/0.006708, allocations: 189.4 kB / 0.9851 GB, free: 14.14 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.006767, allocations: 89.09 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.006868, allocations: 149.8 kB / 0.9853 GB, free: 13.88 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.006892, allocations: 37.7 kB / 0.9854 GB, free: 13.84 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.006945, allocations: 92.52 kB / 0.9855 GB, free: 13.74 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 4.46e-05/0.00699, allocations: 47.72 kB / 0.9855 GB, free: 13.69 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/0.007048, allocations: 45.7 kB / 0.9855 GB, free: 13.64 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.883e-05/0.007146, allocations: 330.8 kB / 0.9859 GB, free: 13.31 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.872e-05/0.007195, allocations: 43.98 kB / 0.9859 GB, free: 13.27 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000265/0.00746, allocations: 0.5962 MB / 0.9865 GB, free: 12.52 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.007563, allocations: 93.7 kB / 0.9866 GB, free: 12.42 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.007565, allocations: 0 / 0.9866 GB, free: 12.42 MB / 0.948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000153/0.007718, allocations: 169.4 kB / 0.9867 GB, free: 12.25 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.007733, allocations: 7.938 kB / 0.9867 GB, free: 12.24 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.007753, allocations: 4 kB / 0.9867 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.007766, allocations: 4 kB / 0.9867 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.908e-05/0.007825, allocations: 11.94 kB / 0.9868 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.00783, allocations: 0 / 0.9868 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.007989, allocations: 75.84 kB / 0.9868 GB, free: 12.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.007998, allocations: 8 kB / 0.9868 GB, free: 12.14 MB / 0.948 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 8.861e-05/0.008087, allocations: 126.6 kB / 0.987 GB, free: 12 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.235e-05/0.008099, allocations: 11.91 kB / 0.987 GB, free: 11.99 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.487e-05/0.008124, allocations: 20.7 kB / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.008128, allocations: 4 kB / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.008133, allocations: 0 / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.008137, allocations: 0 / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.229e-05/0.008229, allocations: 156.7 kB / 0.9871 GB, free: 11.77 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.008232, allocations: 4 kB / 0.9871 GB, free: 11.77 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.406e-05/0.008256, allocations: 27.86 kB / 0.9872 GB, free: 11.74 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.008257, allocations: 0 / 0.9872 GB, free: 11.74 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.008267, allocations: 7.938 kB / 0.9872 GB, free: 11.73 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.008267, allocations: 0 / 0.9872 GB, free: 11.73 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.008268, allocations: 0 / 0.9872 GB, free: 11.73 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.00843, allocations: 177.9 kB / 0.9874 GB, free: 11.54 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.007e-05/0.00844, allocations: 7.953 kB / 0.9874 GB, free: 11.53 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.008455, allocations: 3.938 kB / 0.9874 GB, free: 11.53 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.213e-05/0.008477, allocations: 11.92 kB / 0.9874 GB, free: 11.52 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.008514, allocations: 4 kB / 0.9874 GB, free: 11.51 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.008519, allocations: 4 kB / 0.9874 GB, free: 11.51 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.709e-05/0.008576, allocations: 121.2 kB / 0.9875 GB, free: 11.39 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.008576, allocations: 0 / 0.9875 GB, free: 11.39 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001924/0.008769, allocations: 75.86 kB / 0.9876 GB, free: 11.32 MB / 0.948 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.0004642/0.009233, allocations: 0.7933 MB / 0.9883 GB, free: 10.49 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001945/0.009427, allocations: 159.4 kB / 0.9885 GB, free: 10.32 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.009429, allocations: 0 / 0.9885 GB, free: 10.32 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.431e-05/0.009474, allocations: 43.91 kB / 0.9885 GB, free: 10.28 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.009596, allocations: 8 kB / 0.9885 GB, free: 10.27 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.01083, allocations: 1.725 MB / 0.9902 GB, free: 8.453 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.69e-05/0.0109, allocations: 93.06 kB / 0.9903 GB, free: 8.336 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.856e-05/0.01093, allocations: 8.719 kB / 0.9903 GB, free: 8.328 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.333e-05/0.01097, allocations: 24.5 kB / 0.9904 GB, free: 8.301 MB / 0.948 GB Notification: Performance of SimCode: time 4.91e-07/0.01097, allocations: 0 / 0.9904 GB, free: 8.301 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.0281, allocations: 4.833 MB / 0.9951 GB, free: 3.656 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.838/6.866, allocations: 1.547 kB / 0.9951 GB, free: 3.656 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --stepSize=518.4 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.057586904615164]