Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001311/0.001311, allocations: 108.4 kB / 16.41 MB, free: 6.457 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.00109/0.00109, allocations: 187 kB / 17.34 MB, free: 5.719 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8246/0.8246, allocations: 132.2 MB / 423.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 58.97 kB / 0.582 GB, free: 23.81 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.151, allocations: 80.21 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle): time 0.005775/0.1568, allocations: 4.045 MB / 0.6643 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5284/0.6852, allocations: 150.4 MB / 0.8112 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007655/0.686, allocations: 22.47 kB / 0.8112 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005475/0.6866, allocations: 165.5 kB / 0.8114 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001405/0.688, allocations: 470 kB / 0.8118 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.6897, allocations: 0.7849 MB / 0.8126 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001007/0.6907, allocations: 1.156 MB / 0.8137 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007961/0.6915, allocations: 0.5885 MB / 0.8143 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005251/0.6921, allocations: 424.1 kB / 0.8147 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004554/0.6925, allocations: 433.7 kB / 0.8151 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.6927, allocations: 105.3 kB / 0.8152 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008448/0.6935, allocations: 468.8 kB / 0.8156 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002229/0.6938, allocations: 266.5 kB / 0.8159 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003684/0.6941, allocations: 495.1 kB / 0.8164 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001449/0.6956, allocations: 1.453 MB / 0.8178 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.6956, allocations: 4.5 kB / 0.8178 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6956, allocations: 0 / 0.8178 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.296e-05/0.6956, allocations: 0 / 0.8178 GB, free: 10.12 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.002253/0.6979, allocations: 1.295 MB / 0.8191 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.698, allocations: 12.05 kB / 0.8191 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008842/0.6989, allocations: 175.3 kB / 0.8192 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.7, allocations: 0.7196 MB / 0.8199 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.284e-05/0.7, allocations: 57.31 kB / 0.82 GB, free: 8.656 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.7002, allocations: 78.25 kB / 0.8201 GB, free: 8.629 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.7019, allocations: 0.8391 MB / 0.8209 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.7019, allocations: 2.125 kB / 0.8209 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.1e-05/0.702, allocations: 36.31 kB / 0.8209 GB, free: 8.051 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.702, allocations: 17.88 kB / 0.8209 GB, free: 8.051 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.7035, allocations: 1.048 MB / 0.822 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003458/0.707, allocations: 2.295 MB / 0.8242 GB, free: 5.797 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.7083, allocations: 0.7703 MB / 0.825 GB, free: 5.359 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004535/0.7087, allocations: 266.3 kB / 0.8252 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.571e-05/0.7088, allocations: 34.97 kB / 0.8252 GB, free: 5.215 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007294/0.7095, allocations: 420.2 kB / 0.8256 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=70): time 1.974e-06/0.7096, allocations: 0 / 0.8256 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of matching and sorting (n=70): time 0.00283/0.7124, allocations: 1.052 MB / 0.8267 GB, free: 4.363 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.7125, allocations: 188.1 kB / 0.8269 GB, free: 4.145 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006646/0.7132, allocations: 0.583 MB / 0.8274 GB, free: 3.801 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.906e-05/0.7133, allocations: 39.73 kB / 0.8275 GB, free: 3.758 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.7136, allocations: 370.4 kB / 0.8278 GB, free: 3.434 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.7137, allocations: 231.4 kB / 0.828 GB, free: 3.238 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.714, allocations: 146 kB / 0.8282 GB, free: 3.152 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001743/0.7141, allocations: 377.7 kB / 0.8285 GB, free: 2.789 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000435/0.7146, allocations: 234 kB / 0.8288 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005203/0.7151, allocations: 318 kB / 0.8291 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009329/0.716, allocations: 0.5313 MB / 0.8296 GB, free: 2.203 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.7161, allocations: 0 / 0.8296 GB, free: 2.203 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001694/0.7178, allocations: 0.754 MB / 0.8303 GB, free: 1.816 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.7178, allocations: 4.375 kB / 0.8303 GB, free: 1.816 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.7178, allocations: 3.938 kB / 0.8303 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005813/0.7184, allocations: 86.59 kB / 0.8304 GB, free: 1.773 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000544/0.7189, allocations: 145.1 kB / 0.8305 GB, free: 1.738 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.7211, allocations: 1.631 MB / 0.8321 GB, free: 136 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005794/0.7216, allocations: 73.23 kB / 0.8322 GB, free: 88 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.155e-05/0.7217, allocations: 38.91 kB / 0.8322 GB, free: 72 kB / 0.5919 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.0003908/0.7221, allocations: 249.1 kB / 0.8325 GB, free: 15.87 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.7223, allocations: 78.11 kB / 0.8326 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002096/0.7244, allocations: 0.9566 MB / 0.8335 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.7244, allocations: 8 kB / 0.8335 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.7244, allocations: 2.094 kB / 0.8335 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.7244, allocations: 3.984 kB / 0.8335 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.7274, allocations: 1.786 MB / 0.8352 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.7274, allocations: 0 / 0.8352 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004955/0.7279, allocations: 137.1 kB / 0.8354 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004471/0.7284, allocations: 70.47 kB / 0.8354 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.053e-05/0.7284, allocations: 27.67 kB / 0.8355 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.7303, allocations: 1.653 MB / 0.8371 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.7303, allocations: 0 / 0.8371 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.7321, allocations: 0.8891 MB / 0.838 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003848/0.7325, allocations: 245.2 kB / 0.8382 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.345e-05/0.7326, allocations: 25.06 kB / 0.8382 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.7332, allocations: 57.09 kB / 0.8383 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.7333, allocations: 56.42 kB / 0.8383 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-05/0.7334, allocations: 32.08 kB / 0.8384 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005022/0.7339, allocations: 420.6 kB / 0.8388 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7339, allocations: 2.906 kB / 0.8388 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008186/0.7347, allocations: 291.7 kB / 0.839 GB, free: 11.24 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.00142/0.7362, allocations: 0.6035 MB / 0.8396 GB, free: 11 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00154/0.7377, allocations: 0.7381 MB / 0.8403 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.7377, allocations: 0 / 0.8403 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008143/0.7385, allocations: 475.8 kB / 0.8408 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.7397, allocations: 267.2 kB / 0.8411 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.7433, allocations: 1.641 MB / 0.8427 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.7439, allocations: 0.9929 MB / 0.8436 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002714/0.7442, allocations: 100.2 kB / 0.8437 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of SimCode: time 6.22e-07/0.7442, allocations: 0 / 0.8437 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of Templates: time 0.02353/0.7677, allocations: 16.96 MB / 0.8603 GB, free: 7.578 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.makefile make -j1 -f IDEAS_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/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.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleFunctions.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.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.o] Error 1