Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.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: "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle",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.004222/0.004222, allocations: 103.8 kB / 15.74 MB, free: 6.449 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.001093/0.001093, allocations: 195.8 kB / 16.67 MB, free: 6.355 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.217/1.217, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002046/0.002046, allocations: 278.5 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8815/0.8815, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 92.2 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.136, allocations: 86.97 MB / 0.7659 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.005472/0.1415, allocations: 4.416 MB / 0.7702 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4198/0.5613, allocations: 150.6 MB / 0.9173 GB, free: 7.871 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006333/0.562, allocations: 19.88 kB / 0.9173 GB, free: 7.852 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0005609/0.5626, allocations: 180.7 kB / 0.9175 GB, free: 7.676 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.0016/0.5642, allocations: 0.513 MB / 0.918 GB, free: 7.18 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.566, allocations: 0.8537 MB / 0.9188 GB, free: 6.352 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.001321/0.5674, allocations: 1.348 MB / 0.9201 GB, free: 4.996 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008446/0.5682, allocations: 0.6233 MB / 0.9207 GB, free: 4.355 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005827/0.5688, allocations: 498.2 kB / 0.9212 GB, free: 3.867 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005804/0.5694, allocations: 0.5056 MB / 0.9217 GB, free: 3.359 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.5696, allocations: 120 kB / 0.9218 GB, free: 3.242 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007698/0.5704, allocations: 491.5 kB / 0.9223 GB, free: 2.762 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002528/0.5706, allocations: 300.2 kB / 0.9226 GB, free: 2.469 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0004948/0.5712, allocations: 0.5635 MB / 0.9231 GB, free: 1.902 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.001689/0.5729, allocations: 1.636 MB / 0.9247 GB, free: 276 kB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.5729, allocations: 0 / 0.9247 GB, free: 276 kB / 0.67 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5729, allocations: 0 / 0.9247 GB, free: 276 kB / 0.67 GB Notification: Performance of Transformations before backend: time 2.716e-05/0.5729, allocations: 0 / 0.9247 GB, free: 276 kB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 217 * Number of variables: 217 Notification: Performance of Generate backend data structure: time 0.002639/0.5755, allocations: 1.496 MB / 0.9262 GB, free: 14.72 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.5756, allocations: 12.02 kB / 0.9262 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000162/0.5758, allocations: 139.5 kB / 0.9263 GB, free: 14.57 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009068/0.5767, allocations: 200 kB / 0.9265 GB, free: 14.37 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.5779, allocations: 0.775 MB / 0.9273 GB, free: 13.55 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.5779, allocations: 71 kB / 0.9273 GB, free: 13.48 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.578, allocations: 87.98 kB / 0.9274 GB, free: 13.4 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.5796, allocations: 0.9415 MB / 0.9283 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.5796, allocations: 0 / 0.9283 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-05/0.5797, allocations: 40 kB / 0.9284 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.5797, allocations: 23.98 kB / 0.9284 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.5814, allocations: 1.124 MB / 0.9295 GB, free: 11.23 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003644/0.5851, allocations: 2.516 MB / 0.9319 GB, free: 8.652 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.5866, allocations: 0.9038 MB / 0.9328 GB, free: 7.723 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005814/0.5872, allocations: 314.7 kB / 0.9331 GB, free: 7.41 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 7.946e-05/0.5872, allocations: 36.67 kB / 0.9332 GB, free: 7.371 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008206/0.5881, allocations: 0.5136 MB / 0.9337 GB, free: 6.84 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=84): time 2.024e-06/0.5881, allocations: 0 / 0.9337 GB, free: 6.84 MB / 0.6856 GB Notification: Performance of matching and sorting (n=84): time 0.002965/0.5911, allocations: 1.247 MB / 0.9349 GB, free: 5.57 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.082e-05/0.5912, allocations: 200.9 kB / 0.9351 GB, free: 5.332 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007049/0.5919, allocations: 0.6371 MB / 0.9357 GB, free: 4.688 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.5919, allocations: 41.7 kB / 0.9357 GB, free: 4.641 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002758/0.5922, allocations: 409.1 kB / 0.9361 GB, free: 4.234 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.5924, allocations: 285.5 kB / 0.9364 GB, free: 3.953 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.5927, allocations: 158.5 kB / 0.9365 GB, free: 3.789 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.5928, allocations: 390.7 kB / 0.9369 GB, free: 3.398 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004967/0.5933, allocations: 257.9 kB / 0.9372 GB, free: 3.148 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005843/0.5939, allocations: 366.5 kB / 0.9375 GB, free: 2.766 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.595, allocations: 0.6008 MB / 0.9381 GB, free: 2.152 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.595, allocations: 0 / 0.9381 GB, free: 2.152 MB / 0.6856 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001788/0.5968, allocations: 0.8297 MB / 0.9389 GB, free: 1.312 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.5968, allocations: 10.03 kB / 0.9389 GB, free: 1.305 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.5968, allocations: 0 / 0.9389 GB, free: 1.305 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005434/0.5974, allocations: 88.8 kB / 0.939 GB, free: 1.215 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000629/0.598, allocations: 159.7 kB / 0.9392 GB, free: 1.059 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001889/0.5999, allocations: 1.622 MB / 0.9407 GB, free: 15.29 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006349/0.6006, allocations: 96.83 kB / 0.9408 GB, free: 15.2 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.773e-05/0.6006, allocations: 37.39 kB / 0.9409 GB, free: 15.16 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 (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,decAng.tNext,$PRE.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0003338/0.601, allocations: 273.6 kB / 0.9411 GB, free: 14.89 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.6011, allocations: 87.44 kB / 0.9412 GB, free: 14.8 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002335/0.6035, allocations: 1.127 MB / 0.9423 GB, free: 13.66 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.6035, allocations: 15.92 kB / 0.9423 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.6035, allocations: 0 / 0.9423 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.6035, allocations: 7.984 kB / 0.9423 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003059/0.6066, allocations: 2.03 MB / 0.9443 GB, free: 11.55 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.6066, allocations: 0 / 0.9443 GB, free: 11.55 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005984/0.6072, allocations: 151.7 kB / 0.9445 GB, free: 11.4 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004051/0.6076, allocations: 76.78 kB / 0.9445 GB, free: 11.32 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.927e-05/0.6077, allocations: 23.98 kB / 0.9446 GB, free: 11.3 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/0.6094, allocations: 1.663 MB / 0.9462 GB, free: 9.492 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.6094, allocations: 4.062 kB / 0.9462 GB, free: 9.488 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.6113, allocations: 1.053 MB / 0.9472 GB, free: 8.414 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003593/0.6117, allocations: 291.5 kB / 0.9475 GB, free: 8.113 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.6118, allocations: 16 kB / 0.9475 GB, free: 8.098 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006618/0.6125, allocations: 63.92 kB / 0.9476 GB, free: 8.035 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.6126, allocations: 80.89 kB / 0.9476 GB, free: 7.957 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.753e-05/0.6127, allocations: 47.91 kB / 0.9477 GB, free: 7.91 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0005134/0.6132, allocations: 463 kB / 0.9481 GB, free: 7.465 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6132, allocations: 0 / 0.9481 GB, free: 7.465 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0007398/0.614, allocations: 319.2 kB / 0.9484 GB, free: 7.152 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (decAng.tNext,weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.003304/0.6173, allocations: 2.113 MB / 0.9505 GB, free: 5.199 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001523/0.6188, allocations: 0.8247 MB / 0.9513 GB, free: 4.363 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6188, allocations: 0 / 0.9513 GB, free: 4.363 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0008848/0.6197, allocations: 0.5472 MB / 0.9518 GB, free: 3.805 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.6209, allocations: 293.2 kB / 0.9521 GB, free: 3.539 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/0.6311, allocations: 6.521 MB / 0.9585 GB, free: 12.87 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.6316, allocations: 1.036 MB / 0.9595 GB, free: 11.8 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0007142/0.6323, allocations: 270.8 kB / 0.9598 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005268/0.6329, allocations: 410.2 kB / 0.9601 GB, free: 11.14 MB / 0.7169 GB Notification: Performance of SimCode: time 4.61e-07/0.6329, allocations: 4 kB / 0.9602 GB, free: 11.13 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04497/0.6779, allocations: 21.88 MB / 0.9815 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.9, allocations: 14.31 kB / 0.9815 GB, free: 5.625 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle_res.csv --start-time 100000 --stop-time 300000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 80 BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe 2>&1)