Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001385/0.001385, allocations: 104.2 kB / 15.98 MB, free: 6.348 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.001548/0.001548, allocations: 195.6 kB / 16.91 MB, free: 6.188 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.306/1.306, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7692/0.7692, allocations: 132.2 MB / 422.9 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 63.91 kB / 0.5019 GB, free: 12.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3472, allocations: 80.18 MB / 0.5802 GB, free: 27.34 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.005289/0.3525, allocations: 4.197 MB / 0.5843 GB, free: 24.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1604/0.5129, allocations: 148.4 MB / 0.7293 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009736/0.5139, allocations: 15.88 kB / 0.7293 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005684/0.5145, allocations: 131 kB / 0.7294 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001688/0.5162, allocations: 437.4 kB / 0.7298 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.5182, allocations: 0.7063 MB / 0.7305 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00138/0.5196, allocations: 1.203 MB / 0.7317 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009285/0.5206, allocations: 0.6294 MB / 0.7323 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006756/0.5212, allocations: 442.4 kB / 0.7327 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005866/0.5218, allocations: 469.8 kB / 0.7332 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.522, allocations: 104 kB / 0.7333 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009888/0.523, allocations: 443.7 kB / 0.7337 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.5233, allocations: 283 kB / 0.734 GB, free: 484 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005125/0.5238, allocations: 0.5013 MB / 0.7344 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001419/0.5252, allocations: 1.123 MB / 0.7355 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.5252, allocations: 0 / 0.7355 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.176e-06/0.5252, allocations: 7.938 kB / 0.7355 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.132e-05/0.5253, allocations: 0 / 0.7355 GB, free: 14.84 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.002332/0.5276, allocations: 1.334 MB / 0.7368 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.5277, allocations: 12.03 kB / 0.7369 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009611/0.5286, allocations: 187.4 kB / 0.737 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.5297, allocations: 0.7033 MB / 0.7377 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.5298, allocations: 62 kB / 0.7378 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.5299, allocations: 76 kB / 0.7379 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.5315, allocations: 0.891 MB / 0.7387 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.5315, allocations: 0 / 0.7387 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-05/0.5316, allocations: 39.98 kB / 0.7388 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.5317, allocations: 20 kB / 0.7388 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001929/0.5336, allocations: 1.097 MB / 0.7399 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004623/0.5382, allocations: 2.502 MB / 0.7423 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.5396, allocations: 0.7297 MB / 0.743 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004764/0.5401, allocations: 286.7 kB / 0.7433 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.939e-05/0.5401, allocations: 36.59 kB / 0.7433 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008638/0.541, allocations: 451.2 kB / 0.7437 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=76): time 2.285e-06/0.541, allocations: 0 / 0.7437 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of matching and sorting (n=76): time 0.003094/0.5441, allocations: 1.12 MB / 0.7448 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.5443, allocations: 188.6 kB / 0.745 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007556/0.545, allocations: 0.6017 MB / 0.7456 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.476e-05/0.5451, allocations: 37.7 kB / 0.7456 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/0.5454, allocations: 384.3 kB / 0.746 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.5456, allocations: 252.3 kB / 0.7463 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.5459, allocations: 162.5 kB / 0.7464 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000201/0.5461, allocations: 382.7 kB / 0.7468 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004788/0.5466, allocations: 249.8 kB / 0.747 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005857/0.5472, allocations: 347.1 kB / 0.7473 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.5482, allocations: 0.5799 MB / 0.7479 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5482, allocations: 0 / 0.7479 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001859/0.5501, allocations: 0.8176 MB / 0.7487 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.5501, allocations: 12 kB / 0.7487 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.5501, allocations: 0 / 0.7487 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000591/0.5507, allocations: 84.77 kB / 0.7488 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006492/0.5514, allocations: 151.8 kB / 0.7489 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3265/0.8779, allocations: 1.628 MB / 0.7505 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000853/0.8788, allocations: 83.16 kB / 0.7506 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.408e-05/0.8789, allocations: 34.95 kB / 0.7506 GB, free: 165.4 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 (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.0004539/0.8793, allocations: 259.4 kB / 0.7509 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.8795, allocations: 79.25 kB / 0.751 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002476/0.882, allocations: 1.028 MB / 0.752 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.882, allocations: 12.62 kB / 0.752 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.882, allocations: 0 / 0.752 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.8821, allocations: 6.562 kB / 0.752 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003273/0.8853, allocations: 1.887 MB / 0.7538 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.8854, allocations: 0.625 kB / 0.7538 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006113/0.886, allocations: 144.1 kB / 0.754 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004576/0.8864, allocations: 73 kB / 0.754 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.976e-05/0.8865, allocations: 22.05 kB / 0.7541 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001621/0.8881, allocations: 1.657 MB / 0.7557 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.8882, allocations: 5.625 kB / 0.7557 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.8902, allocations: 0.9278 MB / 0.7566 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003373/0.8905, allocations: 269.8 kB / 0.7569 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.8907, allocations: 17.94 kB / 0.7569 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005782/0.8912, allocations: 54.88 kB / 0.7569 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.8914, allocations: 61.11 kB / 0.757 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-05/0.8915, allocations: 32.61 kB / 0.757 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006546/0.8921, allocations: 439 kB / 0.7574 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.91e-07/0.8921, allocations: 0 / 0.7574 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001089/0.8932, allocations: 297.9 kB / 0.7577 GB, free: 161.8 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.001375/0.8946, allocations: 0.5943 MB / 0.7583 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002364/0.897, allocations: 0.9861 MB / 0.7593 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.897, allocations: 4.891 kB / 0.7593 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007831/0.8978, allocations: 0.4891 MB / 0.7597 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.899, allocations: 278.7 kB / 0.76 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003517/0.9025, allocations: 2.123 MB / 0.7621 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/0.9029, allocations: 1.011 MB / 0.7631 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003319/0.9033, allocations: 115.4 kB / 0.7632 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of SimCode: time 5.01e-07/0.9033, allocations: 6.375 kB / 0.7632 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.01894/0.9222, allocations: 17.43 MB / 0.7802 GB, free: 143.9 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o] Error 1