Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.SolarIrradiation.Examples.DiffusePerez,fileNamePrefix="IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,fileNamePrefix="IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez",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.001232/0.001232, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.218/1.218, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6951/0.6951, allocations: 132.2 MB / 422.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001185, allocations: 69.3 kB / 0.5019 GB, free: 3.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3067, allocations: 80.2 MB / 0.5802 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.006024/0.3127, allocations: 6.049 MB / 0.5861 GB, free: 212 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.1447/0.4574, allocations: 151.5 MB / 0.734 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008789/0.4583, allocations: 23.88 kB / 0.734 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005786/0.4589, allocations: 241.4 kB / 0.7343 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001616/0.4606, allocations: 0.6166 MB / 0.7349 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002269/0.4628, allocations: 1.287 MB / 0.7361 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001768/0.4646, allocations: 2.404 MB / 0.7385 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001612/0.4662, allocations: 1.588 MB / 0.74 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009115/0.4672, allocations: 1.047 MB / 0.741 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.4682, allocations: 1.179 MB / 0.7422 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003321/0.4686, allocations: 296 kB / 0.7425 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009204/0.4695, allocations: 0.6519 MB / 0.7431 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004666/0.47, allocations: 0.6426 MB / 0.7437 GB, free: 9.449 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008303/0.4708, allocations: 1.166 MB / 0.7449 GB, free: 8.277 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002552/0.4734, allocations: 3.217 MB / 0.748 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4734, allocations: 4 kB / 0.748 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4734, allocations: 3.938 kB / 0.748 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.825e-05/0.4734, allocations: 0 / 0.748 GB, free: 5.043 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.004474/0.4779, allocations: 2.586 MB / 0.7505 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.4779, allocations: 8.031 kB / 0.7506 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003166/0.4782, allocations: 308.2 kB / 0.7508 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01471/0.493, allocations: 2.097 MB / 0.7529 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.4946, allocations: 1.192 MB / 0.7541 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.4947, allocations: 164.4 kB / 0.7542 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003088/0.495, allocations: 212 kB / 0.7544 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007257/0.5023, allocations: 3.15 MB / 0.7575 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/0.5023, allocations: 4 kB / 0.7575 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000242/0.5026, allocations: 84 kB / 0.7576 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.405e-05/0.5026, allocations: 52 kB / 0.7576 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01148/0.5141, allocations: 4.115 MB / 0.7616 GB, free: 6.844 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01278/0.5269, allocations: 7.006 MB / 0.7685 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008068/0.535, allocations: 2.695 MB / 0.7711 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004001/0.539, allocations: 1.434 MB / 0.7725 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006548/0.5397, allocations: 0.5036 MB / 0.773 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004385/0.5441, allocations: 1.695 MB / 0.7747 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=195): time 3.236e-06/0.5441, allocations: 0 / 0.7747 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of matching and sorting (n=195): time 0.01347/0.5576, allocations: 4.197 MB / 0.7788 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.854e-05/0.5577, allocations: 205.9 kB / 0.779 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009961/0.5587, allocations: 0.8622 MB / 0.7798 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.5588, allocations: 61.7 kB / 0.7799 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004854/0.5593, allocations: 0.6995 MB / 0.7805 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005043/0.5598, allocations: 0.6353 MB / 0.7812 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000618/0.5605, allocations: 343.3 kB / 0.7815 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.166e-05/0.5606, allocations: 305.2 kB / 0.7818 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003849/0.5644, allocations: 1.171 MB / 0.7829 GB, free: 0.7109 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004007/0.5684, allocations: 1.359 MB / 0.7843 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007858/0.5763, allocations: 2.47 MB / 0.7867 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.5763, allocations: 0 / 0.7867 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of matching and sorting (n=209) (initialization): time 0.00912/0.5854, allocations: 2.909 MB / 0.7895 GB, free: 9.895 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.5855, allocations: 4 kB / 0.7895 GB, free: 9.891 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.5855, allocations: 0 / 0.7895 GB, free: 9.891 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005785/0.5861, allocations: 88.84 kB / 0.7896 GB, free: 9.801 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003352/0.5894, allocations: 0.5578 MB / 0.7901 GB, free: 9.242 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.5914, allocations: 1.642 MB / 0.7917 GB, free: 7.457 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002677/0.5941, allocations: 326.3 kB / 0.7921 GB, free: 7.137 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001854/0.5943, allocations: 91.89 kB / 0.7921 GB, free: 7.047 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (207): * Single equations (assignments): 206 * 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.000801/0.5951, allocations: 397.5 kB / 0.7925 GB, free: 6.648 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000346/0.5955, allocations: 142.2 kB / 0.7927 GB, free: 6.508 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01043/0.6059, allocations: 3.488 MB / 0.7961 GB, free: 3.004 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.6059, allocations: 20 kB / 0.7961 GB, free: 2.984 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.6059, allocations: 4 kB / 0.7961 GB, free: 2.98 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/0.606, allocations: 11.95 kB / 0.7961 GB, free: 2.969 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.6184, allocations: 5.765 MB / 0.8017 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.6184, allocations: 3.938 kB / 0.8017 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003254/0.6216, allocations: 0.5383 MB / 0.8023 GB, free: 12.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004503/0.6221, allocations: 76.78 kB / 0.8023 GB, free: 12.52 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001666/0.6223, allocations: 67.92 kB / 0.8024 GB, free: 12.45 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001755/0.624, allocations: 1.662 MB / 0.804 GB, free: 10.65 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.6241, allocations: 4 kB / 0.804 GB, free: 10.64 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009037/0.6331, allocations: 3.051 MB / 0.807 GB, free: 7.578 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007198/0.6338, allocations: 0.5024 MB / 0.8075 GB, free: 7.055 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002873/0.6341, allocations: 47.84 kB / 0.8075 GB, free: 7.008 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002559/0.6367, allocations: 249.9 kB / 0.8078 GB, free: 6.766 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/0.6369, allocations: 129.9 kB / 0.8079 GB, free: 6.637 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001836/0.6371, allocations: 83.92 kB / 0.808 GB, free: 6.555 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007742/0.6379, allocations: 0.6388 MB / 0.8086 GB, free: 5.906 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6379, allocations: 0 / 0.8086 GB, free: 5.906 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001361/0.6393, allocations: 0.5997 MB / 0.8092 GB, free: 5.305 MB / 0.6387 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 (210): * Single equations (assignments): 207 * 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.01044/0.6497, allocations: 4.141 MB / 0.8132 GB, free: 1.348 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.213/0.8627, allocations: 3.407 MB / 0.8166 GB, free: 218 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.8628, allocations: 0.8438 kB / 0.8166 GB, free: 218 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.004659/0.8674, allocations: 1.657 MB / 0.8182 GB, free: 217.4 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.8691, allocations: 350.8 kB / 0.8185 GB, free: 217.3 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0347/0.9038, allocations: 15.83 MB / 0.834 GB, free: 210.1 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007163/0.9046, allocations: 1.371 MB / 0.8353 GB, free: 209.3 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.002832/0.9074, allocations: 0.5523 MB / 0.8358 GB, free: 209.1 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/0.9086, allocations: 0.822 MB / 0.8367 GB, free: 208.5 MB / 0.6387 GB Notification: Performance of SimCode: time 6.01e-07/0.9086, allocations: 1.125 kB / 0.8367 GB, free: 208.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05707/0.9657, allocations: 38.58 MB / 0.8743 GB, free: 175.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/11.52, allocations: 19.42 kB / 0.8743 GB, free: 175.2 MB / 0.6387 GB (rm -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; mkfifo IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe ; head -c 1048576 < IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe >> ../files/IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez_res.csv --start-time 1.82304e+07 --stop-time 1.83168e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.fmu > IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.pipe 2>&1)