Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009018/0.0009017, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009593/0.0009593, allocations: 181.8 kB / 16.92 MB, free: 6.918 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.254/1.254, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8638/0.8638, allocations: 135.3 MB / 427.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002943, allocations: 11.94 kB / 0.5082 GB, free: 4.754 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1338, allocations: 82.31 MB / 0.5886 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.00545/0.1393, allocations: 4.471 MB / 0.593 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.3938/0.5331, allocations: 147 MB / 0.7365 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008336/0.534, allocations: 17 kB / 0.7365 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006639/0.5347, allocations: 155.2 kB / 0.7367 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001803/0.5365, allocations: 0.49 MB / 0.7372 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002145/0.5387, allocations: 0.7787 MB / 0.7379 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001829/0.5405, allocations: 1.47 MB / 0.7394 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001538/0.542, allocations: 0.9952 MB / 0.7403 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008513/0.5429, allocations: 469.9 kB / 0.7408 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007984/0.5437, allocations: 0.4921 MB / 0.7413 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.5438, allocations: 29.81 kB / 0.7413 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008497/0.5447, allocations: 373.4 kB / 0.7416 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.5449, allocations: 239.6 kB / 0.7419 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005172/0.5455, allocations: 0.593 MB / 0.7424 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.5468, allocations: 1.583 MB / 0.744 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.5468, allocations: 1.375 kB / 0.744 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.493e-06/0.5468, allocations: 0 / 0.744 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.501e-05/0.5469, allocations: 0 / 0.744 GB, free: 9.859 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.002381/0.5493, allocations: 1.459 MB / 0.7454 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.5493, allocations: 9.188 kB / 0.7454 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009372/0.5502, allocations: 248.7 kB / 0.7457 GB, free: 8.582 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.5514, allocations: 0.8849 MB / 0.7465 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.345e-05/0.5514, allocations: 103.3 kB / 0.7466 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/0.5516, allocations: 140.1 kB / 0.7468 GB, free: 7.762 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0022/0.5538, allocations: 1.439 MB / 0.7482 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.5538, allocations: 0 / 0.7482 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.554, allocations: 57.12 kB / 0.7482 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.554, allocations: 36.66 kB / 0.7483 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002106/0.5561, allocations: 1.524 MB / 0.7497 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005239/0.5614, allocations: 3.798 MB / 0.7535 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.5629, allocations: 0.9688 MB / 0.7544 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006384/0.5636, allocations: 407.6 kB / 0.7548 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.32e-05/0.5637, allocations: 49.06 kB / 0.7548 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009551/0.5646, allocations: 0.5782 MB / 0.7554 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=104): time 2.494e-06/0.5646, allocations: 0 / 0.7554 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of matching and sorting (n=104): time 0.003472/0.5681, allocations: 1.497 MB / 0.7569 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.765e-05/0.5682, allocations: 192.9 kB / 0.757 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008716/0.5691, allocations: 0.759 MB / 0.7578 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.896e-05/0.5692, allocations: 45.7 kB / 0.7578 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003801/0.5696, allocations: 0.5621 MB / 0.7584 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002516/0.5698, allocations: 339 kB / 0.7587 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.57, allocations: 89.67 kB / 0.7588 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5701, allocations: 349.9 kB / 0.7591 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006446/0.5708, allocations: 366.4 kB / 0.7595 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007373/0.5715, allocations: 482.1 kB / 0.7599 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.5729, allocations: 0.8352 MB / 0.7607 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.5729, allocations: 0 / 0.7607 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002224/0.5752, allocations: 1.122 MB / 0.7618 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.5752, allocations: 4 kB / 0.7618 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.5752, allocations: 4 kB / 0.7618 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005769/0.5758, allocations: 88.77 kB / 0.7619 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009684/0.5768, allocations: 223.7 kB / 0.7621 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/0.5787, allocations: 1.54 MB / 0.7637 GB, free: 8.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008318/0.5796, allocations: 121.8 kB / 0.7638 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.221e-05/0.5796, allocations: 51.95 kB / 0.7638 GB, free: 8.27 MB / 0.5762 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 (125): * Single equations (assignments): 124 * 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.0004888/0.5801, allocations: 305.6 kB / 0.7641 GB, free: 7.961 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.5803, allocations: 106.7 kB / 0.7642 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002954/0.5833, allocations: 1.399 MB / 0.7656 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.5833, allocations: 8 kB / 0.7656 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.5833, allocations: 4 kB / 0.7656 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.5833, allocations: 7.969 kB / 0.7656 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004231/0.5875, allocations: 2.572 MB / 0.7681 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.5876, allocations: 4 kB / 0.7681 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007984/0.5884, allocations: 195.7 kB / 0.7683 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005296/0.5889, allocations: 88.77 kB / 0.7684 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.109e-05/0.589, allocations: 27.98 kB / 0.7684 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/0.5908, allocations: 1.556 MB / 0.7699 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5909, allocations: 12.03 kB / 0.7699 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.5932, allocations: 1.168 MB / 0.7711 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005285/0.5937, allocations: 363 kB / 0.7714 GB, free: 224 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.5939, allocations: 24.06 kB / 0.7714 GB, free: 200 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007418/0.5946, allocations: 74.19 kB / 0.7715 GB, free: 128 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.5948, allocations: 76.88 kB / 0.7716 GB, free: 52 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.351e-05/0.5949, allocations: 39.98 kB / 0.7716 GB, free: 12 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000761/0.5956, allocations: 0.5694 MB / 0.7722 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5956, allocations: 0 / 0.7722 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001059/0.5967, allocations: 402.7 kB / 0.7726 GB, free: 15.05 MB / 0.5919 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 (115): * Single equations (assignments): 112 * 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.001336/0.598, allocations: 0.6047 MB / 0.7732 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001938/0.6, allocations: 1.048 MB / 0.7742 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.6, allocations: 0 / 0.7742 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009846/0.601, allocations: 0.6212 MB / 0.7748 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.6023, allocations: 274 kB / 0.7751 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004879/0.6072, allocations: 3.082 MB / 0.7781 GB, free: 9.582 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006658/0.6079, allocations: 1.17 MB / 0.7792 GB, free: 8.383 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004111/0.6083, allocations: 151.3 kB / 0.7793 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of SimCode: time 6.91e-07/0.6083, allocations: 0 / 0.7793 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of Templates: time 0.02897/0.6373, allocations: 23.57 MB / 0.8024 GB, free: 0.7109 MB / 0.6075 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleFunctions.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.Examples.IncidenceAngleCalcHelperMain.o] Error 1