Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 113.1 kB / 16.41 MB, free: 6.484 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.001143/0.001143, allocations: 189.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.336/1.336, 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.8352/0.8352, allocations: 135.1 MB / 426.3 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 72.27 kB / 0.5863 GB, free: 21.57 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1724, allocations: 80.93 MB / 0.6653 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.006649/0.1791, allocations: 4.111 MB / 0.6693 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6211/0.8002, allocations: 150.5 MB / 0.8163 GB, free: 8.5 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009285/0.8012, allocations: 14.91 kB / 0.8163 GB, free: 8.496 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006336/0.8019, allocations: 167.3 kB / 0.8164 GB, free: 8.406 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001866/0.8038, allocations: 493.3 kB / 0.8169 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002036/0.8058, allocations: 0.7925 MB / 0.8177 GB, free: 7.957 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00149/0.8073, allocations: 1.193 MB / 0.8188 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008518/0.8082, allocations: 0.6102 MB / 0.8194 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006408/0.8088, allocations: 436.9 kB / 0.8198 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004798/0.8093, allocations: 448.9 kB / 0.8203 GB, free: 7.102 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.8094, allocations: 105.7 kB / 0.8204 GB, free: 7.098 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009397/0.8104, allocations: 476.5 kB / 0.8208 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.8106, allocations: 263.2 kB / 0.8211 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004259/0.8111, allocations: 0.49 MB / 0.8216 GB, free: 6.578 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.8129, allocations: 1.492 MB / 0.823 GB, free: 5.504 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.813, allocations: 0 / 0.823 GB, free: 5.504 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.683e-06/0.813, allocations: 0 / 0.823 GB, free: 5.504 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.485e-05/0.813, allocations: 0 / 0.823 GB, free: 5.504 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.002291/0.8153, allocations: 1.32 MB / 0.8243 GB, free: 4.449 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.8153, allocations: 11.27 kB / 0.8243 GB, free: 4.449 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008995/0.8162, allocations: 178 kB / 0.8245 GB, free: 4.363 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.8174, allocations: 0.7279 MB / 0.8252 GB, free: 3.762 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.599e-05/0.8174, allocations: 59.41 kB / 0.8253 GB, free: 3.738 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.866e-05/0.8175, allocations: 77.88 kB / 0.8253 GB, free: 3.711 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.819, allocations: 0.861 MB / 0.8262 GB, free: 3.148 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.819, allocations: 2.5 kB / 0.8262 GB, free: 3.148 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-05/0.8191, allocations: 31.88 kB / 0.8262 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.8191, allocations: 18.03 kB / 0.8262 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001627/0.8207, allocations: 1.067 MB / 0.8273 GB, free: 2.617 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003615/0.8244, allocations: 2.342 MB / 0.8295 GB, free: 0.8047 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.8257, allocations: 0.7907 MB / 0.8303 GB, free: 364 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004845/0.8262, allocations: 286.3 kB / 0.8306 GB, free: 216 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.012e-05/0.8263, allocations: 31.53 kB / 0.8306 GB, free: 200 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000785/0.8271, allocations: 426.5 kB / 0.831 GB, free: 15.92 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=72): time 2.394e-06/0.8271, allocations: 0 / 0.831 GB, free: 15.92 MB / 0.6075 GB Notification: Performance of matching and sorting (n=72): time 0.002836/0.8299, allocations: 1.072 MB / 0.8321 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.8301, allocations: 188.3 kB / 0.8323 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007517/0.8308, allocations: 0.5933 MB / 0.8328 GB, free: 14.76 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.152e-05/0.8309, allocations: 47.39 kB / 0.8329 GB, free: 14.71 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/0.8312, allocations: 367 kB / 0.8332 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.8314, allocations: 238.5 kB / 0.8335 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002195/0.8317, allocations: 153.3 kB / 0.8336 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.8318, allocations: 376.6 kB / 0.834 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004439/0.8323, allocations: 235.8 kB / 0.8342 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005384/0.8328, allocations: 325 kB / 0.8345 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009574/0.8338, allocations: 0.5468 MB / 0.835 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.8338, allocations: 4 kB / 0.835 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001755/0.8356, allocations: 0.769 MB / 0.8358 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.8356, allocations: 5.281 kB / 0.8358 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.8356, allocations: 5.781 kB / 0.8358 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000585/0.8362, allocations: 82.95 kB / 0.8359 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005823/0.8368, allocations: 146.9 kB / 0.836 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.8389, allocations: 1.632 MB / 0.8376 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007126/0.8396, allocations: 82.06 kB / 0.8377 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.624e-05/0.8397, allocations: 34.55 kB / 0.8377 GB, free: 10.98 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 (83): * Single equations (assignments): 82 * 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.0004873/0.8402, allocations: 250.3 kB / 0.838 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/0.8404, allocations: 82.25 kB / 0.838 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002276/0.8427, allocations: 0.9962 MB / 0.839 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.8427, allocations: 7.438 kB / 0.839 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.8427, allocations: 0 / 0.839 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.8427, allocations: 6.922 kB / 0.839 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003316/0.846, allocations: 1.85 MB / 0.8408 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.8461, allocations: 3.75 kB / 0.8408 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005434/0.8466, allocations: 151.1 kB / 0.841 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004411/0.8471, allocations: 74.16 kB / 0.8411 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.333e-05/0.8471, allocations: 19.95 kB / 0.8411 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001979/0.8491, allocations: 1.661 MB / 0.8427 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.8491, allocations: 0 / 0.8427 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.8511, allocations: 0.9082 MB / 0.8436 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000468/0.8516, allocations: 257.2 kB / 0.8438 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.8518, allocations: 24.19 kB / 0.8438 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/0.8524, allocations: 57.8 kB / 0.8439 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.8526, allocations: 62.88 kB / 0.844 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.992e-05/0.8527, allocations: 28.61 kB / 0.844 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006768/0.8533, allocations: 429.4 kB / 0.8444 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8533, allocations: 0 / 0.8444 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001051/0.8544, allocations: 292.8 kB / 0.8447 GB, free: 6.043 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 (86): * Single equations (assignments): 83 * 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.001564/0.856, allocations: 0.5954 MB / 0.8453 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001732/0.8577, allocations: 0.7493 MB / 0.846 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.8577, allocations: 9.938 kB / 0.846 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009157/0.8587, allocations: 497.8 kB / 0.8465 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.8601, allocations: 287.6 kB / 0.8468 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004194/0.8643, allocations: 1.684 MB / 0.8484 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007288/0.865, allocations: 1.003 MB / 0.8494 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003636/0.8654, allocations: 103.4 kB / 0.8495 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of SimCode: time 2.405e-06/0.8654, allocations: 0 / 0.8495 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of Templates: time 0.02626/0.8917, allocations: 17.12 MB / 0.8662 GB, free: 0.7344 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.ZenithAngleCalcHelperMain.o] Error 1