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.008702/0.008702, allocations: 101.1 kB / 15.88 MB, free: 6.332 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.001996/0.001996, allocations: 193.2 kB / 16.79 MB, free: 6.258 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.385/1.385, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.001/1.001, allocations: 135.1 MB / 425.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 64.41 kB / 0.5053 GB, free: 5.75 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.184, allocations: 80.93 MB / 0.5843 GB, free: 4.992 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.005759/0.1898, allocations: 4.177 MB / 0.5884 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4935/0.6834, allocations: 148.3 MB / 0.7333 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008442/0.6843, allocations: 19.91 kB / 0.7333 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006235/0.6849, allocations: 135.8 kB / 0.7334 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00151/0.6865, allocations: 411.8 kB / 0.7338 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.6883, allocations: 0.6927 MB / 0.7345 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001268/0.6895, allocations: 1.125 MB / 0.7356 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009198/0.6905, allocations: 0.5975 MB / 0.7362 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000651/0.6911, allocations: 391 kB / 0.7366 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004946/0.6916, allocations: 431.7 kB / 0.737 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.6918, allocations: 52.34 kB / 0.737 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009408/0.6927, allocations: 392.3 kB / 0.7374 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002515/0.693, allocations: 229.1 kB / 0.7376 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004056/0.6934, allocations: 458.1 kB / 0.738 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.6945, allocations: 1.104 MB / 0.7391 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.6945, allocations: 0 / 0.7391 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.91e-07/0.6945, allocations: 3.938 kB / 0.7391 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.239e-05/0.6945, allocations: 0 / 0.7391 GB, free: 11.12 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.002496/0.697, allocations: 1.348 MB / 0.7404 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.6971, allocations: 10.94 kB / 0.7405 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009265/0.698, allocations: 173.3 kB / 0.7406 GB, free: 9.98 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.6991, allocations: 0.7077 MB / 0.7413 GB, free: 9.391 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.308e-05/0.6992, allocations: 71.17 kB / 0.7414 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.6993, allocations: 76.62 kB / 0.7415 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.7009, allocations: 0.8878 MB / 0.7423 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.7009, allocations: 1.375 kB / 0.7423 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.575e-05/0.701, allocations: 40.23 kB / 0.7424 GB, free: 8.723 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.701, allocations: 19.25 kB / 0.7424 GB, free: 8.723 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.7028, allocations: 1.096 MB / 0.7434 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.7067, allocations: 2.494 MB / 0.7459 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.708, allocations: 0.7287 MB / 0.7466 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004961/0.7085, allocations: 286.4 kB / 0.7469 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.076e-05/0.7086, allocations: 39.47 kB / 0.7469 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008485/0.7094, allocations: 449.6 kB / 0.7473 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=76): time 3.256e-06/0.7094, allocations: 0 / 0.7473 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=76): time 0.003085/0.7125, allocations: 1.115 MB / 0.7484 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.7127, allocations: 191.8 kB / 0.7486 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007895/0.7135, allocations: 0.5999 MB / 0.7492 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.506e-05/0.7135, allocations: 41.7 kB / 0.7492 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000309/0.7138, allocations: 376.3 kB / 0.7496 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002114/0.7141, allocations: 252.3 kB / 0.7498 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002559/0.7143, allocations: 158.5 kB / 0.75 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001899/0.7145, allocations: 386.8 kB / 0.7504 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004993/0.715, allocations: 249 kB / 0.7506 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006096/0.7156, allocations: 343.1 kB / 0.7509 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.7168, allocations: 0.5916 MB / 0.7515 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.7168, allocations: 0 / 0.7515 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001935/0.7187, allocations: 0.8175 MB / 0.7523 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.7188, allocations: 8 kB / 0.7523 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.7188, allocations: 0 / 0.7523 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000644/0.7194, allocations: 84.83 kB / 0.7524 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006881/0.7201, allocations: 155.7 kB / 0.7525 GB, free: 0.582 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.7225, allocations: 1.524 MB / 0.754 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007218/0.7232, allocations: 83.23 kB / 0.7541 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.268e-05/0.7233, allocations: 35.97 kB / 0.7541 GB, free: 14.8 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.0004599/0.7238, allocations: 253.8 kB / 0.7544 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.7239, allocations: 79.06 kB / 0.7545 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002357/0.7263, allocations: 1.027 MB / 0.7555 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.7263, allocations: 8 kB / 0.7555 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.7263, allocations: 2.5 kB / 0.7555 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.7264, allocations: 7.969 kB / 0.7555 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003128/0.7295, allocations: 1.869 MB / 0.7573 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.7295, allocations: 4 kB / 0.7573 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005902/0.7301, allocations: 151.8 kB / 0.7574 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005235/0.7306, allocations: 80.78 kB / 0.7575 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.389e-05/0.7307, allocations: 23.92 kB / 0.7575 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001982/0.7327, allocations: 1.548 MB / 0.7591 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7327, allocations: 5.25 kB / 0.7591 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.7347, allocations: 0.9297 MB / 0.76 GB, free: 8.586 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003544/0.7351, allocations: 255.8 kB / 0.7602 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.7352, allocations: 16 kB / 0.7602 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005995/0.7358, allocations: 53.28 kB / 0.7603 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.736, allocations: 68.84 kB / 0.7603 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.969e-05/0.736, allocations: 32.05 kB / 0.7604 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006262/0.7367, allocations: 447 kB / 0.7608 GB, free: 7.723 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.51e-07/0.7367, allocations: 0 / 0.7608 GB, free: 7.723 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009131/0.7376, allocations: 299.2 kB / 0.7611 GB, free: 7.43 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.001371/0.739, allocations: 0.6049 MB / 0.7617 GB, free: 7.039 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001568/0.7406, allocations: 0.7881 MB / 0.7624 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.7406, allocations: 0 / 0.7624 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008428/0.7414, allocations: 492.3 kB / 0.7629 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.7426, allocations: 258.3 kB / 0.7632 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003862/0.7464, allocations: 2.125 MB / 0.7652 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000565/0.747, allocations: 1.007 MB / 0.7662 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003094/0.7473, allocations: 111.3 kB / 0.7663 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of SimCode: time 3.91e-07/0.7473, allocations: 0 / 0.7663 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of Templates: time 0.02293/0.7703, allocations: 17.43 MB / 0.7834 GB, free: 0.8242 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