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.001496/0.001496, allocations: 105.2 kB / 16.41 MB, free: 6.5 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.001666/0.001666, allocations: 197.4 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.396/1.396, allocations: 222.9 MB / 241 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.7965/0.7965, allocations: 135.1 MB / 426.3 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.34 kB / 0.5863 GB, free: 21.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1464, allocations: 80.93 MB / 0.6653 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.006745/0.1531, allocations: 4.114 MB / 0.6693 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5855/0.7386, allocations: 150.5 MB / 0.8163 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009036/0.7396, allocations: 15.12 kB / 0.8163 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005921/0.7402, allocations: 171.5 kB / 0.8164 GB, free: 8.457 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.7419, allocations: 487.4 kB / 0.8169 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00225/0.7441, allocations: 0.7883 MB / 0.8177 GB, free: 8.02 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00151/0.7456, allocations: 1.186 MB / 0.8188 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008044/0.7465, allocations: 0.6072 MB / 0.8194 GB, free: 7.504 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005588/0.747, allocations: 442.9 kB / 0.8198 GB, free: 7.359 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004492/0.7475, allocations: 448.3 kB / 0.8203 GB, free: 7.16 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.7476, allocations: 102.3 kB / 0.8204 GB, free: 7.16 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009117/0.7485, allocations: 479.7 kB / 0.8208 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002503/0.7488, allocations: 268.2 kB / 0.8211 GB, free: 6.977 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004041/0.7492, allocations: 0.4917 MB / 0.8216 GB, free: 6.629 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001557/0.7508, allocations: 1.479 MB / 0.823 GB, free: 5.566 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.7508, allocations: 0 / 0.823 GB, free: 5.566 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7508, allocations: 4 kB / 0.823 GB, free: 5.562 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.7508, allocations: 0 / 0.823 GB, free: 5.562 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.00226/0.7531, allocations: 1.32 MB / 0.8243 GB, free: 4.508 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.7531, allocations: 11.45 kB / 0.8243 GB, free: 4.508 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009392/0.7541, allocations: 179.2 kB / 0.8245 GB, free: 4.422 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.7553, allocations: 0.724 MB / 0.8252 GB, free: 3.824 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.819e-05/0.7554, allocations: 59.47 kB / 0.8252 GB, free: 3.801 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.7555, allocations: 81.73 kB / 0.8253 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.7569, allocations: 0.8543 MB / 0.8262 GB, free: 3.215 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.757, allocations: 0 / 0.8262 GB, free: 3.215 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.177e-05/0.757, allocations: 41.83 kB / 0.8262 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.7571, allocations: 17.66 kB / 0.8262 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.7587, allocations: 1.062 MB / 0.8272 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003686/0.7624, allocations: 2.35 MB / 0.8295 GB, free: 0.8633 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.7636, allocations: 0.7878 MB / 0.8303 GB, free: 424 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004783/0.7641, allocations: 280.5 kB / 0.8306 GB, free: 280 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.076e-05/0.7642, allocations: 28.34 kB / 0.8306 GB, free: 268 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008195/0.765, allocations: 437.8 kB / 0.831 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=72): time 2.154e-06/0.7651, allocations: 0 / 0.831 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of matching and sorting (n=72): time 0.002928/0.768, allocations: 1.07 MB / 0.8321 GB, free: 15.39 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.7681, allocations: 188.3 kB / 0.8322 GB, free: 15.17 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007642/0.7689, allocations: 0.5911 MB / 0.8328 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.769, allocations: 40.61 kB / 0.8329 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003125/0.7693, allocations: 373.6 kB / 0.8332 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.7695, allocations: 242.5 kB / 0.8335 GB, free: 14.24 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.7698, allocations: 149.3 kB / 0.8336 GB, free: 14.15 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002245/0.77, allocations: 382.5 kB / 0.834 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/0.7705, allocations: 238 kB / 0.8342 GB, free: 13.67 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006116/0.7712, allocations: 324.3 kB / 0.8345 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.7723, allocations: 0.5501 MB / 0.835 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.7723, allocations: 0 / 0.835 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001917/0.7742, allocations: 0.768 MB / 0.8358 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.7742, allocations: 6.812 kB / 0.8358 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.7743, allocations: 2.188 kB / 0.8358 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005964/0.7749, allocations: 75.28 kB / 0.8359 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006141/0.7755, allocations: 154.4 kB / 0.836 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002403/0.7779, allocations: 1.629 MB / 0.8376 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007099/0.7786, allocations: 76.53 kB / 0.8377 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.769e-05/0.7787, allocations: 38.69 kB / 0.8377 GB, free: 11.04 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.0005143/0.7793, allocations: 250.2 kB / 0.8379 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.7795, allocations: 78.28 kB / 0.838 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/0.7819, allocations: 0.9968 MB / 0.839 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.7819, allocations: 10.81 kB / 0.839 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.7819, allocations: 0 / 0.839 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.782, allocations: 6.734 kB / 0.839 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003794/0.7858, allocations: 1.851 MB / 0.8408 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.7858, allocations: 3.938 kB / 0.8408 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005758/0.7864, allocations: 150.4 kB / 0.841 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004562/0.7868, allocations: 70.33 kB / 0.841 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.676e-05/0.7869, allocations: 23.83 kB / 0.8411 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/0.7894, allocations: 1.665 MB / 0.8427 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7894, allocations: 0 / 0.8427 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.7914, allocations: 0.9125 MB / 0.8436 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005093/0.7919, allocations: 253.1 kB / 0.8438 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.7921, allocations: 25.17 kB / 0.8438 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006405/0.7928, allocations: 52.95 kB / 0.8439 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.7929, allocations: 62.81 kB / 0.844 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.066e-05/0.793, allocations: 28.42 kB / 0.844 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006824/0.7937, allocations: 427.9 kB / 0.8444 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7937, allocations: 1.781 kB / 0.8444 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00109/0.7948, allocations: 288.8 kB / 0.8447 GB, free: 6.105 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.001701/0.7965, allocations: 0.6028 MB / 0.8453 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001869/0.7984, allocations: 0.7532 MB / 0.846 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.7984, allocations: 0 / 0.846 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009482/0.7994, allocations: 498.7 kB / 0.8465 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.8008, allocations: 286.8 kB / 0.8467 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.8051, allocations: 1.697 MB / 0.8484 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008743/0.806, allocations: 0.9915 MB / 0.8494 GB, free: 2.027 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003146/0.8064, allocations: 115.4 kB / 0.8495 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of SimCode: time 8.31e-07/0.8064, allocations: 0 / 0.8495 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of Templates: time 0.02905/0.8354, allocations: 17.24 MB / 0.8663 GB, free: 0.6836 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