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.008233/0.008233, allocations: 100.8 kB / 15.87 MB, free: 5.871 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.00244/0.00244, allocations: 196.8 kB / 16.79 MB, free: 5.816 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 / 240.5 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9454/0.9454, allocations: 135.1 MB / 425.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 69.08 kB / 0.5053 GB, free: 5.738 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.172/0.1732, allocations: 80.92 MB / 0.5843 GB, free: 4.984 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.006161/0.1794, allocations: 4.143 MB / 0.5884 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4907/0.6702, allocations: 148.2 MB / 0.7331 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009841/0.6712, allocations: 19.09 kB / 0.7331 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006371/0.6719, allocations: 130.5 kB / 0.7332 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001962/0.6739, allocations: 408.4 kB / 0.7336 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002209/0.6761, allocations: 0.6833 MB / 0.7343 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001647/0.6778, allocations: 1.113 MB / 0.7354 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009917/0.6788, allocations: 0.586 MB / 0.7359 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007984/0.6796, allocations: 377 kB / 0.7363 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006432/0.6802, allocations: 423.1 kB / 0.7367 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001264/0.6804, allocations: 52.09 kB / 0.7368 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.6816, allocations: 404.1 kB / 0.7371 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002772/0.6818, allocations: 219.3 kB / 0.7374 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005368/0.6824, allocations: 452 kB / 0.7378 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001407/0.6838, allocations: 1.087 MB / 0.7388 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.6838, allocations: 0 / 0.7388 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.343e-06/0.6838, allocations: 0 / 0.7388 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.543e-05/0.6838, allocations: 2 kB / 0.7388 GB, free: 11.48 MB / 0.5606 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.002822/0.6867, allocations: 1.339 MB / 0.7402 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.6867, allocations: 8.969 kB / 0.7402 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001047/0.6878, allocations: 182.3 kB / 0.7403 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.689, allocations: 0.702 MB / 0.741 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/0.689, allocations: 59 kB / 0.7411 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.6892, allocations: 74.88 kB / 0.7411 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.6908, allocations: 0.8734 MB / 0.742 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.6909, allocations: 0 / 0.742 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.86e-05/0.691, allocations: 36.22 kB / 0.742 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.871e-05/0.691, allocations: 19.84 kB / 0.7421 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.6928, allocations: 1.069 MB / 0.7431 GB, free: 8.582 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004119/0.6969, allocations: 2.373 MB / 0.7454 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/0.6983, allocations: 0.7965 MB / 0.7462 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004745/0.6988, allocations: 280.4 kB / 0.7465 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.26e-05/0.6989, allocations: 33.7 kB / 0.7465 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008893/0.6998, allocations: 420 kB / 0.7469 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=73): time 2.725e-06/0.6998, allocations: 4 kB / 0.7469 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73): time 0.003071/0.7029, allocations: 1.087 MB / 0.748 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.703, allocations: 192.4 kB / 0.7481 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008421/0.7039, allocations: 0.5861 MB / 0.7487 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.874e-05/0.704, allocations: 41.64 kB / 0.7488 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003476/0.7043, allocations: 380.3 kB / 0.7491 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.7046, allocations: 248.2 kB / 0.7494 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.7048, allocations: 150.5 kB / 0.7495 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001861/0.705, allocations: 378.8 kB / 0.7499 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004851/0.7055, allocations: 237.9 kB / 0.7501 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000588/0.7061, allocations: 337.7 kB / 0.7504 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.7072, allocations: 0.569 MB / 0.751 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.7072, allocations: 0 / 0.751 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001925/0.7091, allocations: 0.7824 MB / 0.7517 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.7092, allocations: 4 kB / 0.7517 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.7092, allocations: 3.938 kB / 0.7517 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000617/0.7098, allocations: 84.89 kB / 0.7518 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006298/0.7104, allocations: 147.8 kB / 0.752 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.7129, allocations: 1.524 MB / 0.7534 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007408/0.7137, allocations: 79.42 kB / 0.7535 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-05/0.7137, allocations: 32.05 kB / 0.7536 GB, free: 15.42 MB / 0.5762 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.0004923/0.7142, allocations: 253.7 kB / 0.7538 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/0.7144, allocations: 75.25 kB / 0.7539 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/0.7167, allocations: 1.002 MB / 0.7548 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.759e-06/0.7167, allocations: 8 kB / 0.7549 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-06/0.7167, allocations: 0 / 0.7549 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.7167, allocations: 7.984 kB / 0.7549 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003281/0.72, allocations: 1.862 MB / 0.7567 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.72, allocations: 4 kB / 0.7567 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005658/0.7206, allocations: 147.8 kB / 0.7568 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005573/0.7212, allocations: 80.78 kB / 0.7569 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.569e-05/0.7212, allocations: 23.92 kB / 0.7569 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/0.7232, allocations: 1.544 MB / 0.7584 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.7232, allocations: 0 / 0.7584 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002015/0.7252, allocations: 0.918 MB / 0.7593 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.7256, allocations: 263.7 kB / 0.7596 GB, free: 8.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.7257, allocations: 17.5 kB / 0.7596 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005599/0.7263, allocations: 51.94 kB / 0.7596 GB, free: 8.926 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.7265, allocations: 64.91 kB / 0.7597 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.476e-05/0.7266, allocations: 27.98 kB / 0.7597 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006787/0.7273, allocations: 434.3 kB / 0.7601 GB, free: 8.422 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7273, allocations: 4 kB / 0.7602 GB, free: 8.418 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00107/0.7284, allocations: 291.2 kB / 0.7604 GB, free: 8.133 MB / 0.5762 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.001721/0.7301, allocations: 0.5971 MB / 0.761 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001649/0.7317, allocations: 0.7643 MB / 0.7618 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.7318, allocations: 0 / 0.7618 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000834/0.7326, allocations: 488.8 kB / 0.7622 GB, free: 6.488 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.7338, allocations: 263.4 kB / 0.7625 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003988/0.7378, allocations: 2.101 MB / 0.7645 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/0.7384, allocations: 0.9996 MB / 0.7655 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000309/0.7387, allocations: 107.4 kB / 0.7656 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of SimCode: time 1.182e-06/0.7387, allocations: 0 / 0.7656 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of Templates: time 0.02392/0.7627, allocations: 17.08 MB / 0.7823 GB, free: 1.949 MB / 0.5919 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++14 -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