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.003913/0.003913, allocations: 100.1 kB / 15.73 MB, free: 6.445 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.0009818/0.0009819, allocations: 191.1 kB / 16.67 MB, free: 6.348 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.198/1.198, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001946/0.001946, allocations: 282.9 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8721/0.8721, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 98.42 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1315, allocations: 86.97 MB / 0.7659 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.00558/0.1371, allocations: 4.738 MB / 0.7705 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4226/0.5597, allocations: 150.7 MB / 0.9177 GB, free: 7.523 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006477/0.5604, allocations: 19.88 kB / 0.9177 GB, free: 7.504 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0005156/0.5609, allocations: 192.4 kB / 0.9179 GB, free: 7.316 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.001402/0.5624, allocations: 0.5355 MB / 0.9184 GB, free: 6.793 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.564, allocations: 0.8632 MB / 0.9193 GB, free: 5.957 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.001221/0.5653, allocations: 1.457 MB / 0.9207 GB, free: 4.496 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001005/0.5663, allocations: 0.9186 MB / 0.9216 GB, free: 3.539 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006001/0.5669, allocations: 0.5838 MB / 0.9221 GB, free: 2.953 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005217/0.5674, allocations: 0.6222 MB / 0.9228 GB, free: 2.328 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.5676, allocations: 160 kB / 0.9229 GB, free: 2.172 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007127/0.5683, allocations: 0.5113 MB / 0.9234 GB, free: 1.66 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002649/0.5686, allocations: 378.8 kB / 0.9238 GB, free: 1.289 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0004754/0.5691, allocations: 0.7033 MB / 0.9245 GB, free: 0.582 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.001724/0.5708, allocations: 1.978 MB / 0.9264 GB, free: 14.61 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.5708, allocations: 5.031 kB / 0.9264 GB, free: 14.6 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5708, allocations: 0 / 0.9264 GB, free: 14.6 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.523e-05/0.5708, allocations: 0 / 0.9264 GB, free: 14.6 MB / 0.6856 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.002446/0.5733, allocations: 1.73 MB / 0.9281 GB, free: 12.81 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.5733, allocations: 12.03 kB / 0.9281 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001735/0.5735, allocations: 177.8 kB / 0.9283 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008687/0.5744, allocations: 227.8 kB / 0.9285 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.5755, allocations: 0.8764 MB / 0.9293 GB, free: 11.47 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.5756, allocations: 90.41 kB / 0.9294 GB, free: 11.38 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.5757, allocations: 112 kB / 0.9295 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.5775, allocations: 1.202 MB / 0.9307 GB, free: 10.01 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.5775, allocations: 7.984 kB / 0.9307 GB, free: 10 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.765e-05/0.5776, allocations: 52 kB / 0.9308 GB, free: 9.953 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.5777, allocations: 28 kB / 0.9308 GB, free: 9.926 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001841/0.5795, allocations: 1.285 MB / 0.932 GB, free: 8.633 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004024/0.5835, allocations: 3.122 MB / 0.9351 GB, free: 5.438 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.585, allocations: 0.8682 MB / 0.9359 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005143/0.5855, allocations: 319.6 kB / 0.9362 GB, free: 4.25 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-05/0.5856, allocations: 32.61 kB / 0.9363 GB, free: 4.219 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008213/0.5864, allocations: 0.5255 MB / 0.9368 GB, free: 3.684 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=87): time 2.295e-06/0.5864, allocations: 3.938 kB / 0.9368 GB, free: 3.68 MB / 0.6856 GB Notification: Performance of matching and sorting (n=87): time 0.003017/0.5894, allocations: 1.279 MB / 0.938 GB, free: 2.375 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.314e-05/0.5895, allocations: 192.9 kB / 0.9382 GB, free: 2.141 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007751/0.5903, allocations: 0.7315 MB / 0.9389 GB, free: 1.398 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/0.5904, allocations: 41.7 kB / 0.939 GB, free: 1.352 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003264/0.5907, allocations: 0.5242 MB / 0.9395 GB, free: 0.8203 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.5909, allocations: 301.4 kB / 0.9398 GB, free: 0.5234 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/0.5911, allocations: 158.6 kB / 0.9399 GB, free: 372 kB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.5912, allocations: 345.9 kB / 0.9403 GB, free: 20 kB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004986/0.5917, allocations: 265.9 kB / 0.9405 GB, free: 15.76 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005799/0.5923, allocations: 378.5 kB / 0.9409 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.5934, allocations: 0.6359 MB / 0.9415 GB, free: 14.72 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.5934, allocations: 0 / 0.9415 GB, free: 14.72 MB / 0.7012 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001781/0.5952, allocations: 0.8764 MB / 0.9423 GB, free: 13.83 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.5952, allocations: 4 kB / 0.9423 GB, free: 13.82 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.5952, allocations: 0 / 0.9423 GB, free: 13.82 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005491/0.5958, allocations: 88.8 kB / 0.9424 GB, free: 13.73 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00064/0.5964, allocations: 163.7 kB / 0.9426 GB, free: 13.57 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.5983, allocations: 1.629 MB / 0.9442 GB, free: 11.81 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000616/0.5989, allocations: 105.6 kB / 0.9443 GB, free: 11.71 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.749e-05/0.599, allocations: 31.98 kB / 0.9443 GB, free: 11.68 MB / 0.7012 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.0003685/0.5994, allocations: 297.5 kB / 0.9446 GB, free: 11.38 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.5995, allocations: 107.3 kB / 0.9447 GB, free: 11.27 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002226/0.6018, allocations: 1.117 MB / 0.9458 GB, free: 10.15 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.158e-06/0.6018, allocations: 11.94 kB / 0.9458 GB, free: 10.14 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.6018, allocations: 0 / 0.9458 GB, free: 10.14 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.6018, allocations: 11.97 kB / 0.9458 GB, free: 10.12 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.6028, allocations: 1.048 MB / 0.9468 GB, free: 9.027 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.6028, allocations: 3.938 kB / 0.9468 GB, free: 9.023 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005904/0.6034, allocations: 155.8 kB / 0.947 GB, free: 8.871 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000415/0.6038, allocations: 72.78 kB / 0.9471 GB, free: 8.797 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.108e-05/0.6039, allocations: 23.98 kB / 0.9471 GB, free: 8.773 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.6056, allocations: 1.67 MB / 0.9487 GB, free: 6.953 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6056, allocations: 0 / 0.9487 GB, free: 6.953 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.6075, allocations: 0.9907 MB / 0.9497 GB, free: 5.941 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003634/0.6078, allocations: 296.1 kB / 0.95 GB, free: 5.633 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.608, allocations: 16 kB / 0.95 GB, free: 5.617 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006165/0.6086, allocations: 59.94 kB / 0.95 GB, free: 5.559 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.6087, allocations: 84.83 kB / 0.9501 GB, free: 5.477 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.661e-05/0.6088, allocations: 39.97 kB / 0.9502 GB, free: 5.438 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0005796/0.6094, allocations: 0.5068 MB / 0.9506 GB, free: 4.934 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6094, allocations: 0 / 0.9506 GB, free: 4.934 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0007761/0.6102, allocations: 373.5 kB / 0.951 GB, free: 4.57 MB / 0.7012 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.003333/0.6135, allocations: 2.059 MB / 0.953 GB, free: 2.672 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001605/0.6151, allocations: 0.8481 MB / 0.9538 GB, free: 1.809 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6151, allocations: 0 / 0.9538 GB, free: 1.809 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0008928/0.616, allocations: 0.5356 MB / 0.9544 GB, free: 1.262 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.6172, allocations: 314.3 kB / 0.9547 GB, free: 0.9844 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.6283, allocations: 7.171 MB / 0.9617 GB, free: 9.66 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.6289, allocations: 1.11 MB / 0.9628 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0008094/0.6298, allocations: 279.4 kB / 0.963 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006098/0.6304, allocations: 479.2 kB / 0.9635 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of SimCode: time 8.71e-07/0.6304, allocations: 3.938 kB / 0.9635 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04759/0.678, allocations: 23.36 MB / 0.9863 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.54, allocations: 11.81 kB / 0.9863 GB, free: 0.7617 MB / 0.7325 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic_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 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe 2>&1)