Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",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.007065/0.007065, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.001892/0.001892, allocations: 190.9 kB / 16.67 MB, free: 5.969 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002481/0.002481, allocations: 298.3 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9744/0.9744, allocations: 169.3 MB / 0.4983 GB, free: 4.398 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 100.2 kB / 0.681 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3916/0.3944, allocations: 86.98 MB / 0.7659 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.006224/0.4006, allocations: 4.373 MB / 0.7702 GB, free: 15.44 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1744/0.5751, allocations: 150.6 MB / 0.9172 GB, free: 8.266 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006736/0.5758, allocations: 19.88 kB / 0.9172 GB, free: 8.246 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0005509/0.5763, allocations: 170.4 kB / 0.9174 GB, free: 8.078 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.001744/0.5781, allocations: 0.51 MB / 0.9179 GB, free: 7.57 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.002098/0.5802, allocations: 0.8372 MB / 0.9187 GB, free: 6.738 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.001593/0.5818, allocations: 1.316 MB / 0.92 GB, free: 5.414 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.5828, allocations: 0.6985 MB / 0.9207 GB, free: 4.695 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007173/0.5836, allocations: 0.5021 MB / 0.9212 GB, free: 4.191 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000676/0.5843, allocations: 0.5172 MB / 0.9217 GB, free: 3.672 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001942/0.5845, allocations: 128 kB / 0.9218 GB, free: 3.547 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009619/0.5854, allocations: 499.5 kB / 0.9223 GB, free: 3.059 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0003188/0.5858, allocations: 322.9 kB / 0.9226 GB, free: 2.742 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.000571/0.5863, allocations: 0.5751 MB / 0.9231 GB, free: 2.164 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002059/0.5884, allocations: 1.702 MB / 0.9248 GB, free: 472 kB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.5884, allocations: 0 / 0.9248 GB, free: 472 kB / 0.6856 GB Notification: Performance of FrontEnd: time 1.482e-06/0.5884, allocations: 4 kB / 0.9248 GB, free: 468 kB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.877e-05/0.5885, allocations: 0 / 0.9248 GB, free: 468 kB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002712/0.5912, allocations: 1.518 MB / 0.9263 GB, free: 14.89 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.5912, allocations: 8.031 kB / 0.9263 GB, free: 14.88 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001991/0.5914, allocations: 152.1 kB / 0.9264 GB, free: 14.73 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.5926, allocations: 227.9 kB / 0.9267 GB, free: 14.5 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.5938, allocations: 0.7815 MB / 0.9274 GB, free: 13.68 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.137e-05/0.5939, allocations: 74 kB / 0.9275 GB, free: 13.61 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.5941, allocations: 88 kB / 0.9276 GB, free: 13.52 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.596, allocations: 1.007 MB / 0.9286 GB, free: 12.48 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.596, allocations: 0 / 0.9286 GB, free: 12.48 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-05/0.5961, allocations: 47.92 kB / 0.9286 GB, free: 12.43 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/0.5961, allocations: 31.94 kB / 0.9286 GB, free: 12.4 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002141/0.5983, allocations: 1.167 MB / 0.9298 GB, free: 11.23 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004337/0.6026, allocations: 2.597 MB / 0.9323 GB, free: 8.562 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.6052, allocations: 0.9669 MB / 0.9333 GB, free: 7.574 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006513/0.6058, allocations: 314.7 kB / 0.9336 GB, free: 7.258 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 8.037e-05/0.6059, allocations: 32.61 kB / 0.9336 GB, free: 7.227 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.607, allocations: 0.4993 MB / 0.9341 GB, free: 6.707 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=82): time 2.384e-06/0.607, allocations: 4 kB / 0.9341 GB, free: 6.703 MB / 0.7012 GB Notification: Performance of matching and sorting (n=82): time 0.003419/0.6104, allocations: 1.229 MB / 0.9353 GB, free: 5.449 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.6105, allocations: 188.6 kB / 0.9355 GB, free: 5.223 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009001/0.6114, allocations: 0.641 MB / 0.9361 GB, free: 4.578 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.6115, allocations: 45.7 kB / 0.9361 GB, free: 4.527 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004105/0.612, allocations: 433 kB / 0.9365 GB, free: 4.098 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.6122, allocations: 273.7 kB / 0.9368 GB, free: 3.828 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.6125, allocations: 150.6 kB / 0.9369 GB, free: 3.672 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0002252/0.6127, allocations: 386.8 kB / 0.9373 GB, free: 3.285 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005914/0.6133, allocations: 253.9 kB / 0.9376 GB, free: 3.039 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007004/0.614, allocations: 366.5 kB / 0.9379 GB, free: 2.66 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.6153, allocations: 0.5994 MB / 0.9385 GB, free: 2.047 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.6153, allocations: 3.938 kB / 0.9385 GB, free: 2.043 MB / 0.7012 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002077/0.6174, allocations: 0.8295 MB / 0.9393 GB, free: 1.203 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.6174, allocations: 4 kB / 0.9393 GB, free: 1.199 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.6174, allocations: 0 / 0.9393 GB, free: 1.199 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005973/0.618, allocations: 84.86 kB / 0.9394 GB, free: 1.113 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006912/0.6187, allocations: 151.8 kB / 0.9395 GB, free: 0.9648 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002276/0.621, allocations: 1.641 MB / 0.9411 GB, free: 15.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.6217, allocations: 98.17 kB / 0.9412 GB, free: 15.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.102e-05/0.6218, allocations: 35.97 kB / 0.9413 GB, free: 15.05 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: 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 (88): * Single equations (assignments): 87 * 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.0004571/0.6223, allocations: 264.1 kB / 0.9415 GB, free: 14.79 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.6225, allocations: 87.5 kB / 0.9416 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002656/0.6251, allocations: 1.109 MB / 0.9427 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.6252, allocations: 12 kB / 0.9427 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.6252, allocations: 0 / 0.9427 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.6252, allocations: 3.984 kB / 0.9427 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003698/0.6289, allocations: 2.014 MB / 0.9447 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.6289, allocations: 0 / 0.9447 GB, free: 11.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006428/0.6296, allocations: 147.8 kB / 0.9448 GB, free: 11.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004518/0.63, allocations: 76.77 kB / 0.9449 GB, free: 11.26 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.398e-05/0.6301, allocations: 27.97 kB / 0.9449 GB, free: 11.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00211/0.6322, allocations: 1.666 MB / 0.9465 GB, free: 9.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6322, allocations: 0 / 0.9465 GB, free: 9.426 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.6345, allocations: 1.026 MB / 0.9475 GB, free: 8.379 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004319/0.635, allocations: 276.2 kB / 0.9478 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.6351, allocations: 27.98 kB / 0.9478 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006847/0.6358, allocations: 59.94 kB / 0.9479 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.636, allocations: 72.89 kB / 0.948 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.477e-05/0.6361, allocations: 43.91 kB / 0.948 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0006677/0.6367, allocations: 467 kB / 0.9484 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6368, allocations: 4 kB / 0.9484 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0008933/0.6377, allocations: 323 kB / 0.9488 GB, free: 7.117 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 (94): * Single equations (assignments): 88 * 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.004383/0.642, allocations: 2.072 MB / 0.9508 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001873/0.6439, allocations: 0.8234 MB / 0.9516 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.644, allocations: 192 / 0.9516 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.645, allocations: 0.5237 MB / 0.9521 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.6463, allocations: 298 kB / 0.9524 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.301/0.9473, allocations: 6.542 MB / 0.9588 GB, free: 186.1 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.9478, allocations: 1.042 MB / 0.9598 GB, free: 185.4 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0008378/0.9487, allocations: 272.9 kB / 0.96 GB, free: 185.4 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004996/0.9492, allocations: 410.8 kB / 0.9604 GB, free: 185.1 MB / 0.7169 GB Notification: Performance of SimCode: time 6.41e-07/0.9492, allocations: 1.406 kB / 0.9604 GB, free: 185.1 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04874/0.9979, allocations: 21.86 MB / 0.9818 GB, free: 170.7 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.87, allocations: 5.219 kB / 0.9818 GB, free: 170.7 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 345.6 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe 2>&1)