Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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: translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.0009766/0.0009809, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001009/0.001009, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.198/1.198, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7369/0.7369, allocations: 135.1 MB / 426.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 70.48 kB / 0.5863 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.132, allocations: 80.92 MB / 0.6653 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.005124/0.1371, allocations: 4.153 MB / 0.6693 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4738/0.611, allocations: 150.5 MB / 0.8163 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006829/0.6117, allocations: 18.88 kB / 0.8163 GB, free: 8.457 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005094/0.6122, allocations: 169.9 kB / 0.8165 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.6136, allocations: 484.8 kB / 0.8169 GB, free: 8.172 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001669/0.6153, allocations: 0.7949 MB / 0.8177 GB, free: 7.93 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0009787/0.6163, allocations: 1.196 MB / 0.8189 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007823/0.6171, allocations: 0.6896 MB / 0.8196 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004515/0.6175, allocations: 463.7 kB / 0.82 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004247/0.618, allocations: 476.9 kB / 0.8205 GB, free: 7.035 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.6181, allocations: 113.2 kB / 0.8206 GB, free: 7.035 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007088/0.6188, allocations: 489.7 kB / 0.821 GB, free: 6.941 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002078/0.619, allocations: 291.9 kB / 0.8213 GB, free: 6.805 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003627/0.6194, allocations: 0.5212 MB / 0.8218 GB, free: 6.406 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.6208, allocations: 1.565 MB / 0.8234 GB, free: 5.27 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.6208, allocations: 0 / 0.8234 GB, free: 5.27 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.312e-06/0.6208, allocations: 0 / 0.8234 GB, free: 5.27 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.248e-05/0.6209, allocations: 2.594 kB / 0.8234 GB, free: 5.27 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.001927/0.6228, allocations: 1.374 MB / 0.8247 GB, free: 4.184 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.6228, allocations: 10.45 kB / 0.8247 GB, free: 4.184 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009819/0.6238, allocations: 215 kB / 0.8249 GB, free: 4.074 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009627/0.6248, allocations: 0.7446 MB / 0.8256 GB, free: 3.461 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5e-05/0.6248, allocations: 65.09 kB / 0.8257 GB, free: 3.434 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-05/0.625, allocations: 85.88 kB / 0.8258 GB, free: 3.406 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.6264, allocations: 0.9414 MB / 0.8267 GB, free: 2.809 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.6264, allocations: 3.938 kB / 0.8267 GB, free: 2.805 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.503e-05/0.6265, allocations: 42.44 kB / 0.8267 GB, free: 2.773 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.6265, allocations: 20 kB / 0.8268 GB, free: 2.773 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.6281, allocations: 1.126 MB / 0.8279 GB, free: 2.238 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003299/0.6314, allocations: 2.434 MB / 0.8302 GB, free: 408 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002015/0.6335, allocations: 0.8859 MB / 0.8311 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004765/0.634, allocations: 286.2 kB / 0.8314 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 6.88e-05/0.634, allocations: 30.59 kB / 0.8314 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000713/0.6348, allocations: 439.2 kB / 0.8318 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=73): time 2.014e-06/0.6348, allocations: 0 / 0.8318 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73): time 0.002631/0.6374, allocations: 1.096 MB / 0.8329 GB, free: 14.85 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.734e-05/0.6375, allocations: 188.5 kB / 0.8331 GB, free: 14.63 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006257/0.6381, allocations: 0.6038 MB / 0.8337 GB, free: 14.28 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.391e-05/0.6382, allocations: 39.08 kB / 0.8337 GB, free: 14.24 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.6385, allocations: 392.1 kB / 0.8341 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.6386, allocations: 250.6 kB / 0.8343 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.6388, allocations: 153 kB / 0.8345 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.639, allocations: 380.2 kB / 0.8348 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004584/0.6394, allocations: 252.5 kB / 0.8351 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.64, allocations: 330.3 kB / 0.8354 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009812/0.641, allocations: 0.5647 MB / 0.8359 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.641, allocations: 2.75 kB / 0.8359 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001662/0.6427, allocations: 0.7867 MB / 0.8367 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.6427, allocations: 5.625 kB / 0.8367 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.6427, allocations: 2.188 kB / 0.8367 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005272/0.6432, allocations: 91.25 kB / 0.8368 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005965/0.6438, allocations: 147.7 kB / 0.8369 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.6457, allocations: 1.636 MB / 0.8385 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/0.6463, allocations: 82.58 kB / 0.8386 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.866e-05/0.6464, allocations: 29.39 kB / 0.8386 GB, free: 10.43 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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.0003599/0.6467, allocations: 264.2 kB / 0.8389 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.6469, allocations: 82.12 kB / 0.839 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002062/0.649, allocations: 0.9932 MB / 0.8399 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.649, allocations: 10.12 kB / 0.84 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.649, allocations: 3.562 kB / 0.84 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.649, allocations: 3.984 kB / 0.84 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002884/0.6519, allocations: 1.898 MB / 0.8418 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.6519, allocations: 0 / 0.8418 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005367/0.6524, allocations: 142 kB / 0.8419 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004082/0.6529, allocations: 78.22 kB / 0.842 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.615e-05/0.6529, allocations: 19.73 kB / 0.842 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001651/0.6546, allocations: 1.657 MB / 0.8437 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.6546, allocations: 8 kB / 0.8437 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.6563, allocations: 0.9243 MB / 0.8446 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003282/0.6567, allocations: 257.2 kB / 0.8448 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.6568, allocations: 14.72 kB / 0.8448 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005532/0.6574, allocations: 63.22 kB / 0.8449 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.6575, allocations: 63.31 kB / 0.845 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.965e-05/0.6576, allocations: 31.67 kB / 0.845 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005071/0.6581, allocations: 435 kB / 0.8454 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6581, allocations: 0 / 0.8454 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0007976/0.6589, allocations: 297.6 kB / 0.8457 GB, free: 5.449 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001309/0.6602, allocations: 0.5984 MB / 0.8463 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001559/0.6618, allocations: 0.7692 MB / 0.847 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.6618, allocations: 192 / 0.847 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008541/0.6626, allocations: 0.5002 MB / 0.8475 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.6638, allocations: 284.2 kB / 0.8478 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.6674, allocations: 1.749 MB / 0.8495 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005902/0.668, allocations: 1.023 MB / 0.8505 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000292/0.6683, allocations: 103.4 kB / 0.8506 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.6683, allocations: 3.938 kB / 0.8506 GB, free: 0.7578 MB / 0.6075 GB Notification: Performance of Templates: time 0.0213/0.6897, allocations: 17.85 MB / 0.868 GB, free: 14.93 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/getTimeSpan.c:27:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *' char *result = malloc(len1 + len2 + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [: OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.o] Error 1