Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007706/0.0007706, allocations: 98.88 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.0008415/0.0008415, allocations: 182.2 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.274/1.274, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9117/0.9117, allocations: 135.3 MB / 427.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.0003055, allocations: 8.812 kB / 0.5082 GB, free: 4.754 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1413, allocations: 82.3 MB / 0.5886 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.004555/0.1459, allocations: 3.761 MB / 0.5923 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.3938/0.5398, allocations: 146.7 MB / 0.7356 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007418/0.5406, allocations: 14.5 kB / 0.7356 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006071/0.5412, allocations: 140.4 kB / 0.7357 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001608/0.5428, allocations: 417.7 kB / 0.7361 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.5449, allocations: 0.6869 MB / 0.7368 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002035/0.5469, allocations: 1.125 MB / 0.7379 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001099/0.548, allocations: 0.5903 MB / 0.7385 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006533/0.5487, allocations: 318.5 kB / 0.7388 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005123/0.5492, allocations: 344.8 kB / 0.7391 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.044e-05/0.5493, allocations: 21.53 kB / 0.7391 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009768/0.5503, allocations: 368.4 kB / 0.7395 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002281/0.5505, allocations: 175.8 kB / 0.7396 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003967/0.5509, allocations: 420.6 kB / 0.74 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.5521, allocations: 1.077 MB / 0.7411 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.5521, allocations: 0 / 0.7411 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.304e-06/0.5521, allocations: 0 / 0.7411 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.362e-05/0.5521, allocations: 1 kB / 0.7411 GB, free: 11.96 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.001871/0.554, allocations: 1.141 MB / 0.7422 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.554, allocations: 10.12 kB / 0.7422 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008419/0.5549, allocations: 184.5 kB / 0.7424 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009197/0.5558, allocations: 0.7177 MB / 0.7431 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.609e-05/0.5559, allocations: 58.88 kB / 0.7432 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.556, allocations: 79.78 kB / 0.7432 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.5575, allocations: 0.8957 MB / 0.7441 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.5575, allocations: 0 / 0.7441 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.668e-05/0.5576, allocations: 36.25 kB / 0.7441 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.5576, allocations: 20.62 kB / 0.7442 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.5593, allocations: 1.104 MB / 0.7452 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00359/0.5629, allocations: 2.524 MB / 0.7477 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.5641, allocations: 0.7462 MB / 0.7484 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004572/0.5645, allocations: 284.3 kB / 0.7487 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.141e-05/0.5646, allocations: 36.03 kB / 0.7487 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007395/0.5653, allocations: 450.2 kB / 0.7492 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=76): time 3.386e-06/0.5654, allocations: 96 / 0.7492 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of matching and sorting (n=76): time 0.002755/0.5681, allocations: 1.133 MB / 0.7503 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.127e-05/0.5682, allocations: 191.9 kB / 0.7505 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006782/0.5689, allocations: 0.5952 MB / 0.751 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.062e-05/0.569, allocations: 43.45 kB / 0.7511 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.5693, allocations: 377.4 kB / 0.7514 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.5694, allocations: 258.2 kB / 0.7517 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.874e-05/0.5695, allocations: 65.09 kB / 0.7518 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.5697, allocations: 387.4 kB / 0.7521 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004698/0.5702, allocations: 259.5 kB / 0.7524 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005425/0.5707, allocations: 343.1 kB / 0.7527 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.5717, allocations: 0.6033 MB / 0.7533 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.5718, allocations: 0 / 0.7533 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001726/0.5735, allocations: 0.8177 MB / 0.7541 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.5735, allocations: 8 kB / 0.7541 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.5735, allocations: 3 kB / 0.7541 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000574/0.5741, allocations: 84.78 kB / 0.7542 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006257/0.5748, allocations: 163.8 kB / 0.7543 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002003/0.5768, allocations: 1.516 MB / 0.7558 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006565/0.5774, allocations: 89.59 kB / 0.7559 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.327e-05/0.5775, allocations: 35.98 kB / 0.7559 GB, free: 0.5938 MB / 0.5606 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 (89): * Single equations (assignments): 88 * 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.0004087/0.5779, allocations: 260.5 kB / 0.7562 GB, free: 340 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.578, allocations: 79.06 kB / 0.7563 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002201/0.5802, allocations: 1.034 MB / 0.7573 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.5803, allocations: 8 kB / 0.7573 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.5803, allocations: 96 / 0.7573 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.5803, allocations: 9.781 kB / 0.7573 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.5832, allocations: 1.896 MB / 0.7591 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.5832, allocations: 0 / 0.7591 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005571/0.5838, allocations: 155.7 kB / 0.7593 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004915/0.5843, allocations: 88.7 kB / 0.7594 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.896e-05/0.5844, allocations: 23.98 kB / 0.7594 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/0.586, allocations: 1.537 MB / 0.7609 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5861, allocations: 5.094 kB / 0.7609 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.5878, allocations: 0.9375 MB / 0.7618 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003301/0.5881, allocations: 275.7 kB / 0.7621 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.69e-05/0.5882, allocations: 16 kB / 0.7621 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005721/0.5888, allocations: 67.94 kB / 0.7622 GB, free: 9.969 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.5889, allocations: 68.84 kB / 0.7622 GB, free: 9.898 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.4e-05/0.589, allocations: 31.98 kB / 0.7622 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005082/0.5895, allocations: 443 kB / 0.7627 GB, free: 9.441 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.373e-06/0.5895, allocations: 0 / 0.7627 GB, free: 9.441 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008522/0.5904, allocations: 299.2 kB / 0.763 GB, free: 9.148 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.001273/0.5917, allocations: 0.5997 MB / 0.7635 GB, free: 8.758 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001439/0.5931, allocations: 0.7919 MB / 0.7643 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5931, allocations: 0 / 0.7643 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007953/0.5939, allocations: 0.4964 MB / 0.7648 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.5951, allocations: 258.5 kB / 0.765 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003674/0.5988, allocations: 2.184 MB / 0.7672 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.5993, allocations: 1.007 MB / 0.7682 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002722/0.5996, allocations: 107.4 kB / 0.7683 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/0.5996, allocations: 4 kB / 0.7683 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of Templates: time 0.02014/0.6198, allocations: 17.32 MB / 0.7852 GB, free: 2.566 MB / 0.5919 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o] Error 1