Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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(Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="Buildings_latest_Buildings_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.007395/0.007395, allocations: 97.62 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.001872/0.001872, allocations: 199.3 kB / 16.68 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.69/2.69, allocations: 469.4 MB / 0.7422 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 64.14 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2496, allocations: 159.1 MB / 1.22 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.005993/0.2556, allocations: 4.821 MB / 1.224 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.6602/0.9158, allocations: 150.6 MB / 1.371 GB, free: 11.55 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006668/0.9165, allocations: 19.34 kB / 1.372 GB, free: 11.55 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0005583/0.9171, allocations: 193.3 kB / 1.372 GB, free: 11.42 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.001546/0.9187, allocations: 0.5473 MB / 1.372 GB, free: 11.11 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001781/0.9205, allocations: 0.8393 MB / 1.373 GB, free: 10.67 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.001442/0.9219, allocations: 1.384 MB / 1.374 GB, free: 9.957 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000869/0.9228, allocations: 0.5893 MB / 1.375 GB, free: 9.648 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007094/0.9235, allocations: 499 kB / 1.375 GB, free: 9.398 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006847/0.9242, allocations: 0.4967 MB / 1.376 GB, free: 9.137 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0002237/0.9245, allocations: 117.2 kB / 1.376 GB, free: 9.137 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009265/0.9254, allocations: 486.1 kB / 1.377 GB, free: 9.02 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0002644/0.9257, allocations: 294.4 kB / 1.377 GB, free: 8.836 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0005481/0.9262, allocations: 0.5576 MB / 1.377 GB, free: 8.461 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001909/0.9281, allocations: 1.648 MB / 1.379 GB, free: 7.652 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.9282, allocations: 1.281 kB / 1.379 GB, free: 7.652 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9282, allocations: 4 kB / 1.379 GB, free: 7.648 MB / 1.076 GB Notification: Performance of Transformations before backend: time 2.047e-05/0.9282, allocations: 0 / 1.379 GB, free: 7.648 MB / 1.076 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.002596/0.9308, allocations: 1.465 MB / 1.38 GB, free: 6.48 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.9308, allocations: 9.062 kB / 1.38 GB, free: 6.48 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/0.931, allocations: 135.9 kB / 1.381 GB, free: 6.367 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009628/0.932, allocations: 192.2 kB / 1.381 GB, free: 6.273 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.9332, allocations: 0.762 MB / 1.381 GB, free: 5.645 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.915e-05/0.9332, allocations: 68.14 kB / 1.382 GB, free: 5.613 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.9334, allocations: 77.31 kB / 1.382 GB, free: 5.59 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.9349, allocations: 0.9223 MB / 1.382 GB, free: 4.992 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.935, allocations: 0 / 1.382 GB, free: 4.992 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.698e-05/0.9351, allocations: 32.88 kB / 1.383 GB, free: 4.969 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.9351, allocations: 20.88 kB / 1.383 GB, free: 4.969 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00178/0.9369, allocations: 1.122 MB / 1.384 GB, free: 4.43 MB / 1.076 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004087/0.941, allocations: 2.714 MB / 1.386 GB, free: 2.246 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.9426, allocations: 0.893 MB / 1.387 GB, free: 1.742 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005646/0.9431, allocations: 308.4 kB / 1.387 GB, free: 1.582 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 7.7e-05/0.9432, allocations: 31.72 kB / 1.387 GB, free: 1.566 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008712/0.9441, allocations: 491.8 kB / 1.388 GB, free: 1.258 MB / 1.076 GB Notification: Performance of pre-optimization done (n=79): time 3.517e-06/0.9441, allocations: 5.094 kB / 1.388 GB, free: 1.254 MB / 1.076 GB Notification: Performance of matching and sorting (n=79): time 0.003194/0.9473, allocations: 1.191 MB / 1.389 GB, free: 0.6055 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.714e-05/0.9475, allocations: 194 kB / 1.389 GB, free: 392 kB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008392/0.9483, allocations: 0.6268 MB / 1.39 GB, free: 16 kB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 9.821e-05/0.9484, allocations: 42.86 kB / 1.39 GB, free: 15.97 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003164/0.9487, allocations: 396.9 kB / 1.39 GB, free: 15.62 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.949, allocations: 269.6 kB / 1.391 GB, free: 15.39 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002297/0.9492, allocations: 143.8 kB / 1.391 GB, free: 15.3 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001664/0.9494, allocations: 387.9 kB / 1.391 GB, free: 14.93 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.9499, allocations: 253.5 kB / 1.391 GB, free: 14.81 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006217/0.9505, allocations: 359.1 kB / 1.392 GB, free: 14.58 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.9517, allocations: 0.5819 MB / 1.392 GB, free: 14.26 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.9517, allocations: 1.094 kB / 1.392 GB, free: 14.26 MB / 1.092 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001947/0.9536, allocations: 0.7996 MB / 1.393 GB, free: 13.85 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.9537, allocations: 5.344 kB / 1.393 GB, free: 13.85 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.9537, allocations: 1.219 kB / 1.393 GB, free: 13.85 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005983/0.9543, allocations: 80.03 kB / 1.393 GB, free: 13.81 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006399/0.9549, allocations: 158.3 kB / 1.393 GB, free: 13.76 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.957, allocations: 1.646 MB / 1.395 GB, free: 12.15 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007781/0.9578, allocations: 89.86 kB / 1.395 GB, free: 12.09 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.26e-05/0.9579, allocations: 31 kB / 1.395 GB, free: 12.08 MB / 1.092 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.0004391/0.9583, allocations: 268.3 kB / 1.395 GB, free: 11.87 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001984/0.9586, allocations: 86.41 kB / 1.395 GB, free: 11.82 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002435/0.961, allocations: 1.062 MB / 1.396 GB, free: 11.22 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.961, allocations: 9.625 kB / 1.396 GB, free: 11.22 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.961, allocations: 3.938 kB / 1.396 GB, free: 11.22 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.9611, allocations: 5.359 kB / 1.396 GB, free: 11.21 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003414/0.9645, allocations: 1.966 MB / 1.398 GB, free: 9.902 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.9645, allocations: 4 kB / 1.398 GB, free: 9.898 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005676/0.9651, allocations: 145.8 kB / 1.398 GB, free: 9.863 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004553/0.9655, allocations: 69.91 kB / 1.399 GB, free: 9.828 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.147e-05/0.9656, allocations: 28.23 kB / 1.399 GB, free: 9.809 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001935/0.9676, allocations: 1.677 MB / 1.4 GB, free: 8.18 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.9676, allocations: 0 / 1.4 GB, free: 8.18 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.9697, allocations: 1.006 MB / 1.401 GB, free: 7.605 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000453/0.9702, allocations: 275.6 kB / 1.401 GB, free: 7.363 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.9704, allocations: 17.19 kB / 1.401 GB, free: 7.352 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000715/0.9711, allocations: 63.08 kB / 1.401 GB, free: 7.32 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.9712, allocations: 66.84 kB / 1.402 GB, free: 7.289 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.959e-05/0.9713, allocations: 37.84 kB / 1.402 GB, free: 7.273 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0005611/0.9719, allocations: 456.4 kB / 1.402 GB, free: 7.012 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.7e-07/0.9719, allocations: 0 / 1.402 GB, free: 7.012 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0009077/0.9728, allocations: 323.4 kB / 1.402 GB, free: 6.914 MB / 1.092 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.003564/0.9764, allocations: 2.052 MB / 1.404 GB, free: 5.621 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.001638/0.978, allocations: 0.7998 MB / 1.405 GB, free: 5.199 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.978, allocations: 1.719 kB / 1.405 GB, free: 5.199 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0009469/0.979, allocations: 0.5186 MB / 1.406 GB, free: 4.898 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.9804, allocations: 305.1 kB / 1.406 GB, free: 4.742 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009909/0.9903, allocations: 6.218 MB / 1.412 GB, free: 404 kB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006221/0.991, allocations: 1.023 MB / 1.413 GB, free: 15.34 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0008347/0.9918, allocations: 270.6 kB / 1.413 GB, free: 15.07 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005345/0.9923, allocations: 371.3 kB / 1.414 GB, free: 14.71 MB / 1.107 GB Notification: Performance of SimCode: time 4.01e-07/0.9923, allocations: 0 / 1.414 GB, free: 14.71 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04751/1.04, allocations: 21.57 MB / 1.435 GB, free: 9.461 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/13.11, allocations: 5.5 kB / 1.435 GB, free: 9.457 MB / 1.123 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle.fmu > Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches