Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDirRoo.H|HDirWal.H|HDirFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HDirRoo.H|HDirWal.H|HDirFlo.H",fileNamePrefix="Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 110.3 kB / 16.41 MB, free: 6.477 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.001117/0.001117, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.192/1.192, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.309/2.309, allocations: 469.4 MB / 0.7428 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 64.11 kB / 1.065 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6647/0.6659, allocations: 159.1 MB / 1.221 GB, free: 2.359 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.007246/0.6732, allocations: 7.041 MB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.1315/0.8048, allocations: 151.1 MB / 1.375 GB, free: 3.547 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.806, allocations: 15.94 kB / 1.375 GB, free: 3.531 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.000877/0.8069, allocations: 265.4 kB / 1.376 GB, free: 3.27 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.002441/0.8094, allocations: 0.7897 MB / 1.376 GB, free: 2.48 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.002238/0.8116, allocations: 1.02 MB / 1.377 GB, free: 1.465 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.002374/0.814, allocations: 2.105 MB / 1.379 GB, free: 15.35 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.8155, allocations: 1.099 MB / 1.38 GB, free: 14.2 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.8166, allocations: 0.8293 MB / 1.381 GB, free: 13.37 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001063/0.8177, allocations: 0.8831 MB / 1.382 GB, free: 12.48 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0003377/0.8181, allocations: 224 kB / 1.382 GB, free: 12.26 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.8191, allocations: 0.5739 MB / 1.383 GB, free: 11.69 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0003543/0.8195, allocations: 494.5 kB / 1.383 GB, free: 11.2 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0007934/0.8203, allocations: 0.972 MB / 1.384 GB, free: 10.23 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.00237/0.8226, allocations: 2.669 MB / 1.387 GB, free: 7.551 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.8226, allocations: 0 / 1.387 GB, free: 7.551 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.222e-06/0.8227, allocations: 0 / 1.387 GB, free: 7.551 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.847e-05/0.8227, allocations: 4 kB / 1.387 GB, free: 7.547 MB / 1.107 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.003103/0.8258, allocations: 2.039 MB / 1.389 GB, free: 5.453 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.8258, allocations: 12.62 kB / 1.389 GB, free: 5.441 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009153/0.8267, allocations: 258.6 kB / 1.389 GB, free: 5.188 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.828, allocations: 0.9929 MB / 1.39 GB, free: 4.148 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.8281, allocations: 148.8 kB / 1.39 GB, free: 3.996 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.8283, allocations: 152 kB / 1.39 GB, free: 3.848 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/0.8306, allocations: 1.589 MB / 1.392 GB, free: 2.203 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.8306, allocations: 4 kB / 1.392 GB, free: 2.199 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.8308, allocations: 64 kB / 1.392 GB, free: 2.137 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.789e-05/0.8308, allocations: 40 kB / 1.392 GB, free: 2.098 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002254/0.8331, allocations: 1.592 MB / 1.394 GB, free: 0.5 MB / 1.107 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.00578/0.8388, allocations: 4.681 MB / 1.398 GB, free: 11.63 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.8406, allocations: 1.09 MB / 1.399 GB, free: 10.54 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006487/0.8412, allocations: 427.9 kB / 1.4 GB, free: 10.12 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 8.03e-05/0.8413, allocations: 44.94 kB / 1.4 GB, free: 10.07 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.8424, allocations: 0.6997 MB / 1.4 GB, free: 9.359 MB / 1.123 GB Notification: Performance of pre-optimization done (n=111): time 4.178e-06/0.8424, allocations: 3.984 kB / 1.4 GB, free: 9.355 MB / 1.123 GB Notification: Performance of matching and sorting (n=111): time 0.003527/0.8459, allocations: 1.657 MB / 1.402 GB, free: 7.668 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.376e-05/0.846, allocations: 200.9 kB / 1.402 GB, free: 7.43 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009187/0.8469, allocations: 0.8375 MB / 1.403 GB, free: 6.586 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 7.918e-05/0.847, allocations: 57.64 kB / 1.403 GB, free: 6.523 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003812/0.8474, allocations: 0.6129 MB / 1.404 GB, free: 5.902 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002403/0.8477, allocations: 362.8 kB / 1.404 GB, free: 5.543 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002945/0.848, allocations: 230.7 kB / 1.404 GB, free: 5.312 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.8481, allocations: 345.9 kB / 1.405 GB, free: 4.969 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006742/0.8488, allocations: 402.4 kB / 1.405 GB, free: 4.574 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007875/0.8496, allocations: 0.5072 MB / 1.406 GB, free: 4.051 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.851, allocations: 0.8915 MB / 1.406 GB, free: 3.148 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.851, allocations: 0 / 1.406 GB, free: 3.148 MB / 1.123 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002299/0.8533, allocations: 1.211 MB / 1.408 GB, free: 1.926 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.8533, allocations: 5.875 kB / 1.408 GB, free: 1.922 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.8533, allocations: 0 / 1.408 GB, free: 1.922 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005419/0.8539, allocations: 88.83 kB / 1.408 GB, free: 1.832 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008578/0.8547, allocations: 227.7 kB / 1.408 GB, free: 1.609 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.8566, allocations: 1.646 MB / 1.409 GB, free: 15.82 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008925/0.8575, allocations: 131.1 kB / 1.41 GB, free: 15.69 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.191e-05/0.8576, allocations: 52.03 kB / 1.41 GB, free: 15.64 MB / 1.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 26 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,HDirWal.incAng.decAng.tNext,$PRE.HDirWal.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,$PRE.HDirFlo.incAng.decAng.tNext,HDirRoo.incAng.decAng.tNext,$PRE.HDirRoo.incAng.decAng.tNext,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,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 134 * 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.0005629/0.8581, allocations: 356.9 kB / 1.41 GB, free: 15.28 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.8583, allocations: 118.5 kB / 1.41 GB, free: 15.16 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.8612, allocations: 1.528 MB / 1.412 GB, free: 13.61 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.8612, allocations: 16 kB / 1.412 GB, free: 13.6 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.8612, allocations: 0 / 1.412 GB, free: 13.6 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.8612, allocations: 7.969 kB / 1.412 GB, free: 13.59 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.8626, allocations: 1.38 MB / 1.413 GB, free: 12.16 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.8626, allocations: 0 / 1.413 GB, free: 12.16 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.8633, allocations: 203.7 kB / 1.413 GB, free: 11.96 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003985/0.8637, allocations: 64.8 kB / 1.413 GB, free: 11.89 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-05/0.8638, allocations: 35.97 kB / 1.413 GB, free: 11.86 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.8654, allocations: 1.674 MB / 1.415 GB, free: 10.04 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.8654, allocations: 0 / 1.415 GB, free: 10.04 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002209/0.8677, allocations: 1.285 MB / 1.416 GB, free: 8.73 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.8681, allocations: 363.1 kB / 1.417 GB, free: 8.355 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.8683, allocations: 32 kB / 1.417 GB, free: 8.324 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007981/0.8691, allocations: 80.05 kB / 1.417 GB, free: 8.246 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.8693, allocations: 105.2 kB / 1.417 GB, free: 8.145 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.313e-05/0.8694, allocations: 47.97 kB / 1.417 GB, free: 8.098 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0006834/0.87, allocations: 0.6174 MB / 1.417 GB, free: 7.469 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8701, allocations: 3.938 kB / 1.417 GB, free: 7.465 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.0009401/0.871, allocations: 482.5 kB / 1.418 GB, free: 6.992 MB / 1.139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of discrete states: 8 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,HDirRoo.incAng.decAng.tNext,HDirFlo.incAng.decAng.tNext,HDirWal.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001193/0.8722, allocations: 0.6156 MB / 1.418 GB, free: 6.555 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.0019/0.8741, allocations: 1.154 MB / 1.42 GB, free: 5.387 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.8741, allocations: 0 / 1.42 GB, free: 5.387 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.8752, allocations: 0.6895 MB / 1.42 GB, free: 4.688 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.8764, allocations: 347 kB / 1.421 GB, free: 4.359 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003797/0.8802, allocations: 2.497 MB / 1.423 GB, free: 1.828 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007267/0.881, allocations: 1.224 MB / 1.424 GB, free: 0.5703 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000446/0.8814, allocations: 159.3 kB / 1.424 GB, free: 424 kB / 1.139 GB Notification: Performance of SimCode: time 3.5e-07/0.8814, allocations: 3.938 kB / 1.424 GB, free: 420 kB / 1.139 GB Notification: Performance of Templates: time 0.02979/0.9112, allocations: 27.45 MB / 1.451 GB, free: 5.047 MB / 1.17 GB make -j1 -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches