Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.DirectTiltedSurface,fileNamePrefix="IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",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.001186/0.001186, 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.001226/0.001226, allocations: 193.7 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.226/1.226, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6941/0.6941, allocations: 132.2 MB / 422.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 61 kB / 0.5019 GB, free: 3.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3209, allocations: 80.2 MB / 0.5802 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005243/0.3261, allocations: 4.929 MB / 0.585 GB, free: 1.066 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.145/0.4712, allocations: 150.8 MB / 0.7323 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008779/0.4721, allocations: 19.88 kB / 0.7323 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006196/0.4727, allocations: 198.1 kB / 0.7325 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001733/0.4745, allocations: 0.5622 MB / 0.733 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00199/0.4765, allocations: 0.9214 MB / 0.7339 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001324/0.4778, allocations: 1.545 MB / 0.7354 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.4791, allocations: 1.148 MB / 0.7365 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006298/0.4797, allocations: 0.689 MB / 0.7372 GB, free: 116 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006361/0.4804, allocations: 0.7351 MB / 0.7379 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002065/0.4806, allocations: 192 kB / 0.7381 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007984/0.4814, allocations: 0.5152 MB / 0.7386 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003205/0.4817, allocations: 442.6 kB / 0.739 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006209/0.4823, allocations: 0.8123 MB / 0.7398 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00186/0.4842, allocations: 2.263 MB / 0.742 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.4842, allocations: 0 / 0.742 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.183e-06/0.4842, allocations: 0 / 0.742 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.329e-05/0.4842, allocations: 0 / 0.742 GB, free: 11.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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.002588/0.4868, allocations: 1.822 MB / 0.7438 GB, free: 9.273 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.4869, allocations: 12.03 kB / 0.7438 GB, free: 9.262 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002109/0.4871, allocations: 211.6 kB / 0.744 GB, free: 9.043 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009358/0.488, allocations: 246.8 kB / 0.7443 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.4891, allocations: 0.8992 MB / 0.7451 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.4892, allocations: 136.7 kB / 0.7453 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.4894, allocations: 140 kB / 0.7454 GB, free: 7.578 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.4915, allocations: 1.465 MB / 0.7468 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.4916, allocations: 4 kB / 0.7468 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.4917, allocations: 64 kB / 0.7469 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.4917, allocations: 36 kB / 0.7469 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002201/0.4939, allocations: 1.494 MB / 0.7484 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005216/0.4991, allocations: 3.947 MB / 0.7523 GB, free: 444 kB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.5006, allocations: 0.9153 MB / 0.7531 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005791/0.5012, allocations: 367.7 kB / 0.7535 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.586e-05/0.5013, allocations: 40.94 kB / 0.7535 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009317/0.5022, allocations: 0.5475 MB / 0.7541 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=93): time 2.235e-06/0.5022, allocations: 4 kB / 0.7541 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of matching and sorting (n=93): time 0.003123/0.5053, allocations: 1.36 MB / 0.7554 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.5054, allocations: 196.9 kB / 0.7556 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008315/0.5063, allocations: 0.7706 MB / 0.7563 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.41e-05/0.5064, allocations: 45.7 kB / 0.7564 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003681/0.5067, allocations: 0.5813 MB / 0.757 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.5069, allocations: 307.6 kB / 0.7572 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.5072, allocations: 178.4 kB / 0.7574 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.5073, allocations: 341.9 kB / 0.7577 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005569/0.5079, allocations: 305.8 kB / 0.758 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006541/0.5085, allocations: 427.4 kB / 0.7584 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.5098, allocations: 0.7422 MB / 0.7592 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.5098, allocations: 0 / 0.7592 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002023/0.5118, allocations: 0.9735 MB / 0.7601 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.5119, allocations: 7.938 kB / 0.7601 GB, free: 8.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.5119, allocations: 4.125 kB / 0.7601 GB, free: 8.176 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005625/0.5124, allocations: 84.77 kB / 0.7602 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/0.5132, allocations: 191.7 kB / 0.7604 GB, free: 7.902 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/0.5151, allocations: 1.634 MB / 0.762 GB, free: 6.121 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006474/0.5158, allocations: 105.7 kB / 0.7621 GB, free: 6.02 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.545e-05/0.5158, allocations: 40.16 kB / 0.7621 GB, free: 5.98 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (103): * Single equations (assignments): 102 * 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.0004413/0.5163, allocations: 323.1 kB / 0.7624 GB, free: 5.656 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.5165, allocations: 102.8 kB / 0.7625 GB, free: 5.555 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002657/0.5191, allocations: 1.29 MB / 0.7638 GB, free: 4.25 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.5192, allocations: 15.98 kB / 0.7638 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.5192, allocations: 0 / 0.7638 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.5192, allocations: 3.984 kB / 0.7638 GB, free: 4.23 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.5228, allocations: 2.505 MB / 0.7663 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.5228, allocations: 0 / 0.7663 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006746/0.5235, allocations: 175.7 kB / 0.7664 GB, free: 1.488 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004285/0.5239, allocations: 84.78 kB / 0.7665 GB, free: 1.402 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/0.524, allocations: 23.98 kB / 0.7665 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/0.5257, allocations: 1.678 MB / 0.7682 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5258, allocations: 0 / 0.7682 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.5278, allocations: 1.121 MB / 0.7693 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003558/0.5282, allocations: 311.5 kB / 0.7696 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.5283, allocations: 27.89 kB / 0.7696 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006592/0.529, allocations: 59.94 kB / 0.7696 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.5291, allocations: 68.91 kB / 0.7697 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.119e-05/0.5292, allocations: 43.97 kB / 0.7698 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006434/0.5298, allocations: 0.5614 MB / 0.7703 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5298, allocations: 0 / 0.7703 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008849/0.5307, allocations: 402.5 kB / 0.7707 GB, free: 12.94 MB / 0.6075 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 (107): * Single equations (assignments): 104 * 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.003321/0.5341, allocations: 2.163 MB / 0.7728 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00251/0.5366, allocations: 1.163 MB / 0.7739 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.5366, allocations: 0 / 0.7739 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009174/0.5375, allocations: 0.5863 MB / 0.7745 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.5387, allocations: 305 kB / 0.7748 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.5507, allocations: 8.299 MB / 0.7829 GB, free: 380 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006647/0.5514, allocations: 1.162 MB / 0.784 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0008435/0.5523, allocations: 295.9 kB / 0.7843 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000667/0.5529, allocations: 0.5578 MB / 0.7849 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of SimCode: time 4.2e-07/0.5529, allocations: 0 / 0.7849 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04606/0.599, allocations: 25.33 MB / 0.8096 GB, free: 5.371 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.81, allocations: 11.66 kB / 0.8096 GB, free: 5.359 MB / 0.6387 GB (rm -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_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_DirectTiltedSurface.fmu > IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)