Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/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.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="IDEAS_IDEAS_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.001019/0.001019, allocations: 108 kB / 15.6 MB, free: 132 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.001012/0.001012, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.209/1.209, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6913/0.6913, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 67.3 kB / 0.5019 GB, free: 3.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3003, allocations: 80.2 MB / 0.5802 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.004896/0.3052, allocations: 4.153 MB / 0.5842 GB, free: 1.625 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.1454/0.4506, allocations: 150.5 MB / 0.7312 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007708/0.4514, allocations: 27.81 kB / 0.7312 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000582/0.452, allocations: 166.5 kB / 0.7314 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001572/0.4536, allocations: 475.6 kB / 0.7318 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001878/0.4555, allocations: 0.79 MB / 0.7326 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001191/0.4567, allocations: 1.188 MB / 0.7338 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008654/0.4575, allocations: 0.6866 MB / 0.7344 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005403/0.4581, allocations: 454.4 kB / 0.7349 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005221/0.4586, allocations: 485.8 kB / 0.7353 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001803/0.4588, allocations: 112 kB / 0.7354 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000753/0.4596, allocations: 455.7 kB / 0.7359 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002573/0.4598, allocations: 295 kB / 0.7362 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004723/0.4603, allocations: 0.5284 MB / 0.7367 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001535/0.4619, allocations: 1.519 MB / 0.7382 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.4619, allocations: 7.938 kB / 0.7382 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.116e-06/0.4619, allocations: 4 kB / 0.7382 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.2e-05/0.4619, allocations: 3.938 kB / 0.7382 GB, free: 15.15 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.002179/0.4641, allocations: 1.377 MB / 0.7395 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.4641, allocations: 15.97 kB / 0.7395 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.4643, allocations: 139.8 kB / 0.7397 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001047/0.4654, allocations: 207.4 kB / 0.7399 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009107/0.4663, allocations: 0.7265 MB / 0.7406 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.376e-05/0.4663, allocations: 70 kB / 0.7406 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.763e-05/0.4665, allocations: 84 kB / 0.7407 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.4679, allocations: 0.941 MB / 0.7416 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.468, allocations: 0 / 0.7416 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.618e-05/0.468, allocations: 40 kB / 0.7417 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.4681, allocations: 24 kB / 0.7417 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.4698, allocations: 1.12 MB / 0.7428 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003549/0.4734, allocations: 2.495 MB / 0.7452 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.4755, allocations: 0.8728 MB / 0.7461 GB, free: 6.816 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005093/0.4761, allocations: 286.6 kB / 0.7463 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 6.849e-05/0.4761, allocations: 36.67 kB / 0.7464 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007731/0.4769, allocations: 439.1 kB / 0.7468 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=73): time 1.814e-06/0.4769, allocations: 4 kB / 0.7468 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73): time 0.002834/0.4798, allocations: 1.085 MB / 0.7479 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/0.4799, allocations: 192.6 kB / 0.7481 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006462/0.4805, allocations: 0.6017 MB / 0.7486 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.382e-05/0.4806, allocations: 41.7 kB / 0.7487 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.4809, allocations: 404.2 kB / 0.7491 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.481, allocations: 244.5 kB / 0.7493 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.4812, allocations: 134.1 kB / 0.7494 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4814, allocations: 386.7 kB / 0.7498 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004627/0.4819, allocations: 217.2 kB / 0.75 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000553/0.4824, allocations: 326.8 kB / 0.7503 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.4835, allocations: 0.5394 MB / 0.7508 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.4835, allocations: 8.062 kB / 0.7508 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001712/0.4852, allocations: 0.7275 MB / 0.7516 GB, free: 1.031 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4852, allocations: 10.03 kB / 0.7516 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.4852, allocations: 3.938 kB / 0.7516 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000574/0.4858, allocations: 88.84 kB / 0.7517 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005758/0.4864, allocations: 143.7 kB / 0.7518 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/0.4884, allocations: 1.619 MB / 0.7534 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.4889, allocations: 83.36 kB / 0.7535 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.862e-05/0.489, allocations: 23.98 kB / 0.7535 GB, free: 14.92 MB / 0.5919 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 (76): * Single equations (assignments): 75 * 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.0003114/0.4893, allocations: 264 kB / 0.7537 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.4895, allocations: 75.06 kB / 0.7538 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002255/0.4917, allocations: 0.9981 MB / 0.7548 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.4917, allocations: 12 kB / 0.7548 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4917, allocations: 3.938 kB / 0.7548 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.4918, allocations: 7.969 kB / 0.7548 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.4948, allocations: 1.896 MB / 0.7566 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4949, allocations: 4 kB / 0.7567 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005786/0.4954, allocations: 147.8 kB / 0.7568 GB, free: 11.44 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004264/0.4959, allocations: 72.73 kB / 0.7569 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-05/0.4959, allocations: 27.97 kB / 0.7569 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001782/0.4977, allocations: 1.662 MB / 0.7585 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4977, allocations: 0 / 0.7585 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.4996, allocations: 0.9218 MB / 0.7594 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002833/0.4999, allocations: 251.8 kB / 0.7597 GB, free: 8.324 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.5, allocations: 19.98 kB / 0.7597 GB, free: 8.305 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005872/0.5006, allocations: 59.94 kB / 0.7597 GB, free: 8.246 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.5007, allocations: 56.92 kB / 0.7598 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.853e-05/0.5008, allocations: 31.98 kB / 0.7598 GB, free: 8.16 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000489/0.5013, allocations: 443 kB / 0.7602 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5013, allocations: 0 / 0.7602 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006639/0.502, allocations: 299.1 kB / 0.7605 GB, free: 7.438 MB / 0.5919 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 (85): * Single equations (assignments): 82 * 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.003184/0.5051, allocations: 1.967 MB / 0.7624 GB, free: 5.656 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001969/0.5071, allocations: 0.9192 MB / 0.7633 GB, free: 4.723 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.5071, allocations: 3.938 kB / 0.7633 GB, free: 4.719 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000859/0.508, allocations: 0.4962 MB / 0.7638 GB, free: 4.211 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.5091, allocations: 286.6 kB / 0.7641 GB, free: 3.961 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009828/0.5189, allocations: 6.237 MB / 0.7702 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.5195, allocations: 1.019 MB / 0.7712 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0007651/0.5203, allocations: 265.8 kB / 0.7714 GB, free: 12.31 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004762/0.5207, allocations: 379.3 kB / 0.7718 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.5207, allocations: 0 / 0.7718 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04376/0.5645, allocations: 20.16 MB / 0.7915 GB, free: 8.156 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/10.87, allocations: 7.625 kB / 0.7915 GB, free: 8.152 MB / 0.6231 GB (rm -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; mkfifo IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; head -c 1048576 < IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe >> ../files/IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.fmu > IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe 2>&1)