Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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.WeatherData.Examples.ReaderTMY3,fileNamePrefix="IDEAS_dev_IDEAS_BoundaryConditions_WeatherData_Examples_ReaderTMY3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3,fileNamePrefix="IDEAS_dev_IDEAS_BoundaryConditions_WeatherData_Examples_ReaderTMY3",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.004499/0.004499, allocations: 99.81 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.001118/0.001118, allocations: 192.6 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7817/0.7817, allocations: 135.1 MB / 425.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 62.75 kB / 0.5851 GB, free: 21.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1221, allocations: 80.93 MB / 0.6641 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.007859/0.13, allocations: 6.227 MB / 0.6702 GB, free: 60 kB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4284/0.5585, allocations: 153.2 MB / 0.8198 GB, free: 6.031 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007712/0.5593, allocations: 40.06 kB / 0.8199 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007137/0.56, allocations: 307 kB / 0.8202 GB, free: 5.785 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001574/0.5616, allocations: 0.6611 MB / 0.8208 GB, free: 5.387 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.564, allocations: 1.3 MB / 0.8221 GB, free: 4.789 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001783/0.5658, allocations: 2.324 MB / 0.8244 GB, free: 3.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001277/0.5671, allocations: 1.074 MB / 0.8254 GB, free: 2.668 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007513/0.5678, allocations: 0.7775 MB / 0.8262 GB, free: 2.191 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007306/0.5686, allocations: 0.7906 MB / 0.8269 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001922/0.5688, allocations: 188.1 kB / 0.8271 GB, free: 1.621 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.57, allocations: 0.943 MB / 0.828 GB, free: 1.207 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003802/0.5704, allocations: 495 kB / 0.8285 GB, free: 0.8242 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006715/0.5711, allocations: 0.9016 MB / 0.8294 GB, free: 140 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002429/0.5735, allocations: 2.732 MB / 0.8321 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.5735, allocations: 3.188 kB / 0.8321 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.293e-06/0.5735, allocations: 0 / 0.8321 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.871e-05/0.5736, allocations: 2.406 kB / 0.8321 GB, free: 14.18 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 341 * Number of variables: 341 Notification: Performance of Generate backend data structure: time 0.003305/0.5769, allocations: 2.228 MB / 0.8342 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.5769, allocations: 8.422 kB / 0.8342 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002141/0.5771, allocations: 206.8 kB / 0.8344 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001872/0.579, allocations: 369.3 kB / 0.8348 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.5808, allocations: 1.258 MB / 0.836 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.452e-05/0.5809, allocations: 102.1 kB / 0.8361 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.5811, allocations: 125 kB / 0.8362 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.5836, allocations: 1.522 MB / 0.8377 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.802e-05/0.5836, allocations: 0 / 0.8377 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.5837, allocations: 58.66 kB / 0.8378 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.5838, allocations: 33.16 kB / 0.8378 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003152/0.5869, allocations: 2.049 MB / 0.8398 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00633/0.5933, allocations: 4.399 MB / 0.8441 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/0.596, allocations: 1.423 MB / 0.8455 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.597, allocations: 0.5352 MB / 0.846 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/0.5971, allocations: 62.48 kB / 0.8461 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.5986, allocations: 0.7891 MB / 0.8469 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=136): time 4.469e-06/0.5986, allocations: 3.984 kB / 0.8469 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of matching and sorting (n=136): time 0.00587/0.6044, allocations: 2.119 MB / 0.8489 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001576/0.6046, allocations: 351.2 kB / 0.8493 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.6059, allocations: 1.072 MB / 0.8503 GB, free: 304 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.941e-05/0.606, allocations: 57.69 kB / 0.8504 GB, free: 240 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004819/0.6065, allocations: 0.6236 MB / 0.851 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003375/0.6069, allocations: 471.9 kB / 0.8514 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003664/0.6072, allocations: 262.7 kB / 0.8517 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.6074, allocations: 357.9 kB / 0.852 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009826/0.6084, allocations: 430.4 kB / 0.8524 GB, free: 14.1 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.6095, allocations: 0.6407 MB / 0.853 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002174/0.6117, allocations: 1.071 MB / 0.8541 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.6117, allocations: 0 / 0.8541 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003579/0.6153, allocations: 1.425 MB / 0.8555 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.6154, allocations: 8 kB / 0.8555 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.6154, allocations: 0 / 0.8555 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.6165, allocations: 169.8 kB / 0.8557 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.6176, allocations: 275.6 kB / 0.8559 GB, free: 10.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003905/0.6216, allocations: 3.296 MB / 0.8591 GB, free: 6.824 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.6226, allocations: 147.2 kB / 0.8593 GB, free: 6.68 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.732e-05/0.6227, allocations: 55.95 kB / 0.8593 GB, free: 6.625 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition3,$whenCondition4,weaDatInpCon.conTim.tNext,$PRE.weaDatInpCon.conTim.tNext,weaDatInpCon.conTimMin.tNext,$PRE.weaDatInpCon.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (145): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005551/0.6233, allocations: 385.3 kB / 0.8597 GB, free: 6.238 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002796/0.6236, allocations: 159 kB / 0.8599 GB, free: 6.082 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004623/0.6282, allocations: 1.975 MB / 0.8618 GB, free: 4.094 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.6282, allocations: 16 kB / 0.8618 GB, free: 4.078 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6282, allocations: 7.938 kB / 0.8618 GB, free: 4.07 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.6283, allocations: 7.969 kB / 0.8618 GB, free: 4.062 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/0.6299, allocations: 1.479 MB / 0.8633 GB, free: 2.535 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.6299, allocations: 0 / 0.8633 GB, free: 2.535 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.631, allocations: 275.6 kB / 0.8635 GB, free: 2.266 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008717/0.6319, allocations: 153.5 kB / 0.8637 GB, free: 2.109 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.559e-05/0.632, allocations: 43.97 kB / 0.8637 GB, free: 2.066 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003694/0.6357, allocations: 3.34 MB / 0.867 GB, free: 14.44 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.6357, allocations: 4.031 kB / 0.867 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003605/0.6393, allocations: 1.627 MB / 0.8686 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006245/0.64, allocations: 439.4 kB / 0.869 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001989/0.6402, allocations: 36 kB / 0.869 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.6412, allocations: 108.5 kB / 0.8691 GB, free: 12.19 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.6414, allocations: 121.8 kB / 0.8692 GB, free: 12.07 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.6416, allocations: 59.97 kB / 0.8693 GB, free: 12.01 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0009502/0.6425, allocations: 0.7457 MB / 0.87 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6425, allocations: 0 / 0.87 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001051/0.6436, allocations: 466.9 kB / 0.8705 GB, free: 10.8 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition4,$whenCondition3,weaDat.conTimMin.tNext,weaDat.conTim.tNext,$whenCondition2,$whenCondition1,weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext) * Number of discrete states: 4 (weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005145/0.6487, allocations: 2.733 MB / 0.8731 GB, free: 8.219 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00292/0.6517, allocations: 1.444 MB / 0.8745 GB, free: 6.746 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.6517, allocations: 3.938 kB / 0.8745 GB, free: 6.742 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001761/0.6534, allocations: 0.9653 MB / 0.8755 GB, free: 5.754 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.6555, allocations: 0.5532 MB / 0.876 GB, free: 5.238 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01897/0.6745, allocations: 10.44 MB / 0.8862 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008231/0.6754, allocations: 1.289 MB / 0.8875 GB, free: 9.277 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001427/0.6768, allocations: 0.492 MB / 0.888 GB, free: 8.781 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009166/0.6777, allocations: 0.6554 MB / 0.8886 GB, free: 8.129 MB / 0.6544 GB Notification: Performance of SimCode: time 4.61e-07/0.6777, allocations: 4 kB / 0.8886 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06451/0.7423, allocations: 36.27 MB / 0.924 GB, free: 4.18 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.16, allocations: 15.84 kB / 0.924 GB, free: 4.164 MB / 0.6856 GB (rm -f IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe ; mkfifo IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe >> ../files/IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3_res.csv --start-time 0 --stop-time 8.64e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3456 IDEAS_dev_IDEAS_BoundaryConditions_WeatherData_Examples_ReaderTMY3.fmu > IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.pipe 2>&1)