Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.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.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_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.006853/0.006854, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001643/0.001643, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.42/1.42, allocations: 222.9 MB / 240.4 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.002469/0.002469, allocations: 287.9 kB / 290.8 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.034/1.034, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00269/0.00269, allocations: 95.84 kB / 0.6809 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4492/0.4519, allocations: 86.98 MB / 0.7659 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.00713/0.459, allocations: 4.306 MB / 0.7701 GB, free: 15.5 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1898/0.6488, allocations: 150.6 MB / 0.9171 GB, free: 8.352 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.6501, allocations: 15.94 kB / 0.9171 GB, free: 8.336 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.6512, allocations: 170.4 kB / 0.9173 GB, free: 8.168 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.002586/0.6538, allocations: 0.5039 MB / 0.9178 GB, free: 7.664 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003123/0.657, allocations: 0.8362 MB / 0.9186 GB, free: 6.836 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.002116/0.6591, allocations: 1.297 MB / 0.9199 GB, free: 5.531 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009634/0.6601, allocations: 0.6256 MB / 0.9205 GB, free: 4.883 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007087/0.6608, allocations: 470.3 kB / 0.9209 GB, free: 4.422 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006178/0.6614, allocations: 0.4939 MB / 0.9214 GB, free: 3.926 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001957/0.6616, allocations: 116 kB / 0.9215 GB, free: 3.812 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.663, allocations: 487.6 kB / 0.922 GB, free: 3.336 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0004123/0.6635, allocations: 303 kB / 0.9223 GB, free: 3.039 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0007944/0.6643, allocations: 0.5402 MB / 0.9228 GB, free: 2.496 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002997/0.6673, allocations: 1.624 MB / 0.9244 GB, free: 0.8711 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.6673, allocations: 0 / 0.9244 GB, free: 0.8711 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.924e-06/0.6673, allocations: 0 / 0.9244 GB, free: 0.8711 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.033e-05/0.6674, allocations: 0 / 0.9244 GB, free: 0.8711 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 211 * Number of variables: 211 Notification: Performance of Generate backend data structure: time 0.003538/0.6709, allocations: 1.452 MB / 0.9258 GB, free: 15.37 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.671, allocations: 8.031 kB / 0.9258 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002199/0.6712, allocations: 139.4 kB / 0.9259 GB, free: 15.22 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001337/0.6726, allocations: 188.1 kB / 0.9261 GB, free: 15.04 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001871/0.6744, allocations: 0.766 MB / 0.9269 GB, free: 14.23 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.332e-05/0.6745, allocations: 62 kB / 0.9269 GB, free: 14.17 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001795/0.6747, allocations: 83.98 kB / 0.927 GB, free: 14.09 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002383/0.6771, allocations: 0.9183 MB / 0.9279 GB, free: 13.12 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.198e-05/0.6772, allocations: 4 kB / 0.9279 GB, free: 13.12 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.6773, allocations: 40 kB / 0.9279 GB, free: 13.08 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.861e-05/0.6773, allocations: 20 kB / 0.928 GB, free: 13.06 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002809/0.6802, allocations: 1.112 MB / 0.9291 GB, free: 11.95 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005989/0.6862, allocations: 2.497 MB / 0.9315 GB, free: 9.379 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/0.6886, allocations: 0.8948 MB / 0.9324 GB, free: 8.461 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008308/0.6894, allocations: 298.7 kB / 0.9326 GB, free: 8.168 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.6895, allocations: 32.61 kB / 0.9327 GB, free: 8.137 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001279/0.6908, allocations: 496.7 kB / 0.9332 GB, free: 7.633 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=79): time 4.489e-06/0.6908, allocations: 0 / 0.9332 GB, free: 7.633 MB / 0.7012 GB Notification: Performance of matching and sorting (n=79): time 0.003351/0.6942, allocations: 1.194 MB / 0.9343 GB, free: 6.41 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.6943, allocations: 196.6 kB / 0.9345 GB, free: 6.176 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008471/0.6952, allocations: 0.6214 MB / 0.9351 GB, free: 5.551 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 7.117e-05/0.6953, allocations: 45.64 kB / 0.9352 GB, free: 5.5 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/0.6957, allocations: 401 kB / 0.9355 GB, free: 5.102 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.6959, allocations: 269.7 kB / 0.9358 GB, free: 4.836 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002486/0.6962, allocations: 142.6 kB / 0.9359 GB, free: 4.688 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000228/0.6964, allocations: 394.7 kB / 0.9363 GB, free: 4.293 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005311/0.6969, allocations: 249.9 kB / 0.9365 GB, free: 4.051 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006684/0.6976, allocations: 350.6 kB / 0.9369 GB, free: 3.684 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.6988, allocations: 0.5838 MB / 0.9375 GB, free: 3.086 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.6988, allocations: 3.938 kB / 0.9375 GB, free: 3.082 MB / 0.7012 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001973/0.7008, allocations: 0.8062 MB / 0.9382 GB, free: 2.27 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.7008, allocations: 4 kB / 0.9382 GB, free: 2.266 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.7008, allocations: 4.094 kB / 0.9383 GB, free: 2.262 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005944/0.7014, allocations: 80.72 kB / 0.9383 GB, free: 2.18 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006257/0.7021, allocations: 155.8 kB / 0.9385 GB, free: 2.027 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/0.7044, allocations: 1.631 MB / 0.9401 GB, free: 256 kB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006336/0.705, allocations: 95.56 kB / 0.9402 GB, free: 160 kB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-05/0.7051, allocations: 31.97 kB / 0.9402 GB, free: 128 kB / 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: 15 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * 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.000441/0.7055, allocations: 268 kB / 0.9404 GB, free: 15.86 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.7057, allocations: 83.48 kB / 0.9405 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002509/0.7082, allocations: 1.062 MB / 0.9416 GB, free: 14.69 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.7083, allocations: 11.94 kB / 0.9416 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.7083, allocations: 4 kB / 0.9416 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.7083, allocations: 7.922 kB / 0.9416 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/0.7117, allocations: 1.955 MB / 0.9435 GB, free: 12.65 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.7118, allocations: 7.938 kB / 0.9435 GB, free: 12.64 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005968/0.7124, allocations: 139.8 kB / 0.9436 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004532/0.7128, allocations: 76.78 kB / 0.9437 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.745e-05/0.7129, allocations: 19.98 kB / 0.9437 GB, free: 12.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.715, allocations: 1.678 MB / 0.9454 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.715, allocations: 0 / 0.9454 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/0.7171, allocations: 1.002 MB / 0.9463 GB, free: 9.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003993/0.7175, allocations: 276.2 kB / 0.9466 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.7177, allocations: 16 kB / 0.9466 GB, free: 9.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006427/0.7183, allocations: 67.98 kB / 0.9467 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.7185, allocations: 72.91 kB / 0.9468 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.266e-05/0.7186, allocations: 35.97 kB / 0.9468 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0006165/0.7192, allocations: 455 kB / 0.9472 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7192, allocations: 0 / 0.9472 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0008176/0.72, allocations: 311.1 kB / 0.9475 GB, free: 8.348 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: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (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 (90): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.004264/0.7243, allocations: 2.047 MB / 0.9495 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001774/0.7261, allocations: 0.7961 MB / 0.9503 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.7261, allocations: 4.188 kB / 0.9503 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0009934/0.7271, allocations: 0.5197 MB / 0.9508 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.7284, allocations: 294.2 kB / 0.9511 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3145/1.043, allocations: 6.303 MB / 0.9572 GB, free: 187 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005972/1.044, allocations: 1.02 MB / 0.9582 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0009191/1.044, allocations: 262.5 kB / 0.9585 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005477/1.045, allocations: 369.8 kB / 0.9588 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of SimCode: time 1.032e-06/1.045, allocations: 1.969 kB / 0.9588 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05067/1.096, allocations: 21.16 MB / 0.9795 GB, free: 173 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.83, allocations: 4.625 kB / 0.9795 GB, free: 173 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.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_Examples_ZenithAngle.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe 2>&1)