Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, 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.001317/0.001317, allocations: 193.4 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.506/1.506, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.85/2.85, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001378, allocations: 75.88 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.127/1.129, allocations: 140.4 MB / 0.9496 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002814/1.132, allocations: 1.41 MB / 0.951 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000894/1.133, allocations: 0.4998 MB / 0.9514 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.598e-05/1.133, allocations: 5.406 kB / 0.9514 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.467e-05/1.133, allocations: 5.094 kB / 0.9515 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.007e-05/1.133, allocations: 10.95 kB / 0.9515 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007522/1.134, allocations: 228.5 kB / 0.9517 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002075/1.134, allocations: 141 kB / 0.9518 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.228e-05/1.134, allocations: 7.734 kB / 0.9518 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.046e-05/1.134, allocations: 61 kB / 0.9519 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.817e-05/1.134, allocations: 41.92 kB / 0.9519 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.525e-05/1.134, allocations: 14.86 kB / 0.9519 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000278/1.134, allocations: 170.3 kB / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.479e-05/1.134, allocations: 33.83 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.705e-05/1.134, allocations: 55.88 kB / 0.9522 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003142/1.135, allocations: 226.1 kB / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/1.135, allocations: 0 / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.024e-06/1.135, allocations: 0 / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.242e-06/1.135, allocations: 0 / 0.9524 GB, free: 7.066 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005749/1.135, allocations: 451.3 kB / 0.9528 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/1.135, allocations: 9.406 kB / 0.9528 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.129e-05/1.136, allocations: 15.88 kB / 0.9529 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/1.136, allocations: 213 kB / 0.9531 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/1.136, allocations: 14.41 kB / 0.9531 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.259e-05/1.136, allocations: 12.7 kB / 0.9531 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001559/1.136, allocations: 78.67 kB / 0.9532 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/1.136, allocations: 5.625 kB / 0.9532 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/1.136, allocations: 3.938 kB / 0.9532 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/1.136, allocations: 1.688 kB / 0.9532 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.922e-05/1.136, allocations: 38.77 kB / 0.9532 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002194/1.136, allocations: 233 kB / 0.9534 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001145/1.136, allocations: 73.98 kB / 0.9535 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.54e-05/1.137, allocations: 65.19 kB / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/1.137, allocations: 1.031 kB / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/1.137, allocations: 107.8 kB / 0.9537 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/1.137, allocations: 0 / 0.9537 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.000374/1.137, allocations: 188 kB / 0.9538 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/1.137, allocations: 89.7 kB / 0.9539 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/1.137, allocations: 154 kB / 0.9541 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/1.137, allocations: 34.67 kB / 0.9541 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.474e-05/1.137, allocations: 102.8 kB / 0.9542 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/1.138, allocations: 40.8 kB / 0.9542 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.492e-05/1.138, allocations: 52.61 kB / 0.9543 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.893e-05/1.138, allocations: 322.5 kB / 0.9546 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.74e-05/1.138, allocations: 41.27 kB / 0.9546 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/1.138, allocations: 202.6 kB / 0.9548 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/1.138, allocations: 97.64 kB / 0.9549 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/1.138, allocations: 1.281 kB / 0.9549 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002398/1.138, allocations: 170.9 kB / 0.9551 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/1.138, allocations: 3.469 kB / 0.9551 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/1.138, allocations: 2.734 kB / 0.9551 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/1.138, allocations: 2.875 kB / 0.9551 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.83e-05/1.139, allocations: 11.67 kB / 0.9551 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/1.139, allocations: 7.922 kB / 0.9551 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000255/1.139, allocations: 76.84 kB / 0.9552 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/1.139, allocations: 3.031 kB / 0.9552 GB, free: 4.578 MB / 0.7169 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.0001042/1.139, allocations: 135.2 kB / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.202e-05/1.139, allocations: 20.59 kB / 0.9553 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.1e-05/1.139, allocations: 11.91 kB / 0.9554 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/1.139, allocations: 1.188 kB / 0.9554 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/1.139, allocations: 1.219 kB / 0.9554 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/1.139, allocations: 1.094 kB / 0.9554 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001336/1.139, allocations: 198 kB / 0.9555 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/1.139, allocations: 5.406 kB / 0.9556 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.198e-05/1.139, allocations: 5.562 kB / 0.9556 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/1.139, allocations: 1.281 kB / 0.9556 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/1.139, allocations: 1.375 kB / 0.9556 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/1.139, allocations: 13.3 kB / 0.9556 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/1.139, allocations: 0 / 0.9556 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002359/1.139, allocations: 184.7 kB / 0.9557 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/1.14, allocations: 92.27 kB / 0.9558 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/1.14, allocations: 5.094 kB / 0.9558 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.874e-05/1.14, allocations: 2.219 kB / 0.9558 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/1.14, allocations: 11.33 kB / 0.9559 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/1.14, allocations: 7.625 kB / 0.9559 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.482e-05/1.14, allocations: 116.3 kB / 0.956 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/1.14, allocations: 0 / 0.956 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003363/1.14, allocations: 73.23 kB / 0.956 GB, free: 3.828 MB / 0.7169 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.0002738/1.14, allocations: 161.2 kB / 0.9562 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002698/1.141, allocations: 164 kB / 0.9564 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.141, allocations: 0 / 0.9564 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.789e-05/1.141, allocations: 47.17 kB / 0.9564 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000177/1.141, allocations: 14.83 kB / 0.9564 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004187/1.141, allocations: 231.4 kB / 0.9566 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/1.141, allocations: 0.7059 MB / 0.9573 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.222e-05/1.142, allocations: 6.641 kB / 0.9573 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.052e-05/1.142, allocations: 12.56 kB / 0.9573 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of SimCode: time 9.52e-07/1.142, allocations: 0 / 0.9573 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of Templates: time 0.005934/1.148, allocations: 2.534 MB / 0.9598 GB, free: 1.395 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches