Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 108.8 kB / 16.41 MB, free: 6.508 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.001529/0.001529, allocations: 184 kB / 17.34 MB, free: 5.738 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.524/1.524, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00306/0.00306, allocations: 287.7 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.13/1.13, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002728/0.002728, allocations: 96.14 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7068/0.7095, allocations: 86.99 MB / 0.767 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.009918/0.7194, allocations: 5.458 MB / 0.7724 GB, free: 14.46 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.2081/0.9275, allocations: 151.6 MB / 0.9204 GB, free: 6.312 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001306/0.9289, allocations: 19.94 kB / 0.9204 GB, free: 6.293 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0007521/0.9296, allocations: 213.9 kB / 0.9206 GB, free: 6.082 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.002581/0.9322, allocations: 0.6804 MB / 0.9212 GB, free: 5.402 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.002757/0.9349, allocations: 0.9905 MB / 0.9222 GB, free: 4.418 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.002809/0.9377, allocations: 1.896 MB / 0.9241 GB, free: 2.512 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001284/0.939, allocations: 0.787 MB / 0.9248 GB, free: 1.688 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/0.9404, allocations: 0.8096 MB / 0.9256 GB, free: 0.875 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.9415, allocations: 0.8596 MB / 0.9265 GB, free: 12 kB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003003/0.9418, allocations: 208 kB / 0.9267 GB, free: 15.8 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.9431, allocations: 0.5698 MB / 0.9272 GB, free: 15.24 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0005013/0.9436, allocations: 486.4 kB / 0.9277 GB, free: 14.76 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0009382/0.9446, allocations: 0.9055 MB / 0.9286 GB, free: 13.85 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.003433/0.948, allocations: 2.496 MB / 0.931 GB, free: 11.35 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 1.491e-05/0.948, allocations: 4 kB / 0.931 GB, free: 11.35 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.405e-06/0.948, allocations: 0 / 0.931 GB, free: 11.35 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 3.008e-05/0.9481, allocations: 0 / 0.931 GB, free: 11.35 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004544/0.9526, allocations: 2.079 MB / 0.933 GB, free: 9.199 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.9527, allocations: 8.031 kB / 0.933 GB, free: 9.191 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001169/0.9538, allocations: 263.6 kB / 0.9333 GB, free: 8.934 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001826/0.9556, allocations: 1.001 MB / 0.9343 GB, free: 7.887 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.9558, allocations: 119.1 kB / 0.9344 GB, free: 7.77 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/0.956, allocations: 152 kB / 0.9345 GB, free: 7.621 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/0.9589, allocations: 1.588 MB / 0.9361 GB, free: 5.977 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.9589, allocations: 0 / 0.9361 GB, free: 5.977 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.9591, allocations: 64 kB / 0.9361 GB, free: 5.914 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.361e-05/0.9591, allocations: 40 kB / 0.9362 GB, free: 5.875 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002879/0.962, allocations: 1.631 MB / 0.9378 GB, free: 4.238 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007771/0.9698, allocations: 4.104 MB / 0.9418 GB, free: 56 kB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002211/0.972, allocations: 1.103 MB / 0.9429 GB, free: 14.95 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008253/0.9728, allocations: 431.7 kB / 0.9433 GB, free: 14.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.9729, allocations: 48.83 kB / 0.9433 GB, free: 14.48 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001348/0.9743, allocations: 0.7884 MB / 0.9441 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=128): time 2.455e-06/0.9743, allocations: 0 / 0.9441 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=128): time 0.004609/0.9789, allocations: 1.842 MB / 0.9459 GB, free: 11.81 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001597/0.979, allocations: 201.2 kB / 0.9461 GB, free: 11.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.9804, allocations: 0.8654 MB / 0.9469 GB, free: 10.68 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.9805, allocations: 53.7 kB / 0.947 GB, free: 10.62 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005855/0.9811, allocations: 0.6145 MB / 0.9476 GB, free: 9.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004094/0.9815, allocations: 432.4 kB / 0.948 GB, free: 9.57 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004069/0.9819, allocations: 258.8 kB / 0.9482 GB, free: 9.309 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001694/0.9821, allocations: 353.9 kB / 0.9486 GB, free: 8.957 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008667/0.983, allocations: 446.4 kB / 0.949 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.984, allocations: 0.5571 MB / 0.9495 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001829/0.9858, allocations: 0.9818 MB / 0.9505 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.9858, allocations: 0 / 0.9505 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=159) (initialization): time 0.0031/0.9889, allocations: 1.348 MB / 0.9518 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.9889, allocations: 4 kB / 0.9518 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.9889, allocations: 4 kB / 0.9518 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005965/0.9895, allocations: 88.77 kB / 0.9519 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.9907, allocations: 267.6 kB / 0.9522 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002358/0.993, allocations: 1.646 MB / 0.9538 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.9944, allocations: 155.1 kB / 0.9539 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.9946, allocations: 55.95 kB / 0.954 GB, free: 3.238 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,incAngEas.decAng.tNext,$PRE.incAngEas.decAng.tNext,incAngSou.decAng.tNext,$PRE.incAngSou.decAng.tNext,incAngWes.decAng.tNext,$PRE.incAngWes.decAng.tNext,incAngNor.decAng.tNext,$PRE.incAngNor.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,incAngHor.decAng.tNext,$PRE.incAngHor.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 156 * 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.0007888/0.9953, allocations: 356.1 kB / 0.9543 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002801/0.9956, allocations: 123.2 kB / 0.9544 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/0.9994, allocations: 1.71 MB / 0.9561 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/0.9994, allocations: 12 kB / 0.9561 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.9994, allocations: 4 kB / 0.9561 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.9994, allocations: 7.969 kB / 0.9561 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5408/1.54, allocations: 1.396 MB / 0.9575 GB, free: 187.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.008e-05/1.54, allocations: 1.359 kB / 0.9575 GB, free: 187.3 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002143/1.542, allocations: 222.5 kB / 0.9577 GB, free: 187.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000863/1.543, allocations: 73.53 kB / 0.9578 GB, free: 187.3 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/1.544, allocations: 39.45 kB / 0.9578 GB, free: 187.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003305/1.547, allocations: 1.669 MB / 0.9594 GB, free: 185.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.547, allocations: 0.5312 kB / 0.9594 GB, free: 185.9 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004715/1.552, allocations: 1.422 MB / 0.9608 GB, free: 185.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006854/1.552, allocations: 377.5 kB / 0.9612 GB, free: 185.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/1.552, allocations: 37.41 kB / 0.9612 GB, free: 185.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009305/1.553, allocations: 82.89 kB / 0.9613 GB, free: 185.3 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003318/1.554, allocations: 119.7 kB / 0.9614 GB, free: 185.3 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/1.554, allocations: 57.86 kB / 0.9615 GB, free: 185.3 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001273/1.555, allocations: 0.6445 MB / 0.9621 GB, free: 185 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/1.555, allocations: 1 kB / 0.9621 GB, free: 185 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002197/1.557, allocations: 472.4 kB / 0.9626 GB, free: 184.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: 20 ($whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,incAngHor.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,incAngNor.decAng.tNext,incAngWes.decAng.tNext,incAngSou.decAng.tNext,incAngEas.decAng.tNext) * Number of discrete states: 10 (incAngHor.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,incAngNor.decAng.tNext,incAngWes.decAng.tNext,incAngSou.decAng.tNext,incAngEas.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.002585/1.56, allocations: 0.621 MB / 0.9632 GB, free: 184.8 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003453/1.563, allocations: 1.218 MB / 0.9644 GB, free: 184.3 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/1.563, allocations: 3.906 kB / 0.9644 GB, free: 184.3 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001605/1.565, allocations: 0.6928 MB / 0.965 GB, free: 184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002031/1.567, allocations: 319.7 kB / 0.9653 GB, free: 183.9 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007467/1.574, allocations: 2.695 MB / 0.968 GB, free: 182.6 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/1.576, allocations: 1.236 MB / 0.9692 GB, free: 181.8 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001389/1.577, allocations: 329.2 kB / 0.9695 GB, free: 181.8 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004672/1.577, allocations: 155.3 kB / 0.9696 GB, free: 181.7 MB / 0.7169 GB Notification: Performance of SimCode: time 1.864e-06/1.577, allocations: 0 / 0.9696 GB, free: 181.7 MB / 0.7169 GB Notification: Performance of Templates: time 0.02996/1.607, allocations: 21.12 MB / 0.9903 GB, free: 163.5 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.sim & ./BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.pipe 2>&1)