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.001855/0.001855, allocations: 107.7 kB / 15.99 MB, free: 6.348 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.001453/0.001453, allocations: 191.8 kB / 16.91 MB, free: 6.188 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.356/1.356, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8161/0.8161, allocations: 135.1 MB / 425.9 MB, free: 4.324 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 71.89 kB / 0.5055 GB, free: 8.719 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4826/0.4842, allocations: 80.91 MB / 0.5845 GB, free: 25.21 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.005835/0.4901, allocations: 4.136 MB / 0.5886 GB, free: 21.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1659/0.656, allocations: 148.2 MB / 0.7333 GB, free: 1.906 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.6572, allocations: 15.94 kB / 0.7333 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007994/0.6581, allocations: 131 kB / 0.7334 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002088/0.6602, allocations: 417.8 kB / 0.7338 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002199/0.6624, allocations: 0.7165 MB / 0.7345 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001599/0.664, allocations: 1.18 MB / 0.7357 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.6651, allocations: 0.6099 MB / 0.7363 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008358/0.666, allocations: 434.4 kB / 0.7367 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007815/0.6668, allocations: 457.9 kB / 0.7371 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002127/0.667, allocations: 104 kB / 0.7372 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001024/0.668, allocations: 435.7 kB / 0.7377 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.6683, allocations: 271.1 kB / 0.7379 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006274/0.6689, allocations: 0.4974 MB / 0.7384 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001711/0.6707, allocations: 1.107 MB / 0.7395 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.6707, allocations: 4 kB / 0.7395 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.733e-06/0.6707, allocations: 0 / 0.7395 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.252e-05/0.6708, allocations: 0 / 0.7395 GB, free: 11.56 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.003004/0.6738, allocations: 1.326 MB / 0.7408 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.6738, allocations: 13.11 kB / 0.7408 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009193/0.6747, allocations: 179.4 kB / 0.741 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009863/0.6757, allocations: 0.7033 MB / 0.7417 GB, free: 9.246 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.985e-05/0.6758, allocations: 58 kB / 0.7417 GB, free: 9.191 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-05/0.6759, allocations: 76 kB / 0.7418 GB, free: 9.117 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.6774, allocations: 0.8637 MB / 0.7426 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.6774, allocations: 0 / 0.7426 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.132e-05/0.6775, allocations: 36 kB / 0.7427 GB, free: 8.176 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.6775, allocations: 24 kB / 0.7427 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.6792, allocations: 1.065 MB / 0.7437 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00381/0.683, allocations: 2.374 MB / 0.746 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.6843, allocations: 0.7937 MB / 0.7468 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004549/0.6848, allocations: 278 kB / 0.7471 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.07e-05/0.6849, allocations: 28.58 kB / 0.7471 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000798/0.6857, allocations: 427.2 kB / 0.7475 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=72): time 2.405e-06/0.6857, allocations: 0 / 0.7475 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.002837/0.6885, allocations: 1.077 MB / 0.7486 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.6886, allocations: 192.6 kB / 0.7488 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006831/0.6893, allocations: 0.5861 MB / 0.7493 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.176e-05/0.6894, allocations: 41.7 kB / 0.7494 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002852/0.6897, allocations: 364.4 kB / 0.7497 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.6899, allocations: 244.5 kB / 0.7499 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.6901, allocations: 154.4 kB / 0.7501 GB, free: 360 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.289/0.9792, allocations: 378.8 kB / 0.7505 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008427/0.98, allocations: 234.6 kB / 0.7507 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006683/0.9807, allocations: 327.8 kB / 0.751 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.9819, allocations: 0.5452 MB / 0.7515 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.9819, allocations: 4.875 kB / 0.7515 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00203/0.9839, allocations: 0.7617 MB / 0.7523 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.9839, allocations: 9.422 kB / 0.7523 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.984, allocations: 0.9688 kB / 0.7523 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006327/0.9846, allocations: 78.86 kB / 0.7524 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006652/0.9853, allocations: 153.2 kB / 0.7525 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.9873, allocations: 1.628 MB / 0.7541 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008377/0.9882, allocations: 73.08 kB / 0.7542 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.764e-05/0.9883, allocations: 43.7 kB / 0.7542 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 (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.000505/0.9888, allocations: 256.6 kB / 0.7544 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.989, allocations: 77.22 kB / 0.7545 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002611/0.9916, allocations: 1.002 MB / 0.7555 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.9916, allocations: 10.31 kB / 0.7555 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.9916, allocations: 0.8438 kB / 0.7555 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.9916, allocations: 7.609 kB / 0.7555 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003599/0.9953, allocations: 1.854 MB / 0.7573 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.9953, allocations: 0.5625 kB / 0.7573 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006677/0.9959, allocations: 148.4 kB / 0.7575 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000486/0.9964, allocations: 69.25 kB / 0.7575 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.207e-05/0.9965, allocations: 27.77 kB / 0.7576 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.9983, allocations: 1.654 MB / 0.7592 GB, free: 159.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.9983, allocations: 8.047 kB / 0.7592 GB, free: 159.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002235/1.001, allocations: 0.9129 MB / 0.7601 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003905/1.001, allocations: 252.8 kB / 0.7603 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/1.001, allocations: 15.91 kB / 0.7603 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005683/1.002, allocations: 61.08 kB / 0.7604 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/1.002, allocations: 63.84 kB / 0.7605 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.382e-05/1.002, allocations: 34.62 kB / 0.7605 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005998/1.003, allocations: 426.4 kB / 0.7609 GB, free: 159 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.21e-07/1.003, allocations: 0 / 0.7609 GB, free: 159 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001049/1.004, allocations: 295.6 kB / 0.7612 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 (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.001636/1.005, allocations: 0.5918 MB / 0.7618 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002351/1.008, allocations: 0.9466 MB / 0.7627 GB, free: 158.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/1.008, allocations: 0.6875 kB / 0.7627 GB, free: 158.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008443/1.009, allocations: 497.1 kB / 0.7632 GB, free: 158 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/1.01, allocations: 285.8 kB / 0.7634 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003841/1.014, allocations: 2.087 MB / 0.7655 GB, free: 156.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/1.014, allocations: 0.9969 MB / 0.7664 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/1.014, allocations: 112.8 kB / 0.7665 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of SimCode: time 6.01e-07/1.014, allocations: 0 / 0.7665 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.01825/1.033, allocations: 17.03 MB / 0.7832 GB, free: 138.6 MB / 0.5762 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++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.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