Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001575/0.001575, allocations: 193.1 kB / 16.13 MB, free: 6.664 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.53/1.53, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.926/2.926, allocations: 472.6 MB / 0.7447 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 66.81 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4126, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet): time 0.002808/0.4155, allocations: 0.9473 MB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00409/0.4196, allocations: 2.533 MB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.307e-05/0.4197, allocations: 4 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.156e-05/0.4198, allocations: 7.875 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003875/0.4202, allocations: 39.75 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.4213, allocations: 422.8 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003736/0.4217, allocations: 307.1 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.021e-05/0.4218, allocations: 13.67 kB / 1.072 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.4221, allocations: 131.6 kB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002476/0.4223, allocations: 147.5 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.4224, allocations: 12 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000576/0.4229, allocations: 303.7 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.935e-05/0.423, allocations: 59.78 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.4232, allocations: 111.5 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007733/0.424, allocations: 0.534 MB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.424, allocations: 4 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.332e-06/0.424, allocations: 0 / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.243e-06/0.424, allocations: 0 / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001729/0.4257, allocations: 0.6529 MB / 1.074 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.4258, allocations: 12.03 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.4259, allocations: 28.66 kB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.4262, allocations: 192.7 kB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/0.4264, allocations: 127.4 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.128e-05/0.4265, allocations: 20.38 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.4269, allocations: 244.4 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.4269, allocations: 7.922 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.4269, allocations: 7.938 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.427, allocations: 4 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002344/0.4272, allocations: 115.8 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005033/0.4277, allocations: 407 kB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.4292, allocations: 495.2 kB / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.4295, allocations: 154.3 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.84e-05/0.4295, allocations: 8 kB / 1.075 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006422/0.4302, allocations: 323.4 kB / 1.076 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=40): time 2.475e-06/0.4302, allocations: 4 kB / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.0008752/0.4311, allocations: 405 kB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001943/0.4313, allocations: 362.5 kB / 1.076 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.4314, allocations: 167.2 kB / 1.077 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.4315, allocations: 41.7 kB / 1.077 GB, free: 1.074 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.34e-05/0.4316, allocations: 93.14 kB / 1.077 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.4317, allocations: 114.4 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.4318, allocations: 94.23 kB / 1.077 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.432, allocations: 334.8 kB / 1.077 GB, free: 436 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.4323, allocations: 121 kB / 1.077 GB, free: 316 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003193/0.4326, allocations: 161 kB / 1.077 GB, free: 148 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005635/0.4332, allocations: 274.1 kB / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4332, allocations: 0 / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007788/0.4339, allocations: 387.8 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.434, allocations: 4 kB / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.434, allocations: 4 kB / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.434, allocations: 0 / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/0.4344, allocations: 79.88 kB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.4344, allocations: 4 kB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.4347, allocations: 43.67 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.4348, allocations: 20.98 kB / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 (sunRiseSetSyd.sunUp,sunRiseSetSyd.nextSunSet,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunRise,$whenCondition7,$whenCondition8,sunRiseSetAntarctic.sunUp,sunRiseSetAntarctic.nextSunSet,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunRise,$whenCondition5,$whenCondition6,sunRiseSetSf.sunUp,sunRiseSetSf.nextSunSet,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunRise,$whenCondition3,$whenCondition4,sunRiseSetArctic.sunUp,sunRiseSetArctic.nextSunSet,$PRE.sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,$PRE.sunRiseSetArctic.nextSunRise,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001721/0.435, allocations: 165.7 kB / 1.078 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.748e-05/0.435, allocations: 31.66 kB / 1.078 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007024/0.4357, allocations: 358 kB / 1.079 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.4358, allocations: 8 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.4358, allocations: 4 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.4358, allocations: 7.984 kB / 1.079 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/0.4362, allocations: 349.1 kB / 1.079 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4362, allocations: 11.88 kB / 1.079 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002919/0.4365, allocations: 71.91 kB / 1.079 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.4365, allocations: 4 kB / 1.079 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/0.4366, allocations: 19.98 kB / 1.079 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.4366, allocations: 8 kB / 1.079 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.4366, allocations: 7.938 kB / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007204/0.4373, allocations: 493.9 kB / 1.08 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.4375, allocations: 152.5 kB / 1.08 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.506e-05/0.4376, allocations: 16 kB / 1.08 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.4378, allocations: 31.97 kB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.438, allocations: 51.88 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.156e-05/0.4381, allocations: 24.23 kB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001123/0.4382, allocations: 127.2 kB / 1.08 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4382, allocations: 0 / 1.08 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006757/0.4389, allocations: 211.7 kB / 1.08 GB, free: 13.09 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition8,$whenCondition7,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete states: 8 (sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunRise) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0006286/0.4395, allocations: 325.1 kB / 1.081 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000683/0.4402, allocations: 339.6 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4402, allocations: 0 / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.4405, allocations: 187.7 kB / 1.081 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.4408, allocations: 28 kB / 1.081 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.442, allocations: 0.6494 MB / 1.082 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.4425, allocations: 0.769 MB / 1.082 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002356/0.4427, allocations: 51.27 kB / 1.083 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.4429, allocations: 47.41 kB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of SimCode: time 6.71e-07/0.4429, allocations: 0 / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of Templates: time 0.01013/0.453, allocations: 5.308 MB / 1.088 GB, free: 5.324 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1)