Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sunRiseSetArctic.nextSunRise|sunRiseSetArctic.nextSunSet|sunRiseSetArctic.sunUp|sunRiseSetSf.nextSunRise|sunRiseSetSf.nextSunSet|sunRiseSetSf.sunUp|sunRiseSetAntarctic.nextSunRise|sunRiseSetAntarctic.nextSunSet|sunRiseSetAntarctic.sunUp|sunRiseSetSyd.nextSunRise|sunRiseSetSyd.nextSunSet|sunRiseSetSyd.sunUp",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") translateModel(Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sunRiseSetArctic.nextSunRise|sunRiseSetArctic.nextSunSet|sunRiseSetArctic.sunUp|sunRiseSetSf.nextSunRise|sunRiseSetSf.nextSunSet|sunRiseSetSf.sunUp|sunRiseSetAntarctic.nextSunRise|sunRiseSetAntarctic.nextSunSet|sunRiseSetAntarctic.sunUp|sunRiseSetSyd.nextSunRise|sunRiseSetSyd.nextSunSet|sunRiseSetSyd.sunUp",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.271/2.271, allocations: 387.1 MB / 399.7 MB, free: 9.441 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001176, allocations: 180.9 kB / 492.3 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 221.3 MB / 0.7871 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 104.1 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.983e-05, allocations: 7.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2514, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8714/1.123, allocations: 150 MB / 1.359 GB, free: 19.1 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/1.123, allocations: 68.55 kB / 1.359 GB, free: 19.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03159/1.155, allocations: 10.52 MB / 1.369 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.052e-06/1.155, allocations: 0 / 1.369 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.115e-06/1.155, allocations: 3.812 kB / 1.369 GB, free: 34.23 MB / 0.8386 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.001164/1.156, allocations: 0.6236 MB / 1.37 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/1.156, allocations: 11.62 kB / 1.37 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.19e-05/1.156, allocations: 19.53 kB / 1.37 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/1.156, allocations: 192.1 kB / 1.37 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001245/1.156, allocations: 131.4 kB / 1.37 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/1.156, allocations: 22.75 kB / 1.37 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/1.157, allocations: 235.7 kB / 1.37 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/1.157, allocations: 0 / 1.37 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/1.157, allocations: 5.969 kB / 1.37 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/1.157, allocations: 7.719 kB / 1.37 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/1.157, allocations: 109.1 kB / 1.37 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003476/1.157, allocations: 394.7 kB / 1.371 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/1.159, allocations: 494.3 kB / 1.371 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/1.159, allocations: 161.3 kB / 1.371 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.517e-05/1.159, allocations: 11.47 kB / 1.372 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000363/1.159, allocations: 302.1 kB / 1.372 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=40): time 1.753e-06/1.159, allocations: 7.844 kB / 1.372 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40): time 0.0005376/1.16, allocations: 314.1 kB / 1.372 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.816e-05/1.16, allocations: 349 kB / 1.372 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/1.16, allocations: 159.1 kB / 1.373 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/1.16, allocations: 43.28 kB / 1.373 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.062e-05/1.16, allocations: 94.7 kB / 1.373 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.069e-05/1.16, allocations: 111.5 kB / 1.373 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.038e-05/1.16, allocations: 10.44 kB / 1.373 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001014/1.16, allocations: 335.1 kB / 1.373 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/1.16, allocations: 105.9 kB / 1.373 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/1.161, allocations: 156.5 kB / 1.373 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/1.161, allocations: 122.7 kB / 1.374 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.161, allocations: 0 / 1.374 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000504/1.161, allocations: 351.5 kB / 1.374 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/1.161, allocations: 5 kB / 1.374 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/1.161, allocations: 3.812 kB / 1.374 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/1.161, allocations: 3.938 kB / 1.374 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/1.162, allocations: 79.72 kB / 1.374 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/1.162, allocations: 6.828 kB / 1.374 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/1.162, allocations: 59.62 kB / 1.374 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-05/1.162, allocations: 20.03 kB / 1.374 GB, free: 31.18 MB / 0.8386 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 ($whenCondition8,$whenCondition7,$PRE.sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunRise,$PRE.sunRiseSetSyd.nextSunSet,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp,$whenCondition6,$whenCondition5,$PRE.sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunRise,$PRE.sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,$whenCondition4,$whenCondition3,$PRE.sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunRise,$PRE.sunRiseSetSf.nextSunSet,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,$whenCondition2,$whenCondition1,$PRE.sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunRise,$PRE.sunRiseSetArctic.nextSunSet,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.162, allocations: 140.3 kB / 1.374 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/1.162, allocations: 25.81 kB / 1.374 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005897/1.163, allocations: 365.1 kB / 1.375 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/1.163, allocations: 7.656 kB / 1.375 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/1.163, allocations: 3.875 kB / 1.375 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/1.163, allocations: 7.359 kB / 1.375 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/1.163, allocations: 346.4 kB / 1.375 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/1.163, allocations: 3.875 kB / 1.375 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/1.164, allocations: 75.08 kB / 1.375 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/1.164, allocations: 3.875 kB / 1.375 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.506e-05/1.164, allocations: 17.38 kB / 1.375 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/1.164, allocations: 11.66 kB / 1.375 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/1.164, allocations: 0 / 1.375 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007069/1.164, allocations: 0.6052 MB / 1.376 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/1.165, allocations: 153.5 kB / 1.376 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.71e-05/1.165, allocations: 20.98 kB / 1.376 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/1.165, allocations: 40.11 kB / 1.376 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/1.165, allocations: 48.09 kB / 1.376 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/1.165, allocations: 22.06 kB / 1.376 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.214e-05/1.165, allocations: 130.9 kB / 1.376 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.165, allocations: 0 / 1.376 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007696/1.166, allocations: 232.7 kB / 1.376 GB, free: 30.09 MB / 0.8386 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006578/1.167, allocations: 333.4 kB / 1.377 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005291/1.167, allocations: 313.1 kB / 1.377 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.167, allocations: 3.812 kB / 1.377 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000262/1.167, allocations: 180.9 kB / 1.377 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/1.168, allocations: 19.05 kB / 1.377 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008163/1.168, allocations: 441.7 kB / 1.377 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/1.169, allocations: 0.7666 MB / 1.378 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002206/1.169, allocations: 60.44 kB / 1.378 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/1.169, allocations: 50 kB / 1.378 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of SimCode: time 2.11e-07/1.169, allocations: 0 / 1.378 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of Templates: time 0.008121/1.177, allocations: 4.818 MB / 1.383 GB, free: 27.98 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Utilities_Validation_SunRiseSet.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Utilities.Validation.SunRiseSet.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.sunUp,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.sunUp,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.sunUp,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.sunUp Variables in the result:sunRiseSetAntarctic.lat,sunRiseSetAntarctic.lon,sunRiseSetAntarctic.nextSunRise,sunRiseSetAntarctic.nextSunSet,sunRiseSetAntarctic.staTim,sunRiseSetAntarctic.sunUp,sunRiseSetAntarctic.timDifLocCiv,sunRiseSetAntarctic.timZon,sunRiseSetArctic.lat,sunRiseSetArctic.lon,sunRiseSetArctic.nextSunRise,sunRiseSetArctic.nextSunSet,sunRiseSetArctic.staTim,sunRiseSetArctic.sunUp,sunRiseSetArctic.timDifLocCiv,sunRiseSetArctic.timZon,sunRiseSetSf.lat,sunRiseSetSf.lon,sunRiseSetSf.nextSunRise,sunRiseSetSf.nextSunSet,sunRiseSetSf.staTim,sunRiseSetSf.sunUp,sunRiseSetSf.timDifLocCiv,sunRiseSetSf.timZon,sunRiseSetSyd.lat,sunRiseSetSyd.lon,sunRiseSetSyd.nextSunRise,sunRiseSetSyd.nextSunSet,sunRiseSetSyd.staTim,sunRiseSetSyd.sunUp,sunRiseSetSyd.timDifLocCiv,sunRiseSetSyd.timZon,time