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.001289/0.001289, allocations: 110.1 kB / 15.99 MB, free: 6.352 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.001359/0.00136, allocations: 199.2 kB / 16.91 MB, free: 6.184 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.405/1.405, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8162/0.8162, allocations: 135.1 MB / 425.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 55.91 kB / 0.5055 GB, free: 8.707 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4517/0.4533, allocations: 80.91 MB / 0.5845 GB, free: 25.14 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.006273/0.4596, allocations: 4.086 MB / 0.5885 GB, free: 21.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1609/0.6206, allocations: 148.2 MB / 0.7332 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001297/0.6219, allocations: 23.88 kB / 0.7333 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009355/0.623, allocations: 127 kB / 0.7334 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002485/0.6255, allocations: 420.6 kB / 0.7338 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00254/0.628, allocations: 0.698 MB / 0.7345 GB, free: 0.7227 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001834/0.6299, allocations: 1.168 MB / 0.7356 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001167/0.631, allocations: 0.6176 MB / 0.7362 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008461/0.6319, allocations: 422.5 kB / 0.7366 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007752/0.6327, allocations: 450 kB / 0.7371 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003212/0.633, allocations: 104 kB / 0.7371 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.6343, allocations: 451.6 kB / 0.7376 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004044/0.6347, allocations: 267.1 kB / 0.7378 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007751/0.6355, allocations: 497.4 kB / 0.7383 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001833/0.6373, allocations: 1.123 MB / 0.7394 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.6373, allocations: 3.984 kB / 0.7394 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.395e-06/0.6373, allocations: 0 / 0.7394 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.012e-05/0.6374, allocations: 0 / 0.7394 GB, free: 11.64 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.003239/0.6406, allocations: 1.299 MB / 0.7407 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.6407, allocations: 17.09 kB / 0.7407 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.6418, allocations: 175.5 kB / 0.7409 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.6431, allocations: 0.7033 MB / 0.7415 GB, free: 9.355 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.406e-05/0.6431, allocations: 54 kB / 0.7416 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.6433, allocations: 76 kB / 0.7417 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.645, allocations: 0.8636 MB / 0.7425 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.645, allocations: 0 / 0.7425 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.894e-05/0.6451, allocations: 36 kB / 0.7426 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/0.6452, allocations: 27.98 kB / 0.7426 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.6469, allocations: 1.054 MB / 0.7436 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00419/0.6512, allocations: 2.383 MB / 0.7459 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.6527, allocations: 0.7957 MB / 0.7467 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005079/0.6532, allocations: 273.2 kB / 0.747 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.47e-05/0.6533, allocations: 32.67 kB / 0.747 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008799/0.6542, allocations: 429.7 kB / 0.7474 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=70): time 3.647e-06/0.6542, allocations: 0 / 0.7474 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70): time 0.003074/0.6573, allocations: 1.066 MB / 0.7485 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.6574, allocations: 196.4 kB / 0.7486 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008857/0.6583, allocations: 0.5783 MB / 0.7492 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.758e-05/0.6584, allocations: 41.7 kB / 0.7492 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/0.6587, allocations: 368.2 kB / 0.7496 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.659, allocations: 232.6 kB / 0.7498 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002442/0.6592, allocations: 150.5 kB / 0.75 GB, free: 496 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001732/0.6594, allocations: 378.8 kB / 0.7503 GB, free: 108 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3681/1.028, allocations: 227.1 kB / 0.7505 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007789/1.028, allocations: 326 kB / 0.7508 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/1.03, allocations: 0.544 MB / 0.7514 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/1.03, allocations: 1.5 kB / 0.7514 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00205/1.032, allocations: 0.7621 MB / 0.7521 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/1.032, allocations: 5.406 kB / 0.7521 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/1.032, allocations: 4.5 kB / 0.7521 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006225/1.032, allocations: 83.69 kB / 0.7522 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006721/1.033, allocations: 147.1 kB / 0.7524 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001989/1.035, allocations: 1.641 MB / 0.754 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006611/1.036, allocations: 81.75 kB / 0.754 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.736e-05/1.036, allocations: 29.59 kB / 0.7541 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.0004666/1.036, allocations: 256.9 kB / 0.7543 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/1.036, allocations: 75.06 kB / 0.7544 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002353/1.039, allocations: 0.9626 MB / 0.7553 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/1.039, allocations: 8.688 kB / 0.7553 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/1.039, allocations: 4.812 kB / 0.7553 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/1.039, allocations: 5.938 kB / 0.7553 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003429/1.042, allocations: 1.837 MB / 0.7571 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/1.042, allocations: 4.266 kB / 0.7571 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006149/1.043, allocations: 131.5 kB / 0.7573 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000473/1.043, allocations: 77.66 kB / 0.7573 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.136e-05/1.043, allocations: 23.3 kB / 0.7574 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/1.045, allocations: 1.671 MB / 0.759 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.045, allocations: 0.5312 kB / 0.759 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/1.047, allocations: 0.8994 MB / 0.7599 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003115/1.048, allocations: 248.7 kB / 0.7601 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/1.048, allocations: 20.53 kB / 0.7601 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005466/1.048, allocations: 52.98 kB / 0.7602 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/1.048, allocations: 61.59 kB / 0.7602 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.503e-05/1.048, allocations: 30.06 kB / 0.7603 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005743/1.049, allocations: 426.1 kB / 0.7607 GB, free: 159 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.049, allocations: 2.75 kB / 0.7607 GB, free: 159 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008726/1.05, allocations: 287.9 kB / 0.7609 GB, free: 158.9 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.001393/1.051, allocations: 0.5979 MB / 0.7615 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002087/1.053, allocations: 0.9249 MB / 0.7624 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/1.053, allocations: 2.688 kB / 0.7624 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008123/1.054, allocations: 479.8 kB / 0.7629 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/1.055, allocations: 281.9 kB / 0.7632 GB, free: 158 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/1.059, allocations: 2.057 MB / 0.7652 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003679/1.059, allocations: 0.9908 MB / 0.7661 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002406/1.06, allocations: 111.8 kB / 0.7662 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of SimCode: time 6.61e-07/1.06, allocations: 0.875 kB / 0.7662 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.01683/1.077, allocations: 16.97 MB / 0.7828 GB, free: 139.1 MB / 0.5762 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++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.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