Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_dev_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_dev_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",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.005792/0.005792, allocations: 102.8 kB / 15.73 MB, free: 5.984 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.00126/0.00126, allocations: 195.2 kB / 16.67 MB, free: 5.91 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8195/0.8195, allocations: 135.1 MB / 425.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 61.12 kB / 0.5851 GB, free: 21.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1793, allocations: 80.92 MB / 0.6641 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.003122/0.1825, allocations: 1.41 MB / 0.6655 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001/0.1835, allocations: 0.4944 MB / 0.666 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.992e-05/0.1836, allocations: 4 kB / 0.666 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 8.268e-05/0.1837, allocations: 3.938 kB / 0.666 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.826e-05/0.1838, allocations: 15.92 kB / 0.666 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008991/0.1847, allocations: 234.4 kB / 0.6662 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.185, allocations: 159.7 kB / 0.6664 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.692e-05/0.185, allocations: 4 kB / 0.6664 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.935e-05/0.1851, allocations: 51.91 kB / 0.6664 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.1853, allocations: 43.81 kB / 0.6665 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.1853, allocations: 16 kB / 0.6665 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002995/0.1856, allocations: 159.8 kB / 0.6666 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.418e-05/0.1857, allocations: 35.91 kB / 0.6667 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.415e-05/0.1858, allocations: 55.77 kB / 0.6667 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003707/0.1862, allocations: 230.3 kB / 0.6669 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1862, allocations: 0 / 0.6669 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.134e-06/0.1862, allocations: 0 / 0.6669 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.154e-06/0.1862, allocations: 4 kB / 0.6669 GB, free: 3.445 MB / 0.4981 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.0006884/0.1869, allocations: 455.8 kB / 0.6674 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.187, allocations: 13.11 kB / 0.6674 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.187, allocations: 34.69 kB / 0.6674 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.577e-05/0.1871, allocations: 12.84 kB / 0.6674 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.1873, allocations: 202.3 kB / 0.6676 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.1874, allocations: 16.36 kB / 0.6676 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.1874, allocations: 8.375 kB / 0.6677 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.1876, allocations: 79.95 kB / 0.6677 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.1876, allocations: 3.938 kB / 0.6677 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.1876, allocations: 4 kB / 0.6677 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1876, allocations: 0 / 0.6677 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.409e-05/0.1877, allocations: 39.92 kB / 0.6678 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002695/0.188, allocations: 238.4 kB / 0.668 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.1881, allocations: 85.16 kB / 0.6681 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.532e-05/0.1882, allocations: 61.75 kB / 0.6681 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.1882, allocations: 0 / 0.6681 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.1884, allocations: 113 kB / 0.6682 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.1885, allocations: 0 / 0.6682 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0003716/0.1888, allocations: 185.9 kB / 0.6684 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.1889, allocations: 85.09 kB / 0.6685 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.189, allocations: 157.7 kB / 0.6687 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.766e-05/0.1891, allocations: 37.69 kB / 0.6687 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.876e-05/0.1892, allocations: 100.5 kB / 0.6688 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.191e-05/0.1893, allocations: 35.53 kB / 0.6688 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.83e-05/0.1893, allocations: 53.7 kB / 0.6689 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1895, allocations: 322.8 kB / 0.6692 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.464e-05/0.1896, allocations: 47.97 kB / 0.6692 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.1898, allocations: 199.8 kB / 0.6694 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.1899, allocations: 93.64 kB / 0.6695 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1899, allocations: 4 kB / 0.6695 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002344/0.1902, allocations: 165.3 kB / 0.6697 GB, free: 332 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.1902, allocations: 8 kB / 0.6697 GB, free: 324 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.1902, allocations: 0 / 0.6697 GB, free: 324 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1903, allocations: 4 kB / 0.6697 GB, free: 320 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.584e-05/0.1903, allocations: 11.92 kB / 0.6697 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.1904, allocations: 4.156 kB / 0.6697 GB, free: 304 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002928/0.1907, allocations: 79.25 kB / 0.6698 GB, free: 228 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.1907, allocations: 7.984 kB / 0.6698 GB, free: 220 kB / 0.4981 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.000112/0.1908, allocations: 133.8 kB / 0.6699 GB, free: 76 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.1908, allocations: 15.84 kB / 0.6699 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.1909, allocations: 16.72 kB / 0.6699 GB, free: 44 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.1909, allocations: 11.88 kB / 0.6699 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1909, allocations: 0 / 0.6699 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1909, allocations: 0 / 0.6699 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.1911, allocations: 193.5 kB / 0.6701 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1911, allocations: 4 kB / 0.6701 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.505e-05/0.1911, allocations: 4 kB / 0.6701 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1911, allocations: 0 / 0.6701 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.1912, allocations: 7.984 kB / 0.6701 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1912, allocations: 0 / 0.6701 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1912, allocations: 0 / 0.6701 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002294/0.1914, allocations: 185.7 kB / 0.6703 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.533e-05/0.1915, allocations: 92.89 kB / 0.6704 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.1915, allocations: 4 kB / 0.6704 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.141e-05/0.1915, allocations: 4 kB / 0.6704 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.1916, allocations: 7.922 kB / 0.6704 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.1916, allocations: 4 kB / 0.6704 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 7.653e-05/0.1917, allocations: 121.7 kB / 0.6705 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1917, allocations: 0 / 0.6705 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003213/0.192, allocations: 71.98 kB / 0.6706 GB, free: 15.26 MB / 0.5137 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.0006555/0.1927, allocations: 0.7838 MB / 0.6714 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002676/0.193, allocations: 163.3 kB / 0.6715 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.193, allocations: 0 / 0.6715 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 7.06e-05/0.193, allocations: 52.09 kB / 0.6716 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/0.1932, allocations: 8 kB / 0.6716 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/0.195, allocations: 1.707 MB / 0.6733 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1953, allocations: 0.708 MB / 0.674 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.386e-05/0.1953, allocations: 8.656 kB / 0.674 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.491e-05/0.1954, allocations: 31.44 kB / 0.674 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1954, allocations: 0 / 0.674 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.2166, allocations: 4.01 MB / 0.6779 GB, free: 7.738 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.862/8.078, allocations: 7.281 kB / 0.6779 GB, free: 7.734 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_SetPoints_Examples_OccupancySchedule.fmu > IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)