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.004343/0.004343, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001221/0.001221, allocations: 193.7 kB / 16.67 MB, free: 5.969 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.222/1.222, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7271/0.7271, allocations: 132.2 MB / 422.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 64.28 kB / 0.5809 GB, free: 24.01 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1292, allocations: 80.21 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.005132/0.1344, allocations: 4.145 MB / 0.6632 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4292/0.5636, allocations: 150.5 MB / 0.8102 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005707/0.5642, allocations: 16.03 kB / 0.8102 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0004675/0.5646, allocations: 165.9 kB / 0.8104 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001117/0.5658, allocations: 491 kB / 0.8108 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.5672, allocations: 0.7952 MB / 0.8116 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007669/0.568, allocations: 1.205 MB / 0.8128 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007107/0.5687, allocations: 0.6826 MB / 0.8134 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003781/0.5691, allocations: 452.4 kB / 0.8139 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004013/0.5695, allocations: 484.5 kB / 0.8143 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001328/0.5696, allocations: 113.2 kB / 0.8144 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005689/0.5702, allocations: 487.8 kB / 0.8149 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.5704, allocations: 290.4 kB / 0.8152 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000327/0.5707, allocations: 0.5255 MB / 0.8157 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.572, allocations: 1.579 MB / 0.8172 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.572, allocations: 2.125 kB / 0.8172 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.122e-06/0.572, allocations: 0 / 0.8172 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.417e-05/0.572, allocations: 3.984 kB / 0.8173 GB, free: 9.68 MB / 0.5919 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.001871/0.5739, allocations: 1.423 MB / 0.8186 GB, free: 8.719 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.5739, allocations: 10.22 kB / 0.8187 GB, free: 8.719 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001314/0.5741, allocations: 137.7 kB / 0.8188 GB, free: 8.641 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.5751, allocations: 213.3 kB / 0.819 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009646/0.5761, allocations: 0.753 MB / 0.8197 GB, free: 7.926 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/0.5761, allocations: 66.62 kB / 0.8198 GB, free: 7.898 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.5762, allocations: 85.16 kB / 0.8199 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.5776, allocations: 0.9404 MB / 0.8208 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.5777, allocations: 0 / 0.8208 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.024e-05/0.5778, allocations: 39.84 kB / 0.8208 GB, free: 7.242 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.5778, allocations: 26.34 kB / 0.8208 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.5794, allocations: 1.122 MB / 0.8219 GB, free: 6.707 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003336/0.5828, allocations: 2.452 MB / 0.8243 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.5848, allocations: 0.8874 MB / 0.8252 GB, free: 4.379 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004736/0.5853, allocations: 288.3 kB / 0.8255 GB, free: 4.238 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.068e-05/0.5853, allocations: 30.66 kB / 0.8255 GB, free: 4.23 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007035/0.5861, allocations: 440.7 kB / 0.8259 GB, free: 3.941 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=73): time 1.893e-06/0.5861, allocations: 2.875 kB / 0.8259 GB, free: 3.941 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73): time 0.002684/0.5888, allocations: 1.091 MB / 0.827 GB, free: 3.348 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.427e-05/0.5889, allocations: 192.4 kB / 0.8272 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000596/0.5895, allocations: 0.5991 MB / 0.8278 GB, free: 2.773 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.475e-05/0.5895, allocations: 40.73 kB / 0.8278 GB, free: 2.73 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002511/0.5898, allocations: 413.4 kB / 0.8282 GB, free: 2.371 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.5899, allocations: 253.6 kB / 0.8284 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/0.5901, allocations: 130.2 kB / 0.8286 GB, free: 2.078 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5903, allocations: 388.1 kB / 0.8289 GB, free: 1.707 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004357/0.5907, allocations: 222 kB / 0.8291 GB, free: 1.602 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005312/0.5913, allocations: 320.9 kB / 0.8295 GB, free: 1.395 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009494/0.5922, allocations: 0.5357 MB / 0.83 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.5922, allocations: 2.781 kB / 0.83 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001617/0.5939, allocations: 0.7422 MB / 0.8307 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.5939, allocations: 5.531 kB / 0.8307 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.5939, allocations: 2.938 kB / 0.8307 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005586/0.5945, allocations: 80.5 kB / 0.8308 GB, free: 0.6797 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005687/0.595, allocations: 138.8 kB / 0.8309 GB, free: 0.6445 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.5969, allocations: 1.636 MB / 0.8325 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005222/0.5975, allocations: 85.95 kB / 0.8326 GB, free: 14.99 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/0.5975, allocations: 28.91 kB / 0.8326 GB, free: 14.98 MB / 0.6075 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.0002996/0.5978, allocations: 259.3 kB / 0.8329 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.598, allocations: 81.89 kB / 0.833 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002096/0.6001, allocations: 0.9966 MB / 0.8339 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.6001, allocations: 10.78 kB / 0.8339 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.6001, allocations: 0 / 0.8339 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.6001, allocations: 10.73 kB / 0.8339 GB, free: 14.15 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/0.603, allocations: 1.909 MB / 0.8358 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.603, allocations: 0 / 0.8358 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005402/0.6036, allocations: 145.2 kB / 0.836 GB, free: 12.85 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004015/0.604, allocations: 75.97 kB / 0.836 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.908e-05/0.604, allocations: 23.27 kB / 0.836 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00164/0.6057, allocations: 1.657 MB / 0.8377 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6057, allocations: 2.625 kB / 0.8377 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.6074, allocations: 0.923 MB / 0.8386 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.6077, allocations: 265.6 kB / 0.8388 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.6078, allocations: 12.44 kB / 0.8388 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005658/0.6084, allocations: 62.03 kB / 0.8389 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.6085, allocations: 60.64 kB / 0.839 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.637e-05/0.6086, allocations: 36.47 kB / 0.839 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004413/0.609, allocations: 441.2 kB / 0.8394 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.609, allocations: 0 / 0.8394 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0006809/0.6097, allocations: 296.2 kB / 0.8397 GB, free: 9.988 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 (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.003056/0.6128, allocations: 1.971 MB / 0.8416 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001359/0.6142, allocations: 0.7365 MB / 0.8423 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6142, allocations: 0 / 0.8423 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008072/0.615, allocations: 0.4907 MB / 0.8428 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.6161, allocations: 289.9 kB / 0.8431 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009345/0.6254, allocations: 6.084 MB / 0.849 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.626, allocations: 1.015 MB / 0.85 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0006665/0.6266, allocations: 258.3 kB / 0.8503 GB, free: 396 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004794/0.6271, allocations: 383.3 kB / 0.8506 GB, free: 12 kB / 0.6075 GB Notification: Performance of SimCode: time 2.81e-07/0.6271, allocations: 0 / 0.8506 GB, free: 12 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04337/0.6705, allocations: 20.4 MB / 0.8706 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.91, allocations: 6.219 kB / 0.8706 GB, free: 11.88 MB / 0.6387 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)