Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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: translateModel(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") translateModel(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 106.8 kB / 15.99 MB, free: 5.895 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.001205/0.001205, allocations: 196.7 kB / 16.91 MB, free: 5.746 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.317/1.317, allocations: 222.9 MB / 240.6 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 286.9 kB / 291 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9418/0.9418, allocations: 169.2 MB / 0.4985 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 100.6 kB / 0.5953 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1779, allocations: 86.98 MB / 0.6803 GB, free: 1.055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.006486/0.1844, allocations: 4.376 MB / 0.6846 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4915/0.676, allocations: 148.3 MB / 0.8294 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008285/0.6769, allocations: 15.28 kB / 0.8294 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005276/0.6774, allocations: 137.7 kB / 0.8296 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001481/0.6789, allocations: 455.8 kB / 0.83 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001752/0.6807, allocations: 0.7502 MB / 0.8307 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00135/0.6821, allocations: 1.32 MB / 0.832 GB, free: 376 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008739/0.6829, allocations: 0.6925 MB / 0.8327 GB, free: 228 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006712/0.6836, allocations: 0.4953 MB / 0.8332 GB, free: 128 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005054/0.6841, allocations: 0.5283 MB / 0.8337 GB, free: 4 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001641/0.6843, allocations: 125.9 kB / 0.8338 GB, free: 4 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009457/0.6853, allocations: 470.5 kB / 0.8343 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000254/0.6855, allocations: 314.3 kB / 0.8346 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004871/0.686, allocations: 0.5755 MB / 0.8351 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.6874, allocations: 1.274 MB / 0.8364 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.6874, allocations: 0 / 0.8364 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6874, allocations: 0 / 0.8364 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.779e-05/0.6875, allocations: 0.7812 kB / 0.8364 GB, free: 15.66 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002631/0.6901, allocations: 1.475 MB / 0.8378 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.6902, allocations: 12.3 kB / 0.8378 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001086/0.6912, allocations: 214.5 kB / 0.838 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.6923, allocations: 0.7629 MB / 0.8388 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.027e-05/0.6923, allocations: 74.42 kB / 0.8388 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.6925, allocations: 93.44 kB / 0.8389 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.6941, allocations: 1.004 MB / 0.8399 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.6942, allocations: 0 / 0.8399 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-05/0.6943, allocations: 43.23 kB / 0.84 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.041e-05/0.6943, allocations: 23.38 kB / 0.84 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.6961, allocations: 1.179 MB / 0.8411 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004237/0.7003, allocations: 2.619 MB / 0.8437 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002297/0.7027, allocations: 0.9703 MB / 0.8446 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005315/0.7032, allocations: 317.1 kB / 0.8449 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-05/0.7033, allocations: 32.92 kB / 0.845 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008753/0.7042, allocations: 0.4924 MB / 0.8455 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=82): time 2.555e-06/0.7042, allocations: 4 kB / 0.8455 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.003199/0.7074, allocations: 1.219 MB / 0.8466 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.7075, allocations: 190.9 kB / 0.8468 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007687/0.7083, allocations: 0.6425 MB / 0.8475 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.197e-05/0.7084, allocations: 42.48 kB / 0.8475 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000328/0.7087, allocations: 419.2 kB / 0.8479 GB, free: 9.812 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.7089, allocations: 268.4 kB / 0.8482 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002395/0.7092, allocations: 168.7 kB / 0.8483 GB, free: 9.484 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.7094, allocations: 388.5 kB / 0.8487 GB, free: 9.113 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005319/0.7099, allocations: 278.4 kB / 0.849 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006178/0.7105, allocations: 375.7 kB / 0.8493 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.7116, allocations: 0.6116 MB / 0.8499 GB, free: 8.438 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.7117, allocations: 6.562 kB / 0.8499 GB, free: 8.434 MB / 0.5762 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001987/0.7137, allocations: 0.8665 MB / 0.8508 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.7137, allocations: 11.06 kB / 0.8508 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.7137, allocations: 2.75 kB / 0.8508 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/0.7143, allocations: 82.94 kB / 0.8509 GB, free: 7.949 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/0.715, allocations: 167.6 kB / 0.851 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.7171, allocations: 1.623 MB / 0.8526 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008484/0.7179, allocations: 97.64 kB / 0.8527 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.426e-05/0.718, allocations: 41.25 kB / 0.8527 GB, free: 6.234 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,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.0005081/0.7185, allocations: 287.1 kB / 0.853 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.7187, allocations: 78.75 kB / 0.8531 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.7211, allocations: 1.11 MB / 0.8542 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.7211, allocations: 9.812 kB / 0.8542 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.7211, allocations: 2.5 kB / 0.8542 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.7211, allocations: 3.984 kB / 0.8542 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003294/0.7244, allocations: 2.007 MB / 0.8561 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.7244, allocations: 0 / 0.8561 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005952/0.725, allocations: 159.6 kB / 0.8563 GB, free: 4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004411/0.7255, allocations: 68.03 kB / 0.8564 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-05/0.7256, allocations: 26.05 kB / 0.8564 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001853/0.7274, allocations: 1.657 MB / 0.858 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.7274, allocations: 4.062 kB / 0.858 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/0.7295, allocations: 1.017 MB / 0.859 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000391/0.7299, allocations: 271.1 kB / 0.8593 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.7301, allocations: 21.47 kB / 0.8593 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006983/0.7308, allocations: 72.52 kB / 0.8593 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.7309, allocations: 68.19 kB / 0.8594 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.43e-05/0.731, allocations: 38.22 kB / 0.8594 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006244/0.7317, allocations: 466.6 kB / 0.8599 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7317, allocations: 3.938 kB / 0.8599 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000985/0.7327, allocations: 327.1 kB / 0.8602 GB, free: 1.043 MB / 0.5762 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 (94): * Single equations (assignments): 88 * 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.001426/0.7341, allocations: 0.6175 MB / 0.8608 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002383/0.7365, allocations: 1.054 MB / 0.8618 GB, free: 288 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.7365, allocations: 2.906 kB / 0.8618 GB, free: 288 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000942/0.7374, allocations: 0.5253 MB / 0.8624 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.7388, allocations: 300.7 kB / 0.8626 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004135/0.7429, allocations: 2.32 MB / 0.8649 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00064/0.7436, allocations: 1.043 MB / 0.8659 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003335/0.7439, allocations: 115.6 kB / 0.866 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of SimCode: time 5.21e-07/0.7439, allocations: 4 kB / 0.866 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of Templates: time 0.02537/0.7693, allocations: 19.1 MB / 0.8847 GB, free: 13.54 MB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.makefile (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.sim & ./BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe 2>&1)