Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",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.0008611/0.000861, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0008751/0.0008752, allocations: 172.6 kB / 16.26 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.265/1.265, allocations: 223.3 MB / 240.3 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001721/0.001721, allocations: 266.6 kB / 291.7 MB, free: 1.793 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9218/0.9218, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003847, allocations: 21.81 kB / 0.5988 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1249, allocations: 88.54 MB / 0.6852 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.004574/0.1295, allocations: 4.307 MB / 0.6894 GB, free: 10.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3869/0.5164, allocations: 146.8 MB / 0.8328 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006255/0.5171, allocations: 20.59 kB / 0.8328 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004252/0.5175, allocations: 149.8 kB / 0.8329 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001191/0.5187, allocations: 452.9 kB / 0.8334 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.5203, allocations: 0.7516 MB / 0.8341 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001109/0.5214, allocations: 1.344 MB / 0.8354 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001003/0.5224, allocations: 0.8807 MB / 0.8363 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003978/0.5228, allocations: 383.5 kB / 0.8366 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004263/0.5233, allocations: 446.5 kB / 0.8371 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.531e-05/0.5233, allocations: 32.72 kB / 0.8371 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005623/0.5239, allocations: 369.6 kB / 0.8375 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.5241, allocations: 218.6 kB / 0.8377 GB, free: 9.43 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003625/0.5245, allocations: 0.5405 MB / 0.8382 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.5258, allocations: 1.786 MB / 0.8399 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.5258, allocations: 0 / 0.8399 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5258, allocations: 0 / 0.8399 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.5258, allocations: 0 / 0.8399 GB, free: 7.715 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.002187/0.528, allocations: 1.424 MB / 0.8413 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.5281, allocations: 13.12 kB / 0.8413 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.5283, allocations: 178.5 kB / 0.8415 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008824/0.5292, allocations: 234.1 kB / 0.8417 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009926/0.5302, allocations: 0.8465 MB / 0.8426 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.798e-05/0.5302, allocations: 84.66 kB / 0.8426 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.5304, allocations: 121.2 kB / 0.8428 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.5322, allocations: 1.204 MB / 0.8439 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.5322, allocations: 3.938 kB / 0.8439 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.83e-05/0.5323, allocations: 47.25 kB / 0.844 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.5323, allocations: 34.52 kB / 0.844 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/0.5342, allocations: 1.3 MB / 0.8453 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004203/0.5384, allocations: 3.185 MB / 0.8484 GB, free: 1.754 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.5399, allocations: 0.8801 MB / 0.8493 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005317/0.5404, allocations: 327.1 kB / 0.8496 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.081e-05/0.5405, allocations: 34.47 kB / 0.8496 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008239/0.5413, allocations: 0.5167 MB / 0.8501 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=87): time 2.034e-06/0.5413, allocations: 4 kB / 0.8501 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of matching and sorting (n=87): time 0.003027/0.5444, allocations: 1.289 MB / 0.8514 GB, free: 108 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.698e-05/0.5445, allocations: 193.2 kB / 0.8516 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007691/0.5453, allocations: 0.7353 MB / 0.8523 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.42e-05/0.5453, allocations: 43.77 kB / 0.8523 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003237/0.5457, allocations: 0.5156 MB / 0.8528 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.5459, allocations: 285.9 kB / 0.8531 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.12e-05/0.546, allocations: 70.3 kB / 0.8532 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.751e-05/0.5461, allocations: 333.8 kB / 0.8535 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005005/0.5466, allocations: 271.4 kB / 0.8537 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005898/0.5472, allocations: 392.9 kB / 0.8541 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.5482, allocations: 0.6403 MB / 0.8547 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5482, allocations: 0 / 0.8547 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001769/0.55, allocations: 0.8795 MB / 0.8556 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.55, allocations: 5.031 kB / 0.8556 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.55, allocations: 3.938 kB / 0.8556 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005728/0.5506, allocations: 83.98 kB / 0.8557 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006701/0.5513, allocations: 171.9 kB / 0.8558 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/0.5531, allocations: 1.521 MB / 0.8573 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006604/0.5538, allocations: 112.3 kB / 0.8574 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-05/0.5538, allocations: 30.66 kB / 0.8575 GB, free: 11.51 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 95 * 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.0003767/0.5542, allocations: 297.7 kB / 0.8577 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.5544, allocations: 101.4 kB / 0.8578 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002328/0.5567, allocations: 1.13 MB / 0.8589 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.5567, allocations: 11.09 kB / 0.859 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.5567, allocations: 0 / 0.859 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.5567, allocations: 7.922 kB / 0.859 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.5578, allocations: 1.058 MB / 0.86 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5578, allocations: 0 / 0.86 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006183/0.5584, allocations: 157.4 kB / 0.8601 GB, free: 9.773 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000518/0.5589, allocations: 83.44 kB / 0.8602 GB, free: 9.734 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.556e-05/0.559, allocations: 27.91 kB / 0.8603 GB, free: 9.715 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.5606, allocations: 1.543 MB / 0.8618 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5607, allocations: 3.219 kB / 0.8618 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.5625, allocations: 1.002 MB / 0.8627 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003493/0.5629, allocations: 307 kB / 0.863 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/0.563, allocations: 16.66 kB / 0.8631 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006835/0.5637, allocations: 83.86 kB / 0.8631 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.5638, allocations: 74.98 kB / 0.8632 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.248e-05/0.5639, allocations: 32.61 kB / 0.8632 GB, free: 7.316 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005579/0.5645, allocations: 0.5169 MB / 0.8637 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5645, allocations: 3.938 kB / 0.8637 GB, free: 7.02 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006924/0.5652, allocations: 354.9 kB / 0.8641 GB, free: 6.91 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.003236/0.5684, allocations: 2.051 MB / 0.8661 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001498/0.5699, allocations: 0.857 MB / 0.8669 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5699, allocations: 0 / 0.8669 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009206/0.5709, allocations: 0.5511 MB / 0.8675 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.5721, allocations: 284.8 kB / 0.8677 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/0.5849, allocations: 8.075 MB / 0.8756 GB, free: 11.86 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.5855, allocations: 1.106 MB / 0.8767 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008086/0.5864, allocations: 279.4 kB / 0.877 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000611/0.587, allocations: 483.2 kB / 0.8774 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of SimCode: time 2.71e-07/0.587, allocations: 0 / 0.8774 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.293/3.88, allocations: 21.93 MB / 0.8988 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003251/3.881, allocations: 318 kB / 0.8991 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.315/7.196, allocations: 0 / 0.8991 GB, free: 4.09 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic_fmu --startTime=1.82304e+07 --stopTime=1.83168e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe 2>&1)