Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",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.007095/0.007095, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001728/0.001728, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.271/1.271, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001973/0.001973, allocations: 283.2 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.903/0.903, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 91.86 kB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1372, allocations: 86.98 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.00518/0.1424, allocations: 4.299 MB / 0.7701 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4348/0.5773, allocations: 150.6 MB / 0.9171 GB, free: 8.055 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006301/0.5779, allocations: 15.94 kB / 0.9171 GB, free: 8.039 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0005238/0.5785, allocations: 173 kB / 0.9173 GB, free: 7.871 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.5801, allocations: 0.5021 MB / 0.9178 GB, free: 7.383 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.001935/0.5821, allocations: 0.8304 MB / 0.9186 GB, free: 6.578 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.001293/0.5834, allocations: 1.305 MB / 0.9199 GB, free: 5.266 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007567/0.5841, allocations: 0.6256 MB / 0.9205 GB, free: 4.617 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005496/0.5847, allocations: 470.3 kB / 0.9209 GB, free: 4.156 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005095/0.5852, allocations: 0.49 MB / 0.9214 GB, free: 3.664 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.5854, allocations: 120 kB / 0.9215 GB, free: 3.547 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000851/0.5862, allocations: 495.6 kB / 0.922 GB, free: 3.062 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002453/0.5865, allocations: 291.1 kB / 0.9223 GB, free: 2.777 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0004313/0.5869, allocations: 0.5456 MB / 0.9228 GB, free: 2.23 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.5886, allocations: 1.62 MB / 0.9244 GB, free: 0.6133 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.5886, allocations: 3.938 kB / 0.9244 GB, free: 0.6094 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.303e-06/0.5886, allocations: 0 / 0.9244 GB, free: 0.6094 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.568e-05/0.5887, allocations: 0 / 0.9244 GB, free: 0.6094 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.002334/0.591, allocations: 1.444 MB / 0.9258 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.591, allocations: 15.97 kB / 0.9258 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001417/0.5912, allocations: 135.4 kB / 0.9259 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008639/0.5921, allocations: 192.1 kB / 0.9261 GB, free: 14.77 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.5932, allocations: 0.7625 MB / 0.9269 GB, free: 13.97 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.379e-05/0.5933, allocations: 73.92 kB / 0.9269 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.5934, allocations: 79.98 kB / 0.927 GB, free: 13.82 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.5948, allocations: 0.9184 MB / 0.9279 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.5949, allocations: 0 / 0.9279 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-05/0.595, allocations: 40.69 kB / 0.9279 GB, free: 12.82 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.595, allocations: 21.31 kB / 0.928 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.5967, allocations: 1.108 MB / 0.9291 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003603/0.6003, allocations: 2.507 MB / 0.9315 GB, free: 9.121 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.6018, allocations: 0.8877 MB / 0.9324 GB, free: 8.207 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005025/0.6023, allocations: 309.9 kB / 0.9327 GB, free: 7.906 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 6.636e-05/0.6024, allocations: 28.61 kB / 0.9327 GB, free: 7.879 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007993/0.6032, allocations: 0.4958 MB / 0.9332 GB, free: 7.367 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=79): time 2.485e-06/0.6032, allocations: 0 / 0.9332 GB, free: 7.367 MB / 0.6856 GB Notification: Performance of matching and sorting (n=79): time 0.002936/0.6061, allocations: 1.198 MB / 0.9343 GB, free: 6.141 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.489e-05/0.6062, allocations: 188.6 kB / 0.9345 GB, free: 5.914 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007716/0.607, allocations: 0.6215 MB / 0.9351 GB, free: 5.289 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.6071, allocations: 45.7 kB / 0.9352 GB, free: 5.238 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.6074, allocations: 405 kB / 0.9356 GB, free: 4.836 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.6076, allocations: 265.6 kB / 0.9358 GB, free: 4.578 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.6078, allocations: 142.6 kB / 0.9359 GB, free: 4.43 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.608, allocations: 390.7 kB / 0.9363 GB, free: 4.039 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004851/0.6085, allocations: 249.9 kB / 0.9366 GB, free: 3.797 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005678/0.6091, allocations: 350.6 kB / 0.9369 GB, free: 3.43 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.6101, allocations: 0.5877 MB / 0.9375 GB, free: 2.828 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.6101, allocations: 0 / 0.9375 GB, free: 2.828 MB / 0.6856 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001761/0.6119, allocations: 0.8023 MB / 0.9383 GB, free: 2.02 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.6119, allocations: 4 kB / 0.9383 GB, free: 2.016 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.6119, allocations: 8.094 kB / 0.9383 GB, free: 2.008 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005638/0.6125, allocations: 76.78 kB / 0.9383 GB, free: 1.93 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005846/0.6131, allocations: 151.7 kB / 0.9385 GB, free: 1.781 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.615, allocations: 1.652 MB / 0.9401 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006114/0.6157, allocations: 88.16 kB / 0.9402 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.9e-05/0.6157, allocations: 31.97 kB / 0.9402 GB, free: 15.86 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 (85): * Single equations (assignments): 84 * 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.0003533/0.6161, allocations: 269.5 kB / 0.9405 GB, free: 15.59 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.6163, allocations: 83.48 kB / 0.9405 GB, free: 15.51 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002256/0.6185, allocations: 1.066 MB / 0.9416 GB, free: 14.43 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.6185, allocations: 12 kB / 0.9416 GB, free: 14.42 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.6186, allocations: 7.938 kB / 0.9416 GB, free: 14.41 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.6186, allocations: 3.984 kB / 0.9416 GB, free: 14.41 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/0.6216, allocations: 1.954 MB / 0.9435 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.6216, allocations: 0 / 0.9435 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/0.6222, allocations: 143.8 kB / 0.9437 GB, free: 12.25 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004209/0.6226, allocations: 76.78 kB / 0.9437 GB, free: 12.18 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.386e-05/0.6227, allocations: 23.98 kB / 0.9438 GB, free: 12.15 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00182/0.6245, allocations: 1.666 MB / 0.9454 GB, free: 10.34 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.6245, allocations: 4.031 kB / 0.9454 GB, free: 10.34 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.6265, allocations: 0.9945 MB / 0.9464 GB, free: 9.328 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003795/0.6269, allocations: 280.2 kB / 0.9466 GB, free: 9.035 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.627, allocations: 20 kB / 0.9466 GB, free: 9.016 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006302/0.6276, allocations: 61.11 kB / 0.9467 GB, free: 8.957 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.6278, allocations: 80.91 kB / 0.9468 GB, free: 8.879 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.814e-05/0.6279, allocations: 35.53 kB / 0.9468 GB, free: 8.848 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0005557/0.6284, allocations: 451 kB / 0.9472 GB, free: 8.41 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2e-07/0.6284, allocations: 0 / 0.9472 GB, free: 8.41 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0007762/0.6292, allocations: 311.1 kB / 0.9475 GB, free: 8.105 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.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 84 * 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.003382/0.6326, allocations: 2.048 MB / 0.9495 GB, free: 6.219 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001533/0.6342, allocations: 0.7935 MB / 0.9503 GB, free: 5.414 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.6342, allocations: 192 / 0.9503 GB, free: 5.414 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0009025/0.6351, allocations: 0.5274 MB / 0.9508 GB, free: 4.871 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.6363, allocations: 298.2 kB / 0.9511 GB, free: 4.605 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.6468, allocations: 6.319 MB / 0.9573 GB, free: 14.17 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006156/0.6474, allocations: 1.015 MB / 0.9583 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0007539/0.6482, allocations: 258.6 kB / 0.9585 GB, free: 12.86 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005259/0.6487, allocations: 375.3 kB / 0.9589 GB, free: 12.5 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/0.6487, allocations: 0 / 0.9589 GB, free: 12.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04764/0.6964, allocations: 21.15 MB / 0.9795 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.34, allocations: 4.75 kB / 0.9795 GB, free: 7.695 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle_res.csv --start-time 100000 --stop-time 300000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 80 BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_Examples_ZenithAngle.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe 2>&1)