Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.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.BaseClasses.Examples.DiffuseIsotropic,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_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.004902/0.004902, allocations: 99.34 kB / 15.73 MB, free: 6.008 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: 197.3 kB / 16.67 MB, free: 5.934 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.227/1.227, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001984/0.001984, allocations: 279 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8826/0.8826, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 100.4 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.135, allocations: 86.97 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.005455/0.1405, allocations: 4.339 MB / 0.7701 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4189/0.5595, allocations: 150.5 MB / 0.9171 GB, free: 8.02 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005599/0.5601, allocations: 19.88 kB / 0.9172 GB, free: 8 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0004723/0.5606, allocations: 168.5 kB / 0.9173 GB, free: 7.836 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.001306/0.5619, allocations: 0.5068 MB / 0.9178 GB, free: 7.348 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.001577/0.5635, allocations: 0.8266 MB / 0.9186 GB, free: 6.547 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.001012/0.5645, allocations: 1.298 MB / 0.9199 GB, free: 5.242 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007232/0.5652, allocations: 0.6163 MB / 0.9205 GB, free: 4.609 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004571/0.5657, allocations: 467.3 kB / 0.9209 GB, free: 4.152 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000456/0.5662, allocations: 0.49 MB / 0.9214 GB, free: 3.66 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.5663, allocations: 112 kB / 0.9215 GB, free: 3.551 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000637/0.5669, allocations: 483.6 kB / 0.922 GB, free: 3.078 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.5672, allocations: 299 kB / 0.9223 GB, free: 2.785 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0003938/0.5676, allocations: 0.5323 MB / 0.9228 GB, free: 2.25 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.001414/0.569, allocations: 1.609 MB / 0.9244 GB, free: 0.6445 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.569, allocations: 0 / 0.9244 GB, free: 0.6445 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.062e-06/0.569, allocations: 0 / 0.9244 GB, free: 0.6445 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.035e-05/0.569, allocations: 4.656 kB / 0.9244 GB, free: 0.6406 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 211 * Number of variables: 211 Notification: Performance of Generate backend data structure: time 0.002172/0.5712, allocations: 1.452 MB / 0.9258 GB, free: 15.14 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.5713, allocations: 12.03 kB / 0.9258 GB, free: 15.13 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.5714, allocations: 131.4 kB / 0.9259 GB, free: 14.99 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008399/0.5723, allocations: 196 kB / 0.9261 GB, free: 14.8 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.5733, allocations: 0.7624 MB / 0.9269 GB, free: 14 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.787e-05/0.5734, allocations: 70 kB / 0.9269 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.5735, allocations: 79.75 kB / 0.927 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.5749, allocations: 0.9184 MB / 0.9279 GB, free: 12.9 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.5749, allocations: 3.984 kB / 0.9279 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.713e-05/0.575, allocations: 40 kB / 0.9279 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.575, allocations: 20 kB / 0.928 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.5766, allocations: 1.1 MB / 0.929 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003344/0.58, allocations: 2.467 MB / 0.9314 GB, free: 9.199 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.5813, allocations: 0.7986 MB / 0.9322 GB, free: 8.395 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004957/0.5818, allocations: 296 kB / 0.9325 GB, free: 8.105 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 6.554e-05/0.5819, allocations: 40.62 kB / 0.9325 GB, free: 8.066 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007684/0.5827, allocations: 493.7 kB / 0.933 GB, free: 7.566 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=80): time 2.254e-06/0.5827, allocations: 0 / 0.933 GB, free: 7.566 MB / 0.6856 GB Notification: Performance of matching and sorting (n=80): time 0.002864/0.5856, allocations: 1.194 MB / 0.9342 GB, free: 6.344 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.635e-05/0.5857, allocations: 188.6 kB / 0.9344 GB, free: 6.117 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006745/0.5863, allocations: 0.6332 MB / 0.935 GB, free: 5.48 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.5864, allocations: 41.7 kB / 0.935 GB, free: 5.434 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000257/0.5867, allocations: 401 kB / 0.9354 GB, free: 5.035 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.5869, allocations: 273.7 kB / 0.9357 GB, free: 4.766 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/0.5871, allocations: 146.6 kB / 0.9358 GB, free: 4.613 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.5872, allocations: 390.7 kB / 0.9362 GB, free: 4.223 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/0.5877, allocations: 241.9 kB / 0.9364 GB, free: 3.988 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005452/0.5882, allocations: 362.5 kB / 0.9368 GB, free: 3.609 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009881/0.5892, allocations: 0.5799 MB / 0.9373 GB, free: 3.016 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.5892, allocations: 0 / 0.9373 GB, free: 3.016 MB / 0.6856 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001702/0.591, allocations: 0.8023 MB / 0.9381 GB, free: 2.207 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.591, allocations: 4 kB / 0.9381 GB, free: 2.203 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.591, allocations: 4 kB / 0.9381 GB, free: 2.199 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005384/0.5915, allocations: 80.84 kB / 0.9382 GB, free: 2.117 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000585/0.5921, allocations: 147.8 kB / 0.9383 GB, free: 1.973 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.594, allocations: 1.629 MB / 0.9399 GB, free: 204 kB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000571/0.5946, allocations: 90.67 kB / 0.94 GB, free: 116 kB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.281e-05/0.5946, allocations: 31.98 kB / 0.94 GB, free: 84 kB / 0.6856 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 (87): * Single equations (assignments): 86 * 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.0003315/0.595, allocations: 273.8 kB / 0.9403 GB, free: 15.8 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.5951, allocations: 87.44 kB / 0.9404 GB, free: 15.72 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002156/0.5973, allocations: 1.057 MB / 0.9414 GB, free: 14.64 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.5973, allocations: 8 kB / 0.9414 GB, free: 14.64 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.5973, allocations: 0 / 0.9414 GB, free: 14.64 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.5973, allocations: 7.922 kB / 0.9414 GB, free: 14.63 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008725/0.5982, allocations: 0.9036 MB / 0.9423 GB, free: 13.68 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.5982, allocations: 4 kB / 0.9423 GB, free: 13.67 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000556/0.5988, allocations: 139.8 kB / 0.9424 GB, free: 13.54 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004021/0.5992, allocations: 72.78 kB / 0.9425 GB, free: 13.46 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.352e-05/0.5992, allocations: 27.98 kB / 0.9425 GB, free: 13.43 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.6009, allocations: 1.654 MB / 0.9442 GB, free: 11.64 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6009, allocations: 4.031 kB / 0.9442 GB, free: 11.63 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.6027, allocations: 0.9283 MB / 0.9451 GB, free: 10.68 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003269/0.6031, allocations: 272.2 kB / 0.9453 GB, free: 10.39 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.6032, allocations: 23.98 kB / 0.9453 GB, free: 10.37 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005804/0.6038, allocations: 65.34 kB / 0.9454 GB, free: 10.31 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.6039, allocations: 64.91 kB / 0.9455 GB, free: 10.25 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.245e-05/0.604, allocations: 39.97 kB / 0.9455 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0004893/0.6045, allocations: 463 kB / 0.946 GB, free: 9.766 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6045, allocations: 0 / 0.946 GB, free: 9.766 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0006597/0.6051, allocations: 311.2 kB / 0.9462 GB, free: 9.461 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 (91): * Single equations (assignments): 85 * 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.003104/0.6082, allocations: 1.978 MB / 0.9482 GB, free: 7.641 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001443/0.6097, allocations: 0.7975 MB / 0.949 GB, free: 6.832 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.6097, allocations: 0 / 0.949 GB, free: 6.832 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0008522/0.6106, allocations: 0.5276 MB / 0.9495 GB, free: 6.293 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.6116, allocations: 288.2 kB / 0.9497 GB, free: 6.039 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009552/0.6212, allocations: 6.245 MB / 0.9558 GB, free: 15.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.6217, allocations: 1.015 MB / 0.9568 GB, free: 14.63 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0006731/0.6224, allocations: 266.5 kB / 0.9571 GB, free: 14.37 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004785/0.6229, allocations: 381.9 kB / 0.9575 GB, free: 14 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.6229, allocations: 0 / 0.9575 GB, free: 14 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04335/0.6662, allocations: 21.09 MB / 0.9781 GB, free: 9.277 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.26, allocations: 12.19 kB / 0.9781 GB, free: 9.266 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic_res.csv --start-time 0 --stop-time 8.64e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3456 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.pipe 2>&1)