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.001499/0.001499, allocations: 105.2 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.001175/0.001174, allocations: 191.5 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.36/1.36, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8381/0.8381, allocations: 135.2 MB / 426.2 MB, free: 4.137 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.89 kB / 0.506 GB, free: 8.336 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3063, allocations: 80.92 MB / 0.5851 GB, free: 25.2 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.004715/0.3111, allocations: 4.165 MB / 0.5891 GB, free: 21.93 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1661/0.4772, allocations: 150.6 MB / 0.7362 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008095/0.4781, allocations: 23.88 kB / 0.7363 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006965/0.4788, allocations: 166.5 kB / 0.7364 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.4808, allocations: 497.1 kB / 0.7369 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002054/0.4828, allocations: 0.7886 MB / 0.7377 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001615/0.4845, allocations: 1.199 MB / 0.7388 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001097/0.4856, allocations: 0.6216 MB / 0.7394 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007398/0.4863, allocations: 446.3 kB / 0.7399 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007222/0.4871, allocations: 461.9 kB / 0.7403 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002282/0.4873, allocations: 104 kB / 0.7404 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009821/0.4883, allocations: 447.6 kB / 0.7408 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003376/0.4886, allocations: 283.1 kB / 0.7411 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006411/0.4893, allocations: 0.4973 MB / 0.7416 GB, free: 9.695 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.4914, allocations: 1.46 MB / 0.743 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.4914, allocations: 0 / 0.743 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4914, allocations: 0 / 0.743 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.775e-05/0.4914, allocations: 0 / 0.743 GB, free: 8.23 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.002749/0.4942, allocations: 1.342 MB / 0.7443 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.4942, allocations: 13.11 kB / 0.7443 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.4953, allocations: 187.5 kB / 0.7445 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.4964, allocations: 0.711 MB / 0.7452 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.708e-05/0.4965, allocations: 62 kB / 0.7453 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.4966, allocations: 76 kB / 0.7453 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.4983, allocations: 0.8833 MB / 0.7462 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.4983, allocations: 4 kB / 0.7462 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.814e-05/0.4984, allocations: 36 kB / 0.7462 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.4984, allocations: 24 kB / 0.7463 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.5004, allocations: 1.093 MB / 0.7473 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00427/0.5047, allocations: 2.518 MB / 0.7498 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.5061, allocations: 0.7258 MB / 0.7505 GB, free: 360 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005471/0.5067, allocations: 294.6 kB / 0.7508 GB, free: 64 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.838e-05/0.5068, allocations: 32.59 kB / 0.7508 GB, free: 32 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.205/0.7117, allocations: 439.4 kB / 0.7512 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=76): time 2.575e-06/0.7118, allocations: 0.625 kB / 0.7512 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=76): time 0.003006/0.7148, allocations: 1.112 MB / 0.7523 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.7148, allocations: 190 kB / 0.7525 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006649/0.7155, allocations: 0.6002 MB / 0.7531 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.7156, allocations: 40.2 kB / 0.7531 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.7158, allocations: 376.7 kB / 0.7535 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.716, allocations: 257.6 kB / 0.7537 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.7162, allocations: 158.4 kB / 0.7539 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.154e-05/0.7163, allocations: 386.5 kB / 0.7543 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004902/0.7168, allocations: 250.2 kB / 0.7545 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005712/0.7174, allocations: 343 kB / 0.7548 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.7184, allocations: 0.5878 MB / 0.7554 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.7184, allocations: 1.281 kB / 0.7554 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001924/0.7204, allocations: 0.8179 MB / 0.7562 GB, free: 163 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.7204, allocations: 5.938 kB / 0.7562 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.7204, allocations: 1.062 kB / 0.7562 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006271/0.721, allocations: 81.67 kB / 0.7563 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.7221, allocations: 164.2 kB / 0.7564 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002452/0.7245, allocations: 1.627 MB / 0.758 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009166/0.7255, allocations: 83.02 kB / 0.7581 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.7256, allocations: 33.22 kB / 0.7581 GB, free: 161.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.0005307/0.7261, allocations: 260.5 kB / 0.7584 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002549/0.7264, allocations: 76.75 kB / 0.7585 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003794/0.7302, allocations: 1.034 MB / 0.7595 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.7302, allocations: 8.656 kB / 0.7595 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.7303, allocations: 4.438 kB / 0.7595 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.7303, allocations: 4.281 kB / 0.7595 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004468/0.7348, allocations: 1.879 MB / 0.7613 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.7348, allocations: 2.844 kB / 0.7613 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009165/0.7357, allocations: 144.5 kB / 0.7615 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005967/0.7363, allocations: 74.38 kB / 0.7615 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.898e-05/0.7364, allocations: 23.2 kB / 0.7615 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002203/0.7386, allocations: 1.659 MB / 0.7632 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.7386, allocations: 0 / 0.7632 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002647/0.7413, allocations: 0.935 MB / 0.7641 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003826/0.7417, allocations: 257.7 kB / 0.7643 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001658/0.7419, allocations: 16.5 kB / 0.7643 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009167/0.7428, allocations: 55.31 kB / 0.7644 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/0.743, allocations: 69.52 kB / 0.7645 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.404e-05/0.7431, allocations: 33.2 kB / 0.7645 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007528/0.7439, allocations: 443.2 kB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.01e-07/0.7439, allocations: 0 / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001206/0.7451, allocations: 287.4 kB / 0.7652 GB, free: 156.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.002506/0.7476, allocations: 0.6032 MB / 0.7658 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003102/0.7507, allocations: 0.9897 MB / 0.7667 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.7508, allocations: 0 / 0.7667 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.7519, allocations: 496.3 kB / 0.7672 GB, free: 155.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001693/0.7536, allocations: 294.7 kB / 0.7675 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004905/0.7585, allocations: 1.728 MB / 0.7692 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/0.7591, allocations: 1.011 MB / 0.7702 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004108/0.7595, allocations: 115.3 kB / 0.7703 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of SimCode: time 6.41e-07/0.7595, allocations: 4 kB / 0.7703 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.02634/0.7859, allocations: 17.44 MB / 0.7873 GB, free: 134.9 MB / 0.5762 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++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.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