Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.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.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 107.5 kB / 16.41 MB, free: 6.492 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.001349/0.001349, allocations: 192.1 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.338/1.338, 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.806/0.806, allocations: 135.1 MB / 426.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 61.77 kB / 0.5863 GB, free: 21.67 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1823, allocations: 80.92 MB / 0.6653 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle): time 0.006447/0.1888, allocations: 4.049 MB / 0.6692 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6278/0.8166, allocations: 150.4 MB / 0.8162 GB, free: 8.578 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.8177, allocations: 14.94 kB / 0.8162 GB, free: 8.574 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000916/0.8187, allocations: 165.2 kB / 0.8163 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002256/0.821, allocations: 475.9 kB / 0.8168 GB, free: 8.301 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002377/0.8234, allocations: 0.7861 MB / 0.8176 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001492/0.8249, allocations: 1.159 MB / 0.8187 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008755/0.8258, allocations: 0.5998 MB / 0.8193 GB, free: 7.582 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006384/0.8264, allocations: 420.5 kB / 0.8197 GB, free: 7.449 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004945/0.8269, allocations: 436.5 kB / 0.8201 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.8271, allocations: 99.81 kB / 0.8202 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008943/0.828, allocations: 472 kB / 0.8206 GB, free: 7.164 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.8282, allocations: 258.2 kB / 0.8209 GB, free: 7.078 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004142/0.8286, allocations: 498.8 kB / 0.8214 GB, free: 6.773 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001589/0.8302, allocations: 1.45 MB / 0.8228 GB, free: 5.73 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.8302, allocations: 0 / 0.8228 GB, free: 5.73 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.943e-06/0.8303, allocations: 0 / 0.8228 GB, free: 5.73 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.578e-05/0.8303, allocations: 2.344 kB / 0.8228 GB, free: 5.73 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: 195 * Number of variables: 195 Notification: Performance of Generate backend data structure: time 0.002115/0.8324, allocations: 1.298 MB / 0.824 GB, free: 4.691 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.8325, allocations: 14.92 kB / 0.8241 GB, free: 4.688 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008873/0.8334, allocations: 181.4 kB / 0.8242 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.8344, allocations: 0.7118 MB / 0.8249 GB, free: 4.012 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/0.8345, allocations: 62.64 kB / 0.825 GB, free: 3.984 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.8346, allocations: 82.14 kB / 0.8251 GB, free: 3.953 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.836, allocations: 0.8356 MB / 0.8259 GB, free: 3.406 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.836, allocations: 4 kB / 0.8259 GB, free: 3.402 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-05/0.8361, allocations: 35.06 kB / 0.8259 GB, free: 3.379 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.8361, allocations: 17.03 kB / 0.8259 GB, free: 3.379 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.8377, allocations: 1.042 MB / 0.8269 GB, free: 2.887 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003307/0.841, allocations: 2.304 MB / 0.8292 GB, free: 1.098 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.8423, allocations: 0.7664 MB / 0.8299 GB, free: 0.6602 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/0.8427, allocations: 270.2 kB / 0.8302 GB, free: 0.5273 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.193e-05/0.8428, allocations: 34.14 kB / 0.8302 GB, free: 0.5078 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000683/0.8435, allocations: 414.7 kB / 0.8306 GB, free: 248 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=70): time 2.094e-06/0.8435, allocations: 0 / 0.8306 GB, free: 248 kB / 0.5919 GB Notification: Performance of matching and sorting (n=70): time 0.002786/0.8463, allocations: 1.049 MB / 0.8317 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.8464, allocations: 190.6 kB / 0.8318 GB, free: 15.44 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007034/0.8471, allocations: 0.5842 MB / 0.8324 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/0.8472, allocations: 38.77 kB / 0.8324 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002779/0.8475, allocations: 371.3 kB / 0.8328 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.8476, allocations: 230.3 kB / 0.833 GB, free: 14.53 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002101/0.8479, allocations: 143 kB / 0.8332 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.848, allocations: 384.2 kB / 0.8335 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004298/0.8485, allocations: 233.7 kB / 0.8337 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005179/0.849, allocations: 313.5 kB / 0.834 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009363/0.8499, allocations: 0.5351 MB / 0.8346 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.85, allocations: 0 / 0.8346 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00165/0.8516, allocations: 0.7571 MB / 0.8353 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.8516, allocations: 5.938 kB / 0.8353 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.8517, allocations: 0 / 0.8353 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000582/0.8522, allocations: 85.77 kB / 0.8354 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/0.8528, allocations: 141.5 kB / 0.8355 GB, free: 13.03 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.855, allocations: 1.627 MB / 0.8371 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006113/0.8556, allocations: 80.52 kB / 0.8372 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.97e-05/0.8557, allocations: 34.34 kB / 0.8372 GB, free: 11.36 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 (81): * Single equations (assignments): 80 * 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.0004132/0.8561, allocations: 246 kB / 0.8375 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.8563, allocations: 74.31 kB / 0.8375 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002041/0.8583, allocations: 0.9589 MB / 0.8385 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.8583, allocations: 7.844 kB / 0.8385 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.8583, allocations: 2.344 kB / 0.8385 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.8584, allocations: 7.984 kB / 0.8385 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002875/0.8612, allocations: 1.787 MB / 0.8402 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.8613, allocations: 0 / 0.8402 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000512/0.8618, allocations: 137.5 kB / 0.8404 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004236/0.8622, allocations: 71.78 kB / 0.8404 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.926e-05/0.8623, allocations: 27.36 kB / 0.8405 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002014/0.8643, allocations: 1.65 MB / 0.8421 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.8643, allocations: 0 / 0.8421 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.8663, allocations: 0.8917 MB / 0.8429 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003917/0.8667, allocations: 250.4 kB / 0.8432 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.8668, allocations: 16.91 kB / 0.8432 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005462/0.8673, allocations: 57.44 kB / 0.8432 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.8675, allocations: 56.3 kB / 0.8433 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.345e-05/0.8676, allocations: 27.83 kB / 0.8433 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006247/0.8682, allocations: 428.1 kB / 0.8437 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8682, allocations: 0 / 0.8437 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009246/0.8691, allocations: 287 kB / 0.844 GB, free: 6.508 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 (81): * Single equations (assignments): 78 * 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.001384/0.8705, allocations: 0.6049 MB / 0.8446 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001492/0.872, allocations: 0.7437 MB / 0.8453 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.872, allocations: 0 / 0.8453 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007938/0.8728, allocations: 471 kB / 0.8458 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.874, allocations: 284 kB / 0.846 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.8779, allocations: 1.639 MB / 0.8476 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007045/0.8786, allocations: 0.9913 MB / 0.8486 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/0.8789, allocations: 99.39 kB / 0.8487 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of SimCode: time 5.81e-07/0.8789, allocations: 3.938 kB / 0.8487 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of Templates: time 0.02532/0.9042, allocations: 16.82 MB / 0.8651 GB, free: 1.891 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.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.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleFunctions.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.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.o] Error 1