Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.AltitudeAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 110.4 kB / 16.41 MB, free: 6.496 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.001591/0.001591, allocations: 183 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8518/0.8518, allocations: 135.2 MB / 426.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 64.06 kB / 0.5863 GB, free: 21.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1849, allocations: 80.93 MB / 0.6653 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.006707/0.1916, allocations: 4.145 MB / 0.6694 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5983/0.7899, allocations: 150.9 MB / 0.8168 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009299/0.7908, allocations: 18.88 kB / 0.8168 GB, free: 8.195 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006367/0.7915, allocations: 168.5 kB / 0.8169 GB, free: 8.109 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001699/0.7932, allocations: 488 kB / 0.8174 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002053/0.7952, allocations: 0.8014 MB / 0.8182 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001526/0.7968, allocations: 1.196 MB / 0.8194 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007465/0.7975, allocations: 449.8 kB / 0.8198 GB, free: 7.176 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006514/0.7982, allocations: 443.8 kB / 0.8202 GB, free: 7.035 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005242/0.7987, allocations: 447.3 kB / 0.8206 GB, free: 6.836 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.7988, allocations: 103.6 kB / 0.8207 GB, free: 6.836 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001016/0.7998, allocations: 480 kB / 0.8212 GB, free: 6.734 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002986/0.8001, allocations: 268.9 kB / 0.8214 GB, free: 6.637 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004904/0.8006, allocations: 0.495 MB / 0.8219 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002119/0.8027, allocations: 1.492 MB / 0.8234 GB, free: 5.18 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.8027, allocations: 0 / 0.8234 GB, free: 5.18 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.753e-06/0.8027, allocations: 0 / 0.8234 GB, free: 5.18 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.565e-05/0.8028, allocations: 0 / 0.8234 GB, free: 5.18 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002465/0.8052, allocations: 1.363 MB / 0.8247 GB, free: 4.082 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.8053, allocations: 11.17 kB / 0.8247 GB, free: 4.082 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009159/0.8062, allocations: 187.4 kB / 0.8249 GB, free: 3.992 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.8074, allocations: 0.7297 MB / 0.8256 GB, free: 3.383 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.034e-05/0.8075, allocations: 58.59 kB / 0.8257 GB, free: 3.359 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.716e-05/0.8076, allocations: 79.06 kB / 0.8258 GB, free: 3.332 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.8091, allocations: 0.8789 MB / 0.8266 GB, free: 2.758 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/0.8091, allocations: 3.938 kB / 0.8266 GB, free: 2.754 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.898e-05/0.8092, allocations: 31.78 kB / 0.8266 GB, free: 2.73 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.8092, allocations: 20.19 kB / 0.8267 GB, free: 2.73 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.8109, allocations: 1.067 MB / 0.8277 GB, free: 2.227 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003839/0.8147, allocations: 2.36 MB / 0.83 GB, free: 416 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.8161, allocations: 0.7506 MB / 0.8307 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004816/0.8166, allocations: 255 kB / 0.831 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.916e-05/0.8166, allocations: 36.36 kB / 0.831 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007614/0.8174, allocations: 425.8 kB / 0.8314 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=73): time 2.374e-06/0.8174, allocations: 0 / 0.8314 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73): time 0.002977/0.8204, allocations: 1.089 MB / 0.8325 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.8205, allocations: 192.4 kB / 0.8327 GB, free: 14.72 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007526/0.8213, allocations: 0.5813 MB / 0.8332 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.56e-05/0.8213, allocations: 42.73 kB / 0.8333 GB, free: 14.34 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003358/0.8217, allocations: 380.1 kB / 0.8336 GB, free: 14 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.8219, allocations: 256.5 kB / 0.8339 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/0.8221, allocations: 160.1 kB / 0.834 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001951/0.8223, allocations: 378.4 kB / 0.8344 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004596/0.8228, allocations: 237 kB / 0.8346 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005751/0.8234, allocations: 333.8 kB / 0.8349 GB, free: 13 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.8244, allocations: 0.5612 MB / 0.8355 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.8245, allocations: 4 kB / 0.8355 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001831/0.8263, allocations: 0.7898 MB / 0.8363 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.8263, allocations: 6.875 kB / 0.8363 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.8263, allocations: 0 / 0.8363 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005833/0.8269, allocations: 80.48 kB / 0.8364 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005942/0.8275, allocations: 157.9 kB / 0.8365 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/0.8297, allocations: 1.635 MB / 0.8381 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006961/0.8304, allocations: 79.42 kB / 0.8382 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/0.8305, allocations: 32.47 kB / 0.8382 GB, free: 10.53 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (85): * Single equations (assignments): 84 * 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.0004517/0.8309, allocations: 250 kB / 0.8384 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.8311, allocations: 89.36 kB / 0.8385 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/0.8334, allocations: 0.9897 MB / 0.8395 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.8334, allocations: 9.938 kB / 0.8395 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.8334, allocations: 0 / 0.8395 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.8334, allocations: 7.969 kB / 0.8395 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003286/0.8367, allocations: 1.862 MB / 0.8413 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.8367, allocations: 5.969 kB / 0.8413 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005551/0.8373, allocations: 144.1 kB / 0.8415 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004299/0.8377, allocations: 78.81 kB / 0.8416 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.254e-05/0.8377, allocations: 23.52 kB / 0.8416 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00212/0.8399, allocations: 1.657 MB / 0.8432 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.8399, allocations: 0 / 0.8432 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.8419, allocations: 0.9224 MB / 0.8441 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.8423, allocations: 265.8 kB / 0.8443 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.8424, allocations: 16.84 kB / 0.8444 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.8429, allocations: 60.94 kB / 0.8444 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.8431, allocations: 59.3 kB / 0.8445 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.421e-05/0.8431, allocations: 32.33 kB / 0.8445 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005832/0.8437, allocations: 425.1 kB / 0.8449 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8437, allocations: 0 / 0.8449 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009254/0.8446, allocations: 302.1 kB / 0.8452 GB, free: 5.566 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 (87): * Single equations (assignments): 84 * 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.001972/0.8466, allocations: 0.6054 MB / 0.8458 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00168/0.8483, allocations: 0.7335 MB / 0.8465 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.8483, allocations: 4.25 kB / 0.8465 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008485/0.8492, allocations: 465.8 kB / 0.847 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.8505, allocations: 277.3 kB / 0.8472 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.8544, allocations: 1.729 MB / 0.8489 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006599/0.8551, allocations: 0.9993 MB / 0.8499 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.8554, allocations: 107.4 kB / 0.85 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of SimCode: time 6.11e-07/0.8554, allocations: 0 / 0.85 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of Templates: time 0.02577/0.8812, allocations: 17.23 MB / 0.8668 GB, free: 268 kB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.AltitudeAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleFunctions.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.AltitudeAngleCalcHelperMain.o] Error 1