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.001117/0.001117, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001153/0.001154, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.362/1.362, allocations: 222.9 MB / 240.6 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9893/0.9893, allocations: 135.1 MB / 425.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.88 kB / 0.5055 GB, free: 5.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1737, allocations: 80.92 MB / 0.5845 GB, free: 4.902 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.006612/0.1803, allocations: 4.905 MB / 0.5893 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.442/0.6224, allocations: 148.7 MB / 0.7345 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009948/0.6234, allocations: 22.09 kB / 0.7345 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006391/0.6241, allocations: 151.3 kB / 0.7347 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001986/0.6261, allocations: 0.5079 MB / 0.7352 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002387/0.6285, allocations: 0.7958 MB / 0.7359 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002195/0.6307, allocations: 1.583 MB / 0.7375 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001483/0.6322, allocations: 1.057 MB / 0.7385 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001129/0.6334, allocations: 0.6847 MB / 0.7392 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000849/0.6342, allocations: 0.7368 MB / 0.7399 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002365/0.6345, allocations: 175.9 kB / 0.7401 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.6356, allocations: 0.5103 MB / 0.7406 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003984/0.636, allocations: 416.9 kB / 0.741 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0007269/0.6367, allocations: 0.7827 MB / 0.7417 GB, free: 9.141 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002003/0.6388, allocations: 1.641 MB / 0.7433 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.6388, allocations: 0 / 0.7433 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.6388, allocations: 0 / 0.7433 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.489e-05/0.6388, allocations: 0 / 0.7433 GB, free: 8.543 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.003566/0.6424, allocations: 1.791 MB / 0.7451 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.6424, allocations: 11.28 kB / 0.7451 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/0.6435, allocations: 228.2 kB / 0.7453 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.6448, allocations: 0.8922 MB / 0.7462 GB, free: 6.32 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.53e-05/0.6449, allocations: 102.5 kB / 0.7463 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/0.6451, allocations: 142.1 kB / 0.7464 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002437/0.6475, allocations: 1.427 MB / 0.7478 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.004e-05/0.6476, allocations: 1.938 kB / 0.7478 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.6477, allocations: 56.62 kB / 0.7479 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.423e-05/0.6478, allocations: 34.72 kB / 0.7479 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002409/0.6502, allocations: 1.515 MB / 0.7494 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006322/0.6565, allocations: 3.778 MB / 0.7531 GB, free: 360 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.6582, allocations: 0.9609 MB / 0.754 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006293/0.6588, allocations: 400.5 kB / 0.7544 GB, free: 15 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.6589, allocations: 45 kB / 0.7544 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.66, allocations: 0.5787 MB / 0.755 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=104): time 3.096e-06/0.66, allocations: 4 kB / 0.755 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of matching and sorting (n=104): time 0.003688/0.6637, allocations: 1.473 MB / 0.7564 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.6638, allocations: 196.9 kB / 0.7566 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009849/0.6648, allocations: 0.7629 MB / 0.7574 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.099e-05/0.6649, allocations: 45.69 kB / 0.7574 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004338/0.6654, allocations: 0.5517 MB / 0.758 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002763/0.6657, allocations: 343 kB / 0.7583 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003212/0.666, allocations: 222.7 kB / 0.7585 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.6661, allocations: 349.9 kB / 0.7588 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006537/0.6668, allocations: 362.4 kB / 0.7592 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007615/0.6676, allocations: 466.2 kB / 0.7596 GB, free: 9.504 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.669, allocations: 0.8351 MB / 0.7604 GB, free: 8.66 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.669, allocations: 0 / 0.7604 GB, free: 8.66 MB / 0.5762 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002465/0.6715, allocations: 1.11 MB / 0.7615 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.6715, allocations: 8 kB / 0.7615 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.6716, allocations: 0 / 0.7615 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006189/0.6722, allocations: 84.78 kB / 0.7616 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000976/0.6732, allocations: 223.7 kB / 0.7618 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002124/0.6753, allocations: 1.643 MB / 0.7634 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.6763, allocations: 119 kB / 0.7635 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-05/0.6765, allocations: 59.52 kB / 0.7636 GB, free: 5.266 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.0006107/0.6771, allocations: 309.6 kB / 0.7639 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002198/0.6773, allocations: 98.78 kB / 0.764 GB, free: 4.855 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003051/0.6804, allocations: 1.386 MB / 0.7653 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.6804, allocations: 12 kB / 0.7654 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.6804, allocations: 3.938 kB / 0.7654 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.6804, allocations: 8.781 kB / 0.7654 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004216/0.6846, allocations: 2.564 MB / 0.7679 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.6847, allocations: 0 / 0.7679 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007932/0.6855, allocations: 187.7 kB / 0.768 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004495/0.6859, allocations: 76.78 kB / 0.7681 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.482e-05/0.686, allocations: 28.86 kB / 0.7681 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001918/0.6879, allocations: 1.682 MB / 0.7698 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.6879, allocations: 0 / 0.7698 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.6903, allocations: 1.171 MB / 0.7709 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.6908, allocations: 323.4 kB / 0.7712 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002238/0.6911, allocations: 31.84 kB / 0.7713 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007193/0.6918, allocations: 52.92 kB / 0.7713 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.692, allocations: 76.89 kB / 0.7714 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.927e-05/0.6921, allocations: 39.98 kB / 0.7714 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007887/0.6929, allocations: 0.5732 MB / 0.772 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.01e-07/0.6929, allocations: 0 / 0.772 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001139/0.694, allocations: 406.7 kB / 0.7724 GB, free: 12 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.001445/0.6955, allocations: 0.597 MB / 0.773 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003265/0.6987, allocations: 1.29 MB / 0.7742 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.6988, allocations: 0 / 0.7742 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.6999, allocations: 0.6173 MB / 0.7748 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.7014, allocations: 310.5 kB / 0.7751 GB, free: 9.406 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005319/0.7068, allocations: 3.035 MB / 0.7781 GB, free: 6.34 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008021/0.7076, allocations: 1.162 MB / 0.7792 GB, free: 5.145 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/0.7081, allocations: 147.3 kB / 0.7794 GB, free: 5.004 MB / 0.5919 GB Notification: Performance of SimCode: time 7.81e-07/0.7082, allocations: 0 / 0.7794 GB, free: 5.004 MB / 0.5919 GB Notification: Performance of Templates: time 0.03201/0.7402, allocations: 23.75 MB / 0.8026 GB, free: 13.3 MB / 0.6231 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