Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 110.5 kB / 16.37 MB, free: 6.344 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.00128/0.00128, allocations: 192.6 kB / 17.3 MB, free: 5.898 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, allocations: 278.8 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9439/0.9439, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 95.86 kB / 0.682 GB, free: 7.051 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5693/0.5711, allocations: 86.97 MB / 0.767 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.007718/0.5788, allocations: 5.33 MB / 0.7722 GB, free: 14.61 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.186/0.7649, allocations: 151 MB / 0.9196 GB, free: 7.031 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/0.7662, allocations: 19.94 kB / 0.9196 GB, free: 7.012 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0007304/0.7669, allocations: 205.9 kB / 0.9198 GB, free: 6.809 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.00229/0.7693, allocations: 0.6284 MB / 0.9204 GB, free: 6.18 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.002638/0.7719, allocations: 0.9956 MB / 0.9214 GB, free: 5.191 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.002416/0.7744, allocations: 1.818 MB / 0.9232 GB, free: 3.367 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.7759, allocations: 1.164 MB / 0.9243 GB, free: 2.16 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.7771, allocations: 0.7746 MB / 0.9251 GB, free: 1.383 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009131/0.778, allocations: 0.8401 MB / 0.9259 GB, free: 0.5391 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002456/0.7783, allocations: 216 kB / 0.9261 GB, free: 336 kB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.7794, allocations: 0.5699 MB / 0.9267 GB, free: 15.76 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0004209/0.7798, allocations: 494.5 kB / 0.9271 GB, free: 15.27 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0008193/0.7807, allocations: 0.9134 MB / 0.928 GB, free: 14.36 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.002842/0.7835, allocations: 2.577 MB / 0.9305 GB, free: 11.77 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.7835, allocations: 0 / 0.9305 GB, free: 11.77 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.295e-06/0.7835, allocations: 0 / 0.9305 GB, free: 11.77 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 3.726e-05/0.7836, allocations: 4 kB / 0.9305 GB, free: 11.77 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.004267/0.7879, allocations: 1.998 MB / 0.9325 GB, free: 9.715 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.7879, allocations: 8.031 kB / 0.9325 GB, free: 9.707 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.7891, allocations: 262.6 kB / 0.9328 GB, free: 9.449 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/0.7906, allocations: 0.989 MB / 0.9337 GB, free: 8.414 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.7908, allocations: 144.8 kB / 0.9339 GB, free: 8.266 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.791, allocations: 159.9 kB / 0.934 GB, free: 8.109 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/0.7937, allocations: 1.585 MB / 0.9356 GB, free: 6.469 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.156e-05/0.7937, allocations: 0 / 0.9356 GB, free: 6.469 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/0.7939, allocations: 68 kB / 0.9356 GB, free: 6.402 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.7939, allocations: 36 kB / 0.9357 GB, free: 6.367 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002654/0.7966, allocations: 1.604 MB / 0.9372 GB, free: 4.758 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007339/0.8039, allocations: 4.193 MB / 0.9413 GB, free: 496 kB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.8064, allocations: 1.088 MB / 0.9424 GB, free: 15.39 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007902/0.8073, allocations: 423.7 kB / 0.9428 GB, free: 14.98 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.933e-05/0.8074, allocations: 41 kB / 0.9428 GB, free: 14.94 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/0.8087, allocations: 0.7075 MB / 0.9435 GB, free: 14.21 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=111): time 3.517e-06/0.8087, allocations: 0 / 0.9435 GB, free: 14.21 MB / 0.7169 GB Notification: Performance of matching and sorting (n=111): time 0.004025/0.8128, allocations: 1.653 MB / 0.9451 GB, free: 12.54 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.8129, allocations: 192.9 kB / 0.9453 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.8142, allocations: 0.8414 MB / 0.9461 GB, free: 11.45 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001184/0.8143, allocations: 49.7 kB / 0.9462 GB, free: 11.39 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005598/0.8149, allocations: 0.6245 MB / 0.9468 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003248/0.8152, allocations: 358.8 kB / 0.9471 GB, free: 10.41 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003367/0.8155, allocations: 226.8 kB / 0.9474 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.8157, allocations: 341.9 kB / 0.9477 GB, free: 9.84 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007557/0.8164, allocations: 402.4 kB / 0.9481 GB, free: 9.445 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008481/0.8173, allocations: 0.5072 MB / 0.9486 GB, free: 8.926 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.8189, allocations: 0.8838 MB / 0.9494 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.8189, allocations: 3.938 kB / 0.9494 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002881/0.8218, allocations: 1.203 MB / 0.9506 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.8218, allocations: 4 kB / 0.9506 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.8218, allocations: 4 kB / 0.9506 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005989/0.8224, allocations: 84.83 kB / 0.9507 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009545/0.8234, allocations: 231.6 kB / 0.9509 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.8255, allocations: 1.639 MB / 0.9525 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.8266, allocations: 135 kB / 0.9526 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.8268, allocations: 47.97 kB / 0.9527 GB, free: 4.527 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 26 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,HDirWal.incAng.decAng.tNext,$PRE.HDirWal.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,$PRE.HDirFlo.incAng.decAng.tNext,HDirRoo.incAng.decAng.tNext,$PRE.HDirRoo.incAng.decAng.tNext,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0007967/0.8276, allocations: 364.4 kB / 0.953 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003545/0.8279, allocations: 110.6 kB / 0.9531 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003598/0.8315, allocations: 1.532 MB / 0.9546 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.8316, allocations: 12 kB / 0.9546 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.8316, allocations: 3.938 kB / 0.9546 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.8316, allocations: 7.969 kB / 0.9547 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.8337, allocations: 1.368 MB / 0.956 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.8338, allocations: 0 / 0.956 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008613/0.8346, allocations: 195.8 kB / 0.9562 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004667/0.8351, allocations: 76.73 kB / 0.9562 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.8352, allocations: 31.97 kB / 0.9563 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5238/1.359, allocations: 1.667 MB / 0.9579 GB, free: 186.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/1.359, allocations: 1.281 kB / 0.9579 GB, free: 186.6 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003745/1.363, allocations: 1.286 MB / 0.9592 GB, free: 186.4 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006798/1.364, allocations: 354.4 kB / 0.9595 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001845/1.364, allocations: 39.48 kB / 0.9595 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009225/1.365, allocations: 81.02 kB / 0.9596 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002985/1.365, allocations: 98.77 kB / 0.9597 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/1.365, allocations: 53.62 kB / 0.9598 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001141/1.366, allocations: 0.6169 MB / 0.9604 GB, free: 185.9 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/1.366, allocations: 1.094 kB / 0.9604 GB, free: 185.9 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001282/1.368, allocations: 447.4 kB / 0.9608 GB, free: 185.9 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001534/1.369, allocations: 0.6146 MB / 0.9614 GB, free: 185.7 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002588/1.372, allocations: 1.148 MB / 0.9625 GB, free: 185.2 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.372, allocations: 1.062 kB / 0.9625 GB, free: 185.2 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001272/1.373, allocations: 0.6849 MB / 0.9632 GB, free: 184.9 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/1.374, allocations: 328.8 kB / 0.9635 GB, free: 184.8 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005233/1.38, allocations: 2.606 MB / 0.966 GB, free: 183.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/1.381, allocations: 1.224 MB / 0.9672 GB, free: 182.8 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005744/1.381, allocations: 155.9 kB / 0.9674 GB, free: 182.8 MB / 0.7169 GB Notification: Performance of SimCode: time 1.203e-06/1.381, allocations: 0 / 0.9674 GB, free: 182.8 MB / 0.7169 GB Notification: Performance of Templates: time 0.02944/1.411, allocations: 26.78 MB / 0.9935 GB, free: 159.8 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)