Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001132/0.001132, allocations: 103.8 kB / 16.4 MB, free: 6.512 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.001168/0.001168, allocations: 187 kB / 17.34 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7827/0.7827, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 66.08 kB / 0.582 GB, free: 23.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1401, allocations: 80.21 MB / 0.6603 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle): time 0.005495/0.1456, allocations: 4.047 MB / 0.6643 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4918/0.6374, allocations: 150.4 MB / 0.8112 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006711/0.6382, allocations: 15.78 kB / 0.8112 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0004913/0.6387, allocations: 165.5 kB / 0.8114 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.64, allocations: 469.2 kB / 0.8118 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.6417, allocations: 0.7897 MB / 0.8126 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0009787/0.6427, allocations: 1.158 MB / 0.8137 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007555/0.6434, allocations: 0.5964 MB / 0.8143 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004573/0.6439, allocations: 415.2 kB / 0.8147 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004256/0.6443, allocations: 436.7 kB / 0.8151 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.6445, allocations: 100.3 kB / 0.8152 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007917/0.6453, allocations: 469 kB / 0.8156 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.6455, allocations: 266.9 kB / 0.8159 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00035/0.6459, allocations: 493.1 kB / 0.8164 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00136/0.6472, allocations: 1.452 MB / 0.8178 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.6473, allocations: 0 / 0.8178 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.873e-06/0.6473, allocations: 2.844 kB / 0.8178 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.129e-05/0.6473, allocations: 0 / 0.8178 GB, free: 10.1 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: 195 * Number of variables: 195 Notification: Performance of Generate backend data structure: time 0.001909/0.6492, allocations: 1.296 MB / 0.8191 GB, free: 9.215 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.6492, allocations: 11 kB / 0.8191 GB, free: 9.215 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008527/0.6501, allocations: 180.3 kB / 0.8192 GB, free: 9.129 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009192/0.651, allocations: 0.7124 MB / 0.8199 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.6511, allocations: 56.16 kB / 0.82 GB, free: 8.609 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.6512, allocations: 77.56 kB / 0.8201 GB, free: 8.582 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.6525, allocations: 0.841 MB / 0.8209 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.6526, allocations: 0 / 0.8209 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.247e-05/0.6526, allocations: 32.81 kB / 0.8209 GB, free: 8.008 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.6527, allocations: 20.38 kB / 0.8209 GB, free: 8.008 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.6542, allocations: 1.049 MB / 0.822 GB, free: 7.508 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.6575, allocations: 2.299 MB / 0.8242 GB, free: 5.75 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.6587, allocations: 0.7717 MB / 0.825 GB, free: 5.312 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004507/0.6592, allocations: 274.2 kB / 0.8252 GB, free: 5.172 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.179e-05/0.6593, allocations: 29.44 kB / 0.8252 GB, free: 5.164 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006886/0.66, allocations: 414.2 kB / 0.8256 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=70): time 2.645e-06/0.66, allocations: 0 / 0.8256 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of matching and sorting (n=70): time 0.00278/0.6628, allocations: 1.05 MB / 0.8267 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.6629, allocations: 196.1 kB / 0.8269 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006481/0.6635, allocations: 0.579 MB / 0.8274 GB, free: 3.754 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.129e-05/0.6636, allocations: 40.3 kB / 0.8275 GB, free: 3.711 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.6639, allocations: 369.2 kB / 0.8278 GB, free: 3.387 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.664, allocations: 232.5 kB / 0.828 GB, free: 3.191 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002143/0.6643, allocations: 150.2 kB / 0.8282 GB, free: 3.102 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.6644, allocations: 373.4 kB / 0.8285 GB, free: 2.742 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004302/0.6649, allocations: 233.2 kB / 0.8288 GB, free: 2.625 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005243/0.6654, allocations: 320.2 kB / 0.8291 GB, free: 2.438 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000939/0.6663, allocations: 0.5327 MB / 0.8296 GB, free: 2.152 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.6664, allocations: 2.812 kB / 0.8296 GB, free: 2.152 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001672/0.668, allocations: 0.7522 MB / 0.8303 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.6681, allocations: 4.938 kB / 0.8303 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.6681, allocations: 1.812 kB / 0.8303 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005826/0.6687, allocations: 83.92 kB / 0.8304 GB, free: 1.723 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005615/0.6692, allocations: 141.6 kB / 0.8305 GB, free: 1.688 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002027/0.6713, allocations: 1.637 MB / 0.8321 GB, free: 88 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005806/0.6719, allocations: 78.02 kB / 0.8322 GB, free: 36 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.6719, allocations: 27.89 kB / 0.8322 GB, free: 28 kB / 0.5919 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.0003939/0.6723, allocations: 256.6 kB / 0.8325 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.6725, allocations: 74.34 kB / 0.8326 GB, free: 15.78 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.6745, allocations: 0.9558 MB / 0.8335 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.6746, allocations: 13.44 kB / 0.8335 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.6746, allocations: 0 / 0.8335 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.6746, allocations: 3.984 kB / 0.8335 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.6774, allocations: 1.783 MB / 0.8352 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.6774, allocations: 0 / 0.8352 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005196/0.6779, allocations: 137.6 kB / 0.8354 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004224/0.6784, allocations: 77.88 kB / 0.8355 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.114e-05/0.6784, allocations: 27.8 kB / 0.8355 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/0.6802, allocations: 1.649 MB / 0.8371 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.6802, allocations: 0 / 0.8371 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.6819, allocations: 0.89 MB / 0.838 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000297/0.6823, allocations: 249.2 kB / 0.8382 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.451e-05/0.6824, allocations: 16.97 kB / 0.8382 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005411/0.6829, allocations: 56.8 kB / 0.8383 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.683, allocations: 56.62 kB / 0.8383 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.074e-05/0.6831, allocations: 31.7 kB / 0.8383 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004719/0.6836, allocations: 417.7 kB / 0.8387 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6836, allocations: 0 / 0.8387 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008228/0.6844, allocations: 289.3 kB / 0.839 GB, free: 11.2 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.001335/0.6858, allocations: 0.6015 MB / 0.8396 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001408/0.6872, allocations: 0.7333 MB / 0.8403 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.6872, allocations: 7.312 kB / 0.8403 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007893/0.688, allocations: 481.4 kB / 0.8408 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.6892, allocations: 278.6 kB / 0.8411 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.6927, allocations: 1.645 MB / 0.8427 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004963/0.6932, allocations: 0.9817 MB / 0.8436 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002722/0.6935, allocations: 109.7 kB / 0.8437 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/0.6935, allocations: 0 / 0.8437 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of Templates: time 0.021/0.7145, allocations: 16.95 MB / 0.8603 GB, free: 7.578 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.o] Error 1