Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001326/0.001326, allocations: 106.6 kB / 16.41 MB, free: 6.488 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.001515/0.001515, allocations: 191 kB / 17.34 MB, free: 5.762 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.278/1.278, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7984/0.7984, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 62.02 kB / 0.582 GB, free: 23.85 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1424, allocations: 80.21 MB / 0.6603 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.005834/0.1483, allocations: 4.15 MB / 0.6644 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5199/0.6683, allocations: 150.5 MB / 0.8113 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008363/0.6691, allocations: 15.47 kB / 0.8113 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007335/0.6699, allocations: 167.2 kB / 0.8115 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001719/0.6717, allocations: 468.9 kB / 0.812 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00199/0.6737, allocations: 0.8021 MB / 0.8127 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001525/0.6752, allocations: 1.199 MB / 0.8139 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.6763, allocations: 0.6739 MB / 0.8146 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007374/0.6771, allocations: 461.3 kB / 0.815 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007624/0.6779, allocations: 482.3 kB / 0.8155 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003213/0.6782, allocations: 113.8 kB / 0.8156 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001083/0.6793, allocations: 490 kB / 0.816 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003316/0.6796, allocations: 289 kB / 0.8163 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006223/0.6803, allocations: 0.5257 MB / 0.8168 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001708/0.682, allocations: 1.571 MB / 0.8184 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.682, allocations: 0 / 0.8184 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.693e-06/0.682, allocations: 0 / 0.8184 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.323e-05/0.682, allocations: 0 / 0.8184 GB, free: 9.965 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.002057/0.6841, allocations: 1.377 MB / 0.8197 GB, free: 8.988 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.6841, allocations: 8.062 kB / 0.8197 GB, free: 8.988 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001051/0.6852, allocations: 206.1 kB / 0.8199 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009481/0.6862, allocations: 0.7485 MB / 0.8206 GB, free: 8.285 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.693e-05/0.6862, allocations: 66.66 kB / 0.8207 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.6863, allocations: 89.88 kB / 0.8208 GB, free: 8.227 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.6878, allocations: 0.9479 MB / 0.8217 GB, free: 7.621 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.6878, allocations: 0 / 0.8217 GB, free: 7.621 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.998e-05/0.6879, allocations: 40.19 kB / 0.8218 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.6879, allocations: 23.38 kB / 0.8218 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.6896, allocations: 1.121 MB / 0.8229 GB, free: 7.059 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003534/0.6931, allocations: 2.439 MB / 0.8253 GB, free: 5.238 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002069/0.6952, allocations: 0.8803 MB / 0.8261 GB, free: 4.75 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004856/0.6957, allocations: 288.3 kB / 0.8264 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.671e-05/0.6958, allocations: 34.31 kB / 0.8264 GB, free: 4.598 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000734/0.6965, allocations: 443.3 kB / 0.8268 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=73): time 2.705e-06/0.6965, allocations: 4 kB / 0.8268 GB, free: 4.309 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73): time 0.002799/0.6993, allocations: 1.093 MB / 0.8279 GB, free: 3.711 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.6994, allocations: 192.4 kB / 0.8281 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006663/0.7001, allocations: 0.5951 MB / 0.8287 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.297e-05/0.7002, allocations: 44.34 kB / 0.8287 GB, free: 3.094 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.7005, allocations: 401.8 kB / 0.8291 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.7007, allocations: 238 kB / 0.8293 GB, free: 2.543 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002222/0.7009, allocations: 156.9 kB / 0.8295 GB, free: 2.449 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.7011, allocations: 385.1 kB / 0.8299 GB, free: 2.078 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004849/0.7015, allocations: 240.9 kB / 0.8301 GB, free: 1.965 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005669/0.7021, allocations: 334.3 kB / 0.8304 GB, free: 1.77 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.7031, allocations: 0.5674 MB / 0.831 GB, free: 1.469 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.7032, allocations: 0 / 0.831 GB, free: 1.469 MB / 0.5919 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001767/0.7049, allocations: 0.7928 MB / 0.8317 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.705, allocations: 9.219 kB / 0.8317 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.705, allocations: 0 / 0.8317 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005906/0.7056, allocations: 80.11 kB / 0.8318 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005973/0.7062, allocations: 152.5 kB / 0.832 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/0.7082, allocations: 1.628 MB / 0.8335 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006114/0.7089, allocations: 83.42 kB / 0.8336 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-05/0.7089, allocations: 34.88 kB / 0.8337 GB, free: 15.32 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.0003461/0.7093, allocations: 266.7 kB / 0.8339 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.7094, allocations: 84.89 kB / 0.834 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002181/0.7116, allocations: 0.9936 MB / 0.835 GB, free: 14.49 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.7117, allocations: 7.688 kB / 0.835 GB, free: 14.49 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.7117, allocations: 0 / 0.835 GB, free: 14.49 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.7117, allocations: 3.984 kB / 0.835 GB, free: 14.49 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.7147, allocations: 1.903 MB / 0.8368 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.7147, allocations: 0 / 0.8368 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005585/0.7153, allocations: 146.6 kB / 0.837 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004305/0.7157, allocations: 74.78 kB / 0.837 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-05/0.7158, allocations: 22.83 kB / 0.8371 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/0.7176, allocations: 1.654 MB / 0.8387 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.7176, allocations: 3.938 kB / 0.8387 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.7194, allocations: 0.919 MB / 0.8396 GB, free: 11 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/0.7197, allocations: 260.6 kB / 0.8398 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.7199, allocations: 17.28 kB / 0.8399 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005792/0.7205, allocations: 59.81 kB / 0.8399 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.7206, allocations: 60.27 kB / 0.84 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.793e-05/0.7206, allocations: 34.94 kB / 0.84 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004665/0.7211, allocations: 436.4 kB / 0.8404 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7211, allocations: 0 / 0.8404 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0007571/0.7219, allocations: 296 kB / 0.8407 GB, free: 10.35 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.001592/0.7235, allocations: 0.6055 MB / 0.8413 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00152/0.725, allocations: 0.7743 MB / 0.842 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.725, allocations: 0 / 0.842 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008494/0.7259, allocations: 0.4887 MB / 0.8425 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.727, allocations: 288.9 kB / 0.8428 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.7305, allocations: 1.762 MB / 0.8445 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005926/0.7311, allocations: 1.023 MB / 0.8455 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002757/0.7314, allocations: 107.4 kB / 0.8456 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of SimCode: time 1.934e-06/0.7314, allocations: 0 / 0.8456 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of Templates: time 0.02256/0.754, allocations: 17.96 MB / 0.8632 GB, free: 4.738 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.makefile make -j1 -f IDEAS_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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.o] Error 1