Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005527/0.005527, 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.001215/0.001215, allocations: 193 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.343/1.343, allocations: 222.9 MB / 240.5 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9344/0.9344, allocations: 135.1 MB / 425.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001207, allocations: 64.47 kB / 0.5053 GB, free: 5.738 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1634, allocations: 80.93 MB / 0.5843 GB, free: 4.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.005636/0.1691, allocations: 4.086 MB / 0.5883 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4567/0.6259, allocations: 148.1 MB / 0.733 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007701/0.6267, allocations: 18.72 kB / 0.733 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000554/0.6273, allocations: 129.9 kB / 0.7331 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001504/0.6288, allocations: 392.6 kB / 0.7335 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.6307, allocations: 0.6899 MB / 0.7342 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001279/0.632, allocations: 1.081 MB / 0.7352 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008899/0.6329, allocations: 0.5923 MB / 0.7358 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006348/0.6335, allocations: 370.2 kB / 0.7362 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005266/0.634, allocations: 419 kB / 0.7366 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.6342, allocations: 51.19 kB / 0.7366 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009483/0.6351, allocations: 392.4 kB / 0.737 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.6354, allocations: 215.8 kB / 0.7372 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004468/0.6358, allocations: 456.4 kB / 0.7376 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.6371, allocations: 1.095 MB / 0.7387 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.6371, allocations: 0 / 0.7387 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6371, allocations: 0 / 0.7387 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.817e-05/0.6371, allocations: 0 / 0.7387 GB, free: 11.47 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.002324/0.6395, allocations: 1.318 MB / 0.74 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.6395, allocations: 6.938 kB / 0.74 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008884/0.6404, allocations: 179.6 kB / 0.7402 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.6414, allocations: 0.7033 MB / 0.7409 GB, free: 9.848 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.6415, allocations: 57.56 kB / 0.7409 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.6416, allocations: 82.62 kB / 0.741 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.6431, allocations: 0.8545 MB / 0.7418 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.6432, allocations: 1.375 kB / 0.7418 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.7e-05/0.6433, allocations: 32.25 kB / 0.7419 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.6433, allocations: 23.88 kB / 0.7419 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.645, allocations: 1.062 MB / 0.7429 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003772/0.6488, allocations: 2.375 MB / 0.7452 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.6501, allocations: 0.8017 MB / 0.746 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004573/0.6506, allocations: 272.9 kB / 0.7463 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-05/0.6507, allocations: 25.89 kB / 0.7463 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008341/0.6515, allocations: 427.7 kB / 0.7467 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=70): time 4.709e-06/0.6515, allocations: 0 / 0.7467 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70): time 0.002916/0.6544, allocations: 1.071 MB / 0.7478 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.6546, allocations: 188.8 kB / 0.7479 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007868/0.6554, allocations: 0.5816 MB / 0.7485 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.214e-05/0.6554, allocations: 41.64 kB / 0.7485 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000327/0.6558, allocations: 364.3 kB / 0.7489 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001923/0.656, allocations: 232.6 kB / 0.7491 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002206/0.6562, allocations: 146.5 kB / 0.7493 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.6564, allocations: 386.7 kB / 0.7496 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004534/0.6568, allocations: 229.9 kB / 0.7498 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005512/0.6574, allocations: 326.8 kB / 0.7502 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.6584, allocations: 0.5468 MB / 0.7507 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.6584, allocations: 0 / 0.7507 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001793/0.6602, allocations: 0.7627 MB / 0.7514 GB, free: 1.738 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.6603, allocations: 4 kB / 0.7514 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.6603, allocations: 0 / 0.7514 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006065/0.6609, allocations: 89.55 kB / 0.7515 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.6615, allocations: 143.8 kB / 0.7517 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.6636, allocations: 1.539 MB / 0.7532 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006648/0.6643, allocations: 71.39 kB / 0.7532 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.4e-05/0.6644, allocations: 40.03 kB / 0.7533 GB, free: 15.72 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 (81): * Single equations (assignments): 80 * 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.0004415/0.6648, allocations: 251.9 kB / 0.7535 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.665, allocations: 71.16 kB / 0.7536 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.6671, allocations: 0.9726 MB / 0.7545 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.6671, allocations: 8 kB / 0.7545 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.6672, allocations: 0 / 0.7545 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.6672, allocations: 3.984 kB / 0.7545 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003021/0.6702, allocations: 1.832 MB / 0.7563 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.6702, allocations: 4 kB / 0.7563 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005239/0.6708, allocations: 135.8 kB / 0.7565 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000517/0.6713, allocations: 80.78 kB / 0.7565 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.988e-05/0.6713, allocations: 23.98 kB / 0.7566 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.6732, allocations: 1.552 MB / 0.7581 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6732, allocations: 0 / 0.7581 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.675, allocations: 0.8946 MB / 0.759 GB, free: 9.672 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003652/0.6754, allocations: 259.8 kB / 0.7592 GB, free: 9.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.6755, allocations: 16 kB / 0.7592 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.6761, allocations: 57.67 kB / 0.7593 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.6762, allocations: 52.92 kB / 0.7593 GB, free: 9.277 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.566e-05/0.6763, allocations: 35.97 kB / 0.7594 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005526/0.6768, allocations: 423 kB / 0.7598 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6768, allocations: 4 kB / 0.7598 GB, free: 8.832 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008722/0.6777, allocations: 283.3 kB / 0.76 GB, free: 8.555 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 (81): * Single equations (assignments): 78 * 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.00144/0.6792, allocations: 0.5989 MB / 0.7606 GB, free: 8.164 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001523/0.6807, allocations: 0.7471 MB / 0.7613 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.6807, allocations: 4 kB / 0.7613 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008154/0.6815, allocations: 476.3 kB / 0.7618 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.6827, allocations: 264.9 kB / 0.7621 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/0.6866, allocations: 2.049 MB / 0.7641 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005716/0.6872, allocations: 0.9877 MB / 0.765 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003051/0.6875, allocations: 107.4 kB / 0.7651 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of SimCode: time 9.12e-07/0.6875, allocations: 0 / 0.7651 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of Templates: time 0.0225/0.71, allocations: 16.98 MB / 0.7817 GB, free: 2.543 MB / 0.5919 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleFunctions.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.Examples.ZenithAngleCalcHelperMain.o] Error 1