Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.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.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 108.1 kB / 15.99 MB, free: 5.895 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.00123/0.00123, allocations: 193.8 kB / 16.91 MB, free: 5.742 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.463/1.463, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.831/0.831, allocations: 135.1 MB / 425.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001546, allocations: 59.91 kB / 0.5055 GB, free: 8.695 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4373/0.4388, allocations: 80.91 MB / 0.5845 GB, free: 24.96 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle): time 0.005232/0.4441, allocations: 4.068 MB / 0.5885 GB, free: 21.79 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1639/0.6081, allocations: 148.2 MB / 0.7332 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.6092, allocations: 15.94 kB / 0.7332 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008107/0.6101, allocations: 131 kB / 0.7334 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002177/0.6123, allocations: 412.8 kB / 0.7338 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002282/0.6146, allocations: 0.6995 MB / 0.7344 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001702/0.6163, allocations: 1.149 MB / 0.7356 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.6174, allocations: 0.5943 MB / 0.7361 GB, free: 15 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007718/0.6182, allocations: 426.4 kB / 0.7365 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007214/0.6189, allocations: 434.1 kB / 0.737 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002825/0.6192, allocations: 100 kB / 0.7371 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/0.6204, allocations: 443.6 kB / 0.7375 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003745/0.6208, allocations: 267.1 kB / 0.7377 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007365/0.6215, allocations: 489.4 kB / 0.7382 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.6233, allocations: 1.095 MB / 0.7393 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.6233, allocations: 0 / 0.7393 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.833e-06/0.6234, allocations: 0 / 0.7393 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.612e-05/0.6234, allocations: 0 / 0.7393 GB, free: 11.79 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: 195 * Number of variables: 195 Notification: Performance of Generate backend data structure: time 0.002998/0.6264, allocations: 1.307 MB / 0.7405 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.6265, allocations: 13.11 kB / 0.7406 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.6275, allocations: 167.5 kB / 0.7407 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.6287, allocations: 0.6956 MB / 0.7414 GB, free: 9.516 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.529e-05/0.6288, allocations: 65.94 kB / 0.7415 GB, free: 9.453 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.6289, allocations: 72 kB / 0.7415 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.6304, allocations: 0.8364 MB / 0.7423 GB, free: 8.504 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.145e-05/0.6305, allocations: 4 kB / 0.7423 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.877e-05/0.6306, allocations: 35.94 kB / 0.7424 GB, free: 8.465 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.6306, allocations: 16 kB / 0.7424 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.6322, allocations: 1.046 MB / 0.7434 GB, free: 7.402 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/0.6359, allocations: 2.328 MB / 0.7457 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.6372, allocations: 0.773 MB / 0.7464 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004573/0.6376, allocations: 266.4 kB / 0.7467 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-05/0.6377, allocations: 32.58 kB / 0.7467 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000798/0.6385, allocations: 413.7 kB / 0.7471 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=70): time 2.455e-06/0.6385, allocations: 4 kB / 0.7471 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70): time 0.002939/0.6415, allocations: 1.058 MB / 0.7482 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.85e-05/0.6416, allocations: 192.5 kB / 0.7483 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007769/0.6424, allocations: 0.5821 MB / 0.7489 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.375e-05/0.6425, allocations: 37.7 kB / 0.749 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.6428, allocations: 364.4 kB / 0.7493 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.643, allocations: 236.6 kB / 0.7495 GB, free: 0.9375 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.6432, allocations: 146.5 kB / 0.7497 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001747/0.6434, allocations: 374.8 kB / 0.75 GB, free: 424 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.6439, allocations: 233.9 kB / 0.7502 GB, free: 188 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3506/0.9945, allocations: 312.9 kB / 0.7505 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.9958, allocations: 0.5358 MB / 0.7511 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.9958, allocations: 0 / 0.7511 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002061/0.9979, allocations: 0.753 MB / 0.7518 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.9979, allocations: 8.094 kB / 0.7518 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.998, allocations: 1.438 kB / 0.7518 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006464/0.9986, allocations: 89.28 kB / 0.7519 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006548/0.9993, allocations: 141.1 kB / 0.752 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/1.001, allocations: 1.63 MB / 0.7536 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006883/1.002, allocations: 76.62 kB / 0.7537 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.949e-05/1.002, allocations: 29.5 kB / 0.7537 GB, free: 162.9 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.0004685/1.003, allocations: 260.7 kB / 0.754 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/1.003, allocations: 73.97 kB / 0.754 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002408/1.005, allocations: 0.9532 MB / 0.755 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/1.005, allocations: 8.969 kB / 0.755 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/1.005, allocations: 6.109 kB / 0.755 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/1.005, allocations: 7.219 kB / 0.755 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003517/1.009, allocations: 1.784 MB / 0.7567 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/1.009, allocations: 0.5938 kB / 0.7567 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005813/1.01, allocations: 140 kB / 0.7569 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004579/1.01, allocations: 70.36 kB / 0.7569 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.284e-05/1.01, allocations: 27.02 kB / 0.757 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/1.012, allocations: 1.658 MB / 0.7586 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.012, allocations: 0.5312 kB / 0.7586 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/1.014, allocations: 0.8873 MB / 0.7595 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/1.014, allocations: 245.6 kB / 0.7597 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/1.014, allocations: 20.84 kB / 0.7597 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005479/1.015, allocations: 57.14 kB / 0.7598 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/1.015, allocations: 58.69 kB / 0.7598 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.006e-05/1.015, allocations: 30.28 kB / 0.7598 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000653/1.016, allocations: 426.2 kB / 0.7603 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.016, allocations: 0.5 kB / 0.7603 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000977/1.017, allocations: 283.9 kB / 0.7605 GB, free: 159 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.00136/1.018, allocations: 0.5947 MB / 0.7611 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002386/1.021, allocations: 0.9164 MB / 0.762 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/1.021, allocations: 1.344 kB / 0.762 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007983/1.021, allocations: 479.2 kB / 0.7625 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/1.023, allocations: 287.2 kB / 0.7627 GB, free: 158 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00371/1.026, allocations: 2.03 MB / 0.7647 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/1.027, allocations: 0.9913 MB / 0.7657 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/1.027, allocations: 114 kB / 0.7658 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of SimCode: time 5.71e-07/1.027, allocations: 0 / 0.7658 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.01643/1.043, allocations: 16.72 MB / 0.7821 GB, free: 139.8 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.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.SolarHourAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleFunctions.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.SolarHourAngleCalcHelperMain.o] Error 1