Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,fileNamePrefix="IDEAS_dev_IDEAS_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,fileNamePrefix="IDEAS_dev_IDEAS_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.004217/0.004217, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001242/0.001242, allocations: 197.8 kB / 16.67 MB, free: 5.977 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9098/0.9098, allocations: 135.1 MB / 425.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 0.5851 GB, free: 3.867 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3404, allocations: 80.91 MB / 0.6642 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.004424/0.3449, allocations: 4.122 MB / 0.6682 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.1486/0.4935, allocations: 150.5 MB / 0.8151 GB, free: 6.418 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007238/0.4942, allocations: 15.94 kB / 0.8151 GB, free: 6.402 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0004921/0.4948, allocations: 162.5 kB / 0.8153 GB, free: 6.242 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.001341/0.4961, allocations: 492.8 kB / 0.8158 GB, free: 5.762 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.001705/0.4978, allocations: 0.7954 MB / 0.8165 GB, free: 4.973 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.001015/0.4989, allocations: 1.192 MB / 0.8177 GB, free: 3.773 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000765/0.4996, allocations: 0.6171 MB / 0.8183 GB, free: 3.145 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004571/0.5001, allocations: 438.5 kB / 0.8187 GB, free: 2.715 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004282/0.5005, allocations: 446 kB / 0.8191 GB, free: 2.277 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.5007, allocations: 104 kB / 0.8192 GB, free: 2.176 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007111/0.5014, allocations: 475.6 kB / 0.8197 GB, free: 1.711 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002174/0.5016, allocations: 271.1 kB / 0.82 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0003872/0.502, allocations: 0.4935 MB / 0.8204 GB, free: 0.9492 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.5035, allocations: 1.49 MB / 0.8219 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.5035, allocations: 0 / 0.8219 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5035, allocations: 0 / 0.8219 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.23e-05/0.5035, allocations: 0 / 0.8219 GB, free: 15.45 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.00202/0.5055, allocations: 1.363 MB / 0.8232 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.5056, allocations: 8.031 kB / 0.8232 GB, free: 14.03 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.5057, allocations: 139.1 kB / 0.8234 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000894/0.5066, allocations: 184.1 kB / 0.8235 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.5078, allocations: 0.7271 MB / 0.8243 GB, free: 12.94 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.5078, allocations: 58 kB / 0.8243 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.779e-05/0.5079, allocations: 80 kB / 0.8244 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.5093, allocations: 0.8753 MB / 0.8252 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.5093, allocations: 0 / 0.8252 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.757e-05/0.5094, allocations: 32 kB / 0.8253 GB, free: 11.86 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.5095, allocations: 20 kB / 0.8253 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.5111, allocations: 1.069 MB / 0.8263 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003426/0.5145, allocations: 2.344 MB / 0.8286 GB, free: 8.348 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.5158, allocations: 0.7905 MB / 0.8294 GB, free: 7.535 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000485/0.5163, allocations: 278.4 kB / 0.8297 GB, free: 7.262 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 7.753e-05/0.5164, allocations: 36.52 kB / 0.8297 GB, free: 7.227 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007365/0.5172, allocations: 423.1 kB / 0.8301 GB, free: 6.797 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=72): time 2.013e-06/0.5172, allocations: 4 kB / 0.8301 GB, free: 6.793 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72): time 0.002881/0.5201, allocations: 1.074 MB / 0.8311 GB, free: 5.699 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.5202, allocations: 196.6 kB / 0.8313 GB, free: 5.461 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006508/0.5208, allocations: 0.5784 MB / 0.8319 GB, free: 4.879 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.716e-05/0.5209, allocations: 41.7 kB / 0.8319 GB, free: 4.832 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.5212, allocations: 376.9 kB / 0.8323 GB, free: 4.457 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.5213, allocations: 257.8 kB / 0.8325 GB, free: 4.203 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.5215, allocations: 130.3 kB / 0.8327 GB, free: 4.07 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5217, allocations: 378.8 kB / 0.833 GB, free: 3.691 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004467/0.5221, allocations: 213.2 kB / 0.8332 GB, free: 3.484 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005414/0.5227, allocations: 318.8 kB / 0.8335 GB, free: 3.145 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.5237, allocations: 0.5354 MB / 0.8341 GB, free: 2.598 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.5237, allocations: 0 / 0.8341 GB, free: 2.598 MB / 0.6544 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001702/0.5254, allocations: 0.7201 MB / 0.8348 GB, free: 1.867 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.5255, allocations: 4 kB / 0.8348 GB, free: 1.863 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.5255, allocations: 4 kB / 0.8348 GB, free: 1.859 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006012/0.5261, allocations: 76.86 kB / 0.8348 GB, free: 1.781 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005933/0.5267, allocations: 143.8 kB / 0.835 GB, free: 1.641 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.5288, allocations: 1.634 MB / 0.8366 GB, free: 15.86 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.5294, allocations: 75.56 kB / 0.8367 GB, free: 15.79 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.311e-05/0.5295, allocations: 32.05 kB / 0.8367 GB, free: 15.75 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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.000345/0.5298, allocations: 245.7 kB / 0.8369 GB, free: 15.5 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.53, allocations: 79.47 kB / 0.837 GB, free: 15.43 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/0.5322, allocations: 0.998 MB / 0.838 GB, free: 14.42 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.5322, allocations: 8 kB / 0.838 GB, free: 14.41 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.5322, allocations: 0 / 0.838 GB, free: 14.41 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.5322, allocations: 4.031 kB / 0.838 GB, free: 14.41 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.5353, allocations: 1.866 MB / 0.8398 GB, free: 12.48 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.5353, allocations: 4 kB / 0.8398 GB, free: 12.47 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005764/0.5359, allocations: 151.8 kB / 0.8399 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004409/0.5364, allocations: 64.8 kB / 0.84 GB, free: 12.26 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.763e-05/0.5364, allocations: 23.98 kB / 0.84 GB, free: 12.23 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001823/0.5382, allocations: 1.654 MB / 0.8416 GB, free: 10.43 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.5383, allocations: 3.938 kB / 0.8417 GB, free: 10.43 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.54, allocations: 0.9282 MB / 0.8426 GB, free: 9.484 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003241/0.5404, allocations: 260.2 kB / 0.8428 GB, free: 9.211 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.5405, allocations: 16 kB / 0.8428 GB, free: 9.195 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005871/0.5411, allocations: 54.62 kB / 0.8429 GB, free: 9.145 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.5412, allocations: 60.91 kB / 0.8429 GB, free: 9.086 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.049e-05/0.5413, allocations: 31.98 kB / 0.843 GB, free: 9.055 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0004873/0.5418, allocations: 435 kB / 0.8434 GB, free: 8.637 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5418, allocations: 0 / 0.8434 GB, free: 8.637 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0007204/0.5425, allocations: 283.2 kB / 0.8436 GB, free: 8.359 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.003178/0.5457, allocations: 1.973 MB / 0.8456 GB, free: 6.539 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.001415/0.5471, allocations: 0.7199 MB / 0.8463 GB, free: 5.805 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.5471, allocations: 0 / 0.8463 GB, free: 5.805 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0008453/0.548, allocations: 0.4926 MB / 0.8468 GB, free: 5.305 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.5492, allocations: 281 kB / 0.847 GB, free: 5.047 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009654/0.5588, allocations: 5.881 MB / 0.8528 GB, free: 15.07 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.5594, allocations: 1.003 MB / 0.8537 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.000703/0.5601, allocations: 254.1 kB / 0.854 GB, free: 13.79 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004654/0.5605, allocations: 351.3 kB / 0.8543 GB, free: 13.45 MB / 0.6856 GB Notification: Performance of SimCode: time 3.11e-07/0.5605, allocations: 0 / 0.8543 GB, free: 13.45 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3097/0.8703, allocations: 19.91 MB / 0.8738 GB, free: 190 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.85, allocations: 13.92 kB / 0.8738 GB, free: 190 MB / 0.6856 GB (rm -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe ; mkfifo IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe >> ../files/IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle.fmu > IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe 2>&1)