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.001004/0.001004, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001002/0.001002, allocations: 190.2 kB / 16.13 MB, free: 6.66 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.232/1.232, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001878/0.001878, allocations: 289.9 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8348/0.8348, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 99.14 kB / 0.5946 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1243, allocations: 86.99 MB / 0.6795 GB, free: 1.086 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.004958/0.1292, allocations: 4.382 MB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3569/0.4862, allocations: 148.3 MB / 0.8286 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005729/0.4868, allocations: 19.91 kB / 0.8286 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003999/0.4872, allocations: 134.1 kB / 0.8288 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.4883, allocations: 434.2 kB / 0.8292 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.4895, allocations: 0.7227 MB / 0.8299 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007622/0.4903, allocations: 1.236 MB / 0.8311 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006552/0.4909, allocations: 0.6751 MB / 0.8317 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003534/0.4913, allocations: 437.6 kB / 0.8322 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003656/0.4917, allocations: 0.4914 MB / 0.8326 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.4918, allocations: 69.44 kB / 0.8327 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005427/0.4923, allocations: 397.6 kB / 0.8331 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.4925, allocations: 258.7 kB / 0.8333 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003226/0.4928, allocations: 0.5272 MB / 0.8339 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.4939, allocations: 1.601 MB / 0.8354 GB, free: 260 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.4939, allocations: 4 kB / 0.8354 GB, free: 256 kB / 0.5606 GB Notification: Performance of FrontEnd: time 9.42e-07/0.4939, allocations: 1.094 kB / 0.8354 GB, free: 256 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.136e-05/0.4939, allocations: 0 / 0.8354 GB, free: 256 kB / 0.5606 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.002195/0.4961, allocations: 1.479 MB / 0.8369 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.4962, allocations: 10.16 kB / 0.8369 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001362/0.4963, allocations: 152.6 kB / 0.837 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.4973, allocations: 216.6 kB / 0.8372 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000861/0.4982, allocations: 0.7569 MB / 0.838 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/0.4982, allocations: 72.89 kB / 0.838 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.579e-05/0.4983, allocations: 95.44 kB / 0.8381 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.4998, allocations: 1.01 MB / 0.8391 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.4998, allocations: 0 / 0.8391 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.84e-05/0.4999, allocations: 40.44 kB / 0.8391 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.4999, allocations: 27.02 kB / 0.8392 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.5016, allocations: 1.173 MB / 0.8403 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003501/0.5051, allocations: 2.621 MB / 0.8429 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00208/0.5072, allocations: 0.9724 MB / 0.8438 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005006/0.5077, allocations: 306.6 kB / 0.8441 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 6.269e-05/0.5078, allocations: 33.67 kB / 0.8442 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008115/0.5086, allocations: 0.4979 MB / 0.8446 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=82): time 1.743e-06/0.5086, allocations: 0 / 0.8446 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.002762/0.5114, allocations: 1.218 MB / 0.8458 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.5115, allocations: 201.6 kB / 0.846 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006182/0.5121, allocations: 0.6337 MB / 0.8466 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.329e-05/0.5122, allocations: 47.05 kB / 0.8467 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.5124, allocations: 428.4 kB / 0.8471 GB, free: 9.645 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.5126, allocations: 262.7 kB / 0.8473 GB, free: 9.422 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001982/0.5128, allocations: 151.7 kB / 0.8475 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.513, allocations: 382.6 kB / 0.8479 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/0.5134, allocations: 254 kB / 0.8481 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005627/0.514, allocations: 370.9 kB / 0.8484 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000991/0.515, allocations: 0.5981 MB / 0.849 GB, free: 8.285 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.515, allocations: 3.984 kB / 0.849 GB, free: 8.281 MB / 0.5762 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001671/0.5167, allocations: 0.8159 MB / 0.8498 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.5167, allocations: 13.09 kB / 0.8498 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.5167, allocations: 7.969 kB / 0.8499 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005289/0.5173, allocations: 77.59 kB / 0.8499 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/0.5179, allocations: 163.6 kB / 0.8501 GB, free: 7.766 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.5196, allocations: 1.509 MB / 0.8516 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005719/0.5202, allocations: 94.08 kB / 0.8516 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.577e-05/0.5202, allocations: 34.5 kB / 0.8517 GB, free: 6.211 MB / 0.5762 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.0003154/0.5206, allocations: 272 kB / 0.8519 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.5207, allocations: 84.97 kB / 0.852 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/0.5229, allocations: 1.098 MB / 0.8531 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.5229, allocations: 10.12 kB / 0.8531 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.5229, allocations: 3.938 kB / 0.8531 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.523, allocations: 10.47 kB / 0.8531 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00286/0.5258, allocations: 2.016 MB / 0.8551 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5258, allocations: 3.75 kB / 0.8551 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005503/0.5264, allocations: 157.5 kB / 0.8552 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004576/0.5269, allocations: 87.2 kB / 0.8553 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.245e-05/0.5269, allocations: 23.8 kB / 0.8553 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.5285, allocations: 1.539 MB / 0.8568 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5285, allocations: 4.438 kB / 0.8569 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.5303, allocations: 1.017 MB / 0.8578 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.5306, allocations: 279.6 kB / 0.8581 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.5307, allocations: 25.25 kB / 0.8581 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006139/0.5313, allocations: 67.55 kB / 0.8582 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.5314, allocations: 80.14 kB / 0.8583 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.968e-05/0.5315, allocations: 30.39 kB / 0.8583 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004511/0.532, allocations: 470.5 kB / 0.8588 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.532, allocations: 0 / 0.8588 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006714/0.5326, allocations: 317 kB / 0.8591 GB, free: 1.133 MB / 0.5762 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.003118/0.5358, allocations: 2.077 MB / 0.8611 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.5372, allocations: 0.8158 MB / 0.8619 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5372, allocations: 0 / 0.8619 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008357/0.538, allocations: 0.5281 MB / 0.8624 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000996/0.539, allocations: 268.9 kB / 0.8627 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.5498, allocations: 7.178 MB / 0.8697 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.5503, allocations: 1.049 MB / 0.8707 GB, free: 9.406 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0007278/0.551, allocations: 269.9 kB / 0.8709 GB, free: 9.27 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005053/0.5515, allocations: 409.3 kB / 0.8713 GB, free: 8.941 MB / 0.5919 GB Notification: Performance of SimCode: time 3e-07/0.5515, allocations: 0 / 0.8713 GB, free: 8.941 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.822/3.374, allocations: 20.84 MB / 0.8917 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002925/3.374, allocations: 331.5 kB / 0.892 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/5.61, allocations: 0 / 0.892 GB, free: 5.691 MB / 0.6075 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe 2>&1)