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.001269/0.001269, allocations: 104.7 kB / 15.99 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.001161/0.001161, allocations: 199 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.301/1.301, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7937/0.7937, allocations: 135.2 MB / 425.9 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 67.89 kB / 0.5055 GB, free: 8.734 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3039, allocations: 80.92 MB / 0.5846 GB, free: 25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.00446/0.3084, allocations: 4.186 MB / 0.5887 GB, free: 21.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1592/0.4675, allocations: 148.4 MB / 0.7336 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007705/0.4684, allocations: 19.88 kB / 0.7336 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000512/0.4689, allocations: 134.9 kB / 0.7337 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001443/0.4704, allocations: 444.6 kB / 0.7342 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001762/0.4721, allocations: 0.7095 MB / 0.7349 GB, free: 360 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001166/0.4733, allocations: 1.195 MB / 0.736 GB, free: 15.15 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000848/0.4742, allocations: 0.6294 MB / 0.7366 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005257/0.4747, allocations: 450.3 kB / 0.7371 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004966/0.4752, allocations: 461.9 kB / 0.7375 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.4753, allocations: 104 kB / 0.7376 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007633/0.4761, allocations: 451.6 kB / 0.738 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002552/0.4764, allocations: 275.1 kB / 0.7383 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004375/0.4768, allocations: 0.5012 MB / 0.7388 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.478, allocations: 1.123 MB / 0.7399 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4781, allocations: 0 / 0.7399 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4781, allocations: 0 / 0.7399 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.288e-05/0.4781, allocations: 4 kB / 0.7399 GB, free: 11.16 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.002172/0.4803, allocations: 1.342 MB / 0.7412 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.4803, allocations: 13.11 kB / 0.7412 GB, free: 9.754 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008669/0.4812, allocations: 179.5 kB / 0.7414 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000954/0.4821, allocations: 0.7188 MB / 0.7421 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.573e-05/0.4822, allocations: 58 kB / 0.7421 GB, free: 8.758 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.4823, allocations: 76 kB / 0.7422 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.4838, allocations: 0.8871 MB / 0.7431 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.4839, allocations: 7.938 kB / 0.7431 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.603e-05/0.4839, allocations: 36 kB / 0.7431 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.484, allocations: 20 kB / 0.7431 GB, free: 7.695 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.4858, allocations: 1.097 MB / 0.7442 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003823/0.4896, allocations: 2.503 MB / 0.7467 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.4909, allocations: 0.7302 MB / 0.7474 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005029/0.4914, allocations: 286.7 kB / 0.7476 GB, free: 3 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.395e-05/0.4915, allocations: 32.59 kB / 0.7477 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008627/0.4924, allocations: 451.2 kB / 0.7481 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=76): time 2.064e-06/0.4924, allocations: 3.938 kB / 0.7481 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of matching and sorting (n=76): time 0.002997/0.4954, allocations: 1.116 MB / 0.7492 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.4955, allocations: 192.5 kB / 0.7494 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007231/0.4963, allocations: 0.594 MB / 0.75 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.4963, allocations: 41.7 kB / 0.75 GB, free: 488 kB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/0.4966, allocations: 384.2 kB / 0.7504 GB, free: 96 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.2385/0.7352, allocations: 245.1 kB / 0.7506 GB, free: 165 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003513/0.7356, allocations: 162.6 kB / 0.7508 GB, free: 165 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.7357, allocations: 382.4 kB / 0.7511 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.7363, allocations: 249.8 kB / 0.7514 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005994/0.7369, allocations: 343 kB / 0.7517 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.738, allocations: 0.5841 MB / 0.7523 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.738, allocations: 0.6562 kB / 0.7523 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001931/0.7399, allocations: 0.8169 MB / 0.7531 GB, free: 164 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.7399, allocations: 5.719 kB / 0.7531 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.74, allocations: 1.406 kB / 0.7531 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006274/0.7406, allocations: 86.42 kB / 0.7531 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.7413, allocations: 153.1 kB / 0.7533 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.743, allocations: 1.633 MB / 0.7549 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006582/0.7437, allocations: 79.7 kB / 0.755 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-05/0.7437, allocations: 41.73 kB / 0.755 GB, free: 162.5 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.0003754/0.7441, allocations: 257.1 kB / 0.7552 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.7443, allocations: 75.88 kB / 0.7553 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002394/0.7467, allocations: 1.034 MB / 0.7563 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.7467, allocations: 10.28 kB / 0.7563 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.7467, allocations: 0 / 0.7563 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.7467, allocations: 5.359 kB / 0.7563 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003067/0.7498, allocations: 1.878 MB / 0.7582 GB, free: 161 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.7498, allocations: 1.562 kB / 0.7582 GB, free: 161 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006292/0.7505, allocations: 151 kB / 0.7583 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004605/0.7509, allocations: 73.58 kB / 0.7584 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.751, allocations: 23.28 kB / 0.7584 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.7526, allocations: 1.664 MB / 0.76 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.7526, allocations: 1.906 kB / 0.76 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.7544, allocations: 0.9257 MB / 0.7609 GB, free: 158.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002426/0.7546, allocations: 257.7 kB / 0.7612 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.7547, allocations: 20.72 kB / 0.7612 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005395/0.7553, allocations: 51.95 kB / 0.7613 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.7554, allocations: 67.03 kB / 0.7613 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.763e-05/0.7555, allocations: 27.61 kB / 0.7613 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004455/0.7559, allocations: 447.7 kB / 0.7618 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7559, allocations: 0 / 0.7618 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007768/0.7567, allocations: 300.2 kB / 0.7621 GB, free: 158.3 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.00171/0.7584, allocations: 0.607 MB / 0.7627 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001984/0.7604, allocations: 0.9772 MB / 0.7636 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.7605, allocations: 1.312 kB / 0.7636 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007356/0.7612, allocations: 496.8 kB / 0.7641 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.7623, allocations: 290.7 kB / 0.7644 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.7653, allocations: 2.125 MB / 0.7664 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.7657, allocations: 1.008 MB / 0.7674 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002447/0.7659, allocations: 111.4 kB / 0.7675 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of SimCode: time 3.51e-07/0.7659, allocations: 0 / 0.7675 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.01472/0.7806, allocations: 17.44 MB / 0.7846 GB, free: 137.4 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++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