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.001667/0.001667, allocations: 106.5 kB / 16.41 MB, free: 6.492 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.001349/0.001349, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.428/1.428, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8623/0.8623, allocations: 135.2 MB / 426.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 75.75 kB / 0.5863 GB, free: 21.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1725, allocations: 80.93 MB / 0.6653 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.006459/0.179, allocations: 4.072 MB / 0.6693 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6822/0.8611, allocations: 150.9 MB / 0.8167 GB, free: 8.262 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009252/0.862, allocations: 14.94 kB / 0.8167 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006165/0.8627, allocations: 171.4 kB / 0.8168 GB, free: 8.168 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001649/0.8643, allocations: 476.5 kB / 0.8173 GB, free: 7.977 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001972/0.8663, allocations: 0.7944 MB / 0.8181 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001306/0.8676, allocations: 1.172 MB / 0.8192 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007339/0.8683, allocations: 460.6 kB / 0.8197 GB, free: 7.23 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006062/0.8689, allocations: 427.3 kB / 0.8201 GB, free: 7.098 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005361/0.8695, allocations: 443.1 kB / 0.8205 GB, free: 6.902 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.8696, allocations: 102.6 kB / 0.8206 GB, free: 6.902 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.8706, allocations: 482.5 kB / 0.821 GB, free: 6.801 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002736/0.8709, allocations: 267.5 kB / 0.8213 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004885/0.8714, allocations: 498.7 kB / 0.8218 GB, free: 6.332 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002139/0.8735, allocations: 1.492 MB / 0.8232 GB, free: 5.25 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.8735, allocations: 2 kB / 0.8232 GB, free: 5.25 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8735, allocations: 7.938 kB / 0.8232 GB, free: 5.242 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.572e-05/0.8735, allocations: 0 / 0.8232 GB, free: 5.242 MB / 0.5919 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.002455/0.876, allocations: 1.336 MB / 0.8245 GB, free: 4.164 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.876, allocations: 11.33 kB / 0.8246 GB, free: 4.164 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009192/0.8769, allocations: 183.5 kB / 0.8247 GB, free: 4.074 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.878, allocations: 0.7322 MB / 0.8254 GB, free: 3.465 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.91e-05/0.8781, allocations: 56.78 kB / 0.8255 GB, free: 3.441 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.8782, allocations: 76.33 kB / 0.8256 GB, free: 3.414 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.8797, allocations: 0.8619 MB / 0.8264 GB, free: 2.852 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.8797, allocations: 3.938 kB / 0.8264 GB, free: 2.848 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-05/0.8798, allocations: 34.09 kB / 0.8265 GB, free: 2.824 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.8798, allocations: 17.38 kB / 0.8265 GB, free: 2.824 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.8814, allocations: 1.06 MB / 0.8275 GB, free: 2.324 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.8853, allocations: 2.351 MB / 0.8298 GB, free: 0.4961 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.8866, allocations: 0.7643 MB / 0.8305 GB, free: 52 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004877/0.8871, allocations: 248 kB / 0.8308 GB, free: 15.92 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.437e-05/0.8872, allocations: 31.31 kB / 0.8308 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007638/0.888, allocations: 426.1 kB / 0.8312 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=70): time 2.244e-06/0.888, allocations: 0 / 0.8312 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of matching and sorting (n=70): time 0.00303/0.891, allocations: 1.069 MB / 0.8323 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/0.8912, allocations: 188.1 kB / 0.8324 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008583/0.892, allocations: 0.5888 MB / 0.833 GB, free: 14.47 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.153e-05/0.8921, allocations: 36.58 kB / 0.8331 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003658/0.8925, allocations: 368.2 kB / 0.8334 GB, free: 14.11 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.8927, allocations: 247.7 kB / 0.8336 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.8929, allocations: 151.3 kB / 0.8338 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002193/0.8931, allocations: 381.1 kB / 0.8341 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004686/0.8936, allocations: 230.4 kB / 0.8344 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005864/0.8942, allocations: 330.2 kB / 0.8347 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.8952, allocations: 0.5411 MB / 0.8352 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.8952, allocations: 0 / 0.8352 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00185/0.8971, allocations: 0.7633 MB / 0.836 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.8971, allocations: 6 kB / 0.836 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.8971, allocations: 3.75 kB / 0.836 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005794/0.8977, allocations: 86.22 kB / 0.836 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005956/0.8983, allocations: 150 kB / 0.8362 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/0.9008, allocations: 1.648 MB / 0.8378 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007208/0.9015, allocations: 78.02 kB / 0.8379 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.788e-05/0.9016, allocations: 32.06 kB / 0.8379 GB, free: 10.68 MB / 0.6075 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.0005105/0.9021, allocations: 251.8 kB / 0.8381 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/0.9023, allocations: 75.22 kB / 0.8382 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.9045, allocations: 0.9608 MB / 0.8392 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.9045, allocations: 7.125 kB / 0.8392 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.9045, allocations: 3.031 kB / 0.8392 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.9046, allocations: 11.97 kB / 0.8392 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/0.9078, allocations: 1.825 MB / 0.841 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.9078, allocations: 0 / 0.841 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005261/0.9083, allocations: 144 kB / 0.8411 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004362/0.9088, allocations: 76.03 kB / 0.8412 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.9088, allocations: 19.95 kB / 0.8412 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00212/0.9109, allocations: 1.67 MB / 0.8428 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.9109, allocations: 0 / 0.8428 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.9128, allocations: 0.8973 MB / 0.8437 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003888/0.9132, allocations: 262.3 kB / 0.8439 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.9133, allocations: 18.25 kB / 0.844 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005218/0.9139, allocations: 53.16 kB / 0.844 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.914, allocations: 59.3 kB / 0.8441 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.897e-05/0.9141, allocations: 29.92 kB / 0.8441 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006059/0.9147, allocations: 428.7 kB / 0.8445 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.9147, allocations: 0 / 0.8445 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008834/0.9156, allocations: 293.4 kB / 0.8448 GB, free: 5.75 MB / 0.6075 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.001949/0.9175, allocations: 0.6019 MB / 0.8454 GB, free: 5.465 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001728/0.9192, allocations: 0.7198 MB / 0.8461 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.9193, allocations: 0 / 0.8461 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008741/0.9201, allocations: 461.7 kB / 0.8465 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.9214, allocations: 282.1 kB / 0.8468 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004161/0.9256, allocations: 1.688 MB / 0.8484 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.9263, allocations: 0.9953 MB / 0.8494 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003299/0.9266, allocations: 103.4 kB / 0.8495 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of SimCode: time 1.432e-06/0.9266, allocations: 0 / 0.8495 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of Templates: time 0.02606/0.9527, allocations: 17.1 MB / 0.8662 GB, free: 0.8398 MB / 0.6231 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++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.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