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.00136/0.001365, allocations: 111.8 kB / 16.27 MB, free: 6.414 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.001398/0.001398, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.314/1.314, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8022/0.8022, allocations: 135.2 MB / 426.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 63.89 kB / 0.506 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3748, allocations: 80.92 MB / 0.5851 GB, free: 25.26 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.004636/0.3795, allocations: 4.13 MB / 0.5891 GB, free: 22.02 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.167/0.5465, allocations: 150.5 MB / 0.736 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007903/0.5473, allocations: 23.88 kB / 0.7361 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000686/0.5481, allocations: 166.5 kB / 0.7362 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001841/0.5499, allocations: 471.7 kB / 0.7367 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002003/0.5519, allocations: 0.7894 MB / 0.7374 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001546/0.5535, allocations: 1.18 MB / 0.7386 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009047/0.5544, allocations: 0.6178 MB / 0.7392 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006/0.555, allocations: 438.4 kB / 0.7396 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000503/0.5555, allocations: 446 kB / 0.74 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000144/0.5557, allocations: 104 kB / 0.7401 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008205/0.5565, allocations: 447.6 kB / 0.7406 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002653/0.5568, allocations: 279.1 kB / 0.7408 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004418/0.5573, allocations: 0.4896 MB / 0.7413 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001569/0.5588, allocations: 1.445 MB / 0.7427 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.5588, allocations: 0 / 0.7427 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5588, allocations: 0 / 0.7427 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.848e-06/0.5589, allocations: 0 / 0.7427 GB, free: 8.543 MB / 0.5762 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.002098/0.561, allocations: 1.33 MB / 0.744 GB, free: 7.164 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.561, allocations: 13.11 kB / 0.744 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000868/0.5619, allocations: 175.5 kB / 0.7442 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009512/0.5628, allocations: 0.7033 MB / 0.7449 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.66e-05/0.5629, allocations: 61.94 kB / 0.745 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.563, allocations: 80 kB / 0.745 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.5644, allocations: 0.8637 MB / 0.7459 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.5645, allocations: 0 / 0.7459 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.892e-05/0.5645, allocations: 32 kB / 0.7459 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.5646, allocations: 20 kB / 0.7459 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.5663, allocations: 1.077 MB / 0.747 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003589/0.5699, allocations: 2.382 MB / 0.7493 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.5712, allocations: 0.7982 MB / 0.7501 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004915/0.5717, allocations: 278.7 kB / 0.7503 GB, free: 0.5117 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.466e-05/0.5718, allocations: 36.67 kB / 0.7504 GB, free: 488 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007927/0.5726, allocations: 423.2 kB / 0.7508 GB, free: 44 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=73): time 1.794e-06/0.5726, allocations: 0 / 0.7508 GB, free: 44 kB / 0.5762 GB Notification: Performance of matching and sorting (n=73): time 0.2687/0.8413, allocations: 1.078 MB / 0.7518 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/0.8414, allocations: 193.2 kB / 0.752 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007885/0.8422, allocations: 0.5915 MB / 0.7526 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.395e-05/0.8423, allocations: 37.39 kB / 0.7526 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000274/0.8426, allocations: 378.5 kB / 0.753 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.8428, allocations: 241.9 kB / 0.7532 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.843, allocations: 150.8 kB / 0.7534 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.8431, allocations: 384.1 kB / 0.7537 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004745/0.8436, allocations: 235 kB / 0.754 GB, free: 164 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005815/0.8442, allocations: 334.2 kB / 0.7543 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.8452, allocations: 0.5665 MB / 0.7548 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.8452, allocations: 0.8438 kB / 0.7548 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00181/0.847, allocations: 0.7832 MB / 0.7556 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.8471, allocations: 7.156 kB / 0.7556 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.8471, allocations: 1.906 kB / 0.7556 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006044/0.8477, allocations: 82.86 kB / 0.7557 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.8484, allocations: 152.2 kB / 0.7558 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/0.8502, allocations: 1.634 MB / 0.7574 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00058/0.8508, allocations: 79.59 kB / 0.7575 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.117e-05/0.8509, allocations: 35 kB / 0.7575 GB, free: 161.7 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.0003307/0.8512, allocations: 252.5 kB / 0.7578 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.8514, allocations: 79.25 kB / 0.7579 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002413/0.8538, allocations: 1.006 MB / 0.7588 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.8538, allocations: 8.781 kB / 0.7588 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.8538, allocations: 1.75 kB / 0.7588 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.8538, allocations: 7.578 kB / 0.7589 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003035/0.8569, allocations: 1.868 MB / 0.7607 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.8569, allocations: 0.9688 kB / 0.7607 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005526/0.8574, allocations: 149.4 kB / 0.7608 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004058/0.8579, allocations: 76.72 kB / 0.7609 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.322e-05/0.8579, allocations: 28.27 kB / 0.7609 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.8593, allocations: 1.652 MB / 0.7625 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.8594, allocations: 1.5 kB / 0.7625 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.861, allocations: 0.9164 MB / 0.7634 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002567/0.8612, allocations: 261 kB / 0.7637 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.813e-05/0.8613, allocations: 25.55 kB / 0.7637 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005128/0.8619, allocations: 56.16 kB / 0.7638 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.862, allocations: 61.48 kB / 0.7638 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.902e-05/0.8621, allocations: 31.72 kB / 0.7638 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004488/0.8625, allocations: 425.8 kB / 0.7642 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8625, allocations: 0 / 0.7642 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008221/0.8633, allocations: 287.5 kB / 0.7645 GB, free: 157.3 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.001732/0.8651, allocations: 0.5943 MB / 0.7651 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001889/0.867, allocations: 0.9576 MB / 0.766 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.867, allocations: 0 / 0.766 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006944/0.8677, allocations: 496.3 kB / 0.7665 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009982/0.8687, allocations: 304 kB / 0.7668 GB, free: 156 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.8716, allocations: 1.72 MB / 0.7685 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.872, allocations: 0.9954 MB / 0.7695 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.8722, allocations: 115.4 kB / 0.7696 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of SimCode: time 2.41e-07/0.8722, allocations: 0 / 0.7696 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.01651/0.8887, allocations: 17.08 MB / 0.7862 GB, free: 136.1 MB / 0.5762 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