Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001268/0.001268, allocations: 107.5 kB / 16.41 MB, free: 6.508 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.001292/0.001292, 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.362/1.362, 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.8282/0.8282, allocations: 132.2 MB / 423.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 66.72 kB / 0.582 GB, free: 23.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1548, allocations: 80.21 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.005939/0.1608, allocations: 4.109 MB / 0.6643 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5542/0.7151, allocations: 150.5 MB / 0.8113 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009451/0.716, allocations: 16.03 kB / 0.8113 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008041/0.7169, allocations: 168.9 kB / 0.8115 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00201/0.7189, allocations: 485.9 kB / 0.8119 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001923/0.7209, allocations: 0.7972 MB / 0.8127 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00126/0.7221, allocations: 1.195 MB / 0.8139 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008276/0.723, allocations: 0.6026 MB / 0.8145 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005681/0.7236, allocations: 442 kB / 0.8149 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004786/0.724, allocations: 452.1 kB / 0.8153 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000144/0.7242, allocations: 101.5 kB / 0.8154 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008467/0.725, allocations: 476.4 kB / 0.8159 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002393/0.7253, allocations: 265.6 kB / 0.8161 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003577/0.7257, allocations: 0.4905 MB / 0.8166 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001491/0.7272, allocations: 1.481 MB / 0.818 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.7272, allocations: 4 kB / 0.818 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7272, allocations: 0.5625 kB / 0.818 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.384e-05/0.7272, allocations: 0 / 0.818 GB, free: 10.04 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.002076/0.7293, allocations: 1.319 MB / 0.8193 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.7293, allocations: 10.44 kB / 0.8193 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008539/0.7302, allocations: 179 kB / 0.8195 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.7313, allocations: 0.7278 MB / 0.8202 GB, free: 8.523 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.7313, allocations: 65.69 kB / 0.8203 GB, free: 8.496 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.674e-05/0.7314, allocations: 73.84 kB / 0.8204 GB, free: 8.473 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.733, allocations: 0.8615 MB / 0.8212 GB, free: 7.91 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.733, allocations: 2.562 kB / 0.8212 GB, free: 7.91 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.795e-05/0.7331, allocations: 35.56 kB / 0.8212 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.7332, allocations: 19.78 kB / 0.8212 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.7348, allocations: 1.057 MB / 0.8223 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003564/0.7384, allocations: 2.354 MB / 0.8246 GB, free: 5.586 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.7396, allocations: 0.7948 MB / 0.8254 GB, free: 5.137 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004493/0.7401, allocations: 272.7 kB / 0.8256 GB, free: 5 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.572e-05/0.7402, allocations: 36.23 kB / 0.8257 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007449/0.7409, allocations: 420 kB / 0.8261 GB, free: 4.719 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=72): time 2.164e-06/0.741, allocations: 0 / 0.8261 GB, free: 4.719 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72): time 0.002801/0.7438, allocations: 1.076 MB / 0.8271 GB, free: 4.125 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.7439, allocations: 188 kB / 0.8273 GB, free: 3.906 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007205/0.7446, allocations: 0.5935 MB / 0.8279 GB, free: 3.555 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.095e-05/0.7447, allocations: 38.36 kB / 0.8279 GB, free: 3.516 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002878/0.745, allocations: 375.4 kB / 0.8283 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.7452, allocations: 242.5 kB / 0.8285 GB, free: 2.98 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.7454, allocations: 149.1 kB / 0.8286 GB, free: 2.891 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001904/0.7456, allocations: 376.6 kB / 0.829 GB, free: 2.531 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/0.7461, allocations: 236 kB / 0.8292 GB, free: 2.414 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005437/0.7466, allocations: 330.5 kB / 0.8295 GB, free: 2.219 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009897/0.7476, allocations: 0.5444 MB / 0.8301 GB, free: 1.926 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.7476, allocations: 2.531 kB / 0.8301 GB, free: 1.926 MB / 0.5919 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001728/0.7494, allocations: 0.7677 MB / 0.8308 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.7494, allocations: 11.59 kB / 0.8308 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.7494, allocations: 0 / 0.8308 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005611/0.75, allocations: 83.48 kB / 0.8309 GB, free: 1.484 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.7506, allocations: 149.6 kB / 0.831 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002187/0.7528, allocations: 1.632 MB / 0.8326 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006478/0.7534, allocations: 79.8 kB / 0.8327 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.455e-05/0.7535, allocations: 34.91 kB / 0.8327 GB, free: 15.78 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.0004463/0.7539, allocations: 254 kB / 0.833 GB, free: 15.58 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.7541, allocations: 82 kB / 0.8331 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002089/0.7562, allocations: 0.9959 MB / 0.834 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.7562, allocations: 7.781 kB / 0.834 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.7562, allocations: 0 / 0.834 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.7562, allocations: 5.797 kB / 0.8341 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.7592, allocations: 1.849 MB / 0.8359 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.7592, allocations: 0 / 0.8359 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005226/0.7597, allocations: 148.6 kB / 0.836 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004089/0.7601, allocations: 75.83 kB / 0.8361 GB, free: 13.67 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.905e-05/0.7602, allocations: 23.7 kB / 0.8361 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/0.762, allocations: 1.657 MB / 0.8377 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.7621, allocations: 2.625 kB / 0.8377 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.7638, allocations: 0.9149 MB / 0.8386 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/0.7641, allocations: 254.9 kB / 0.8389 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.7642, allocations: 23.41 kB / 0.8389 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005102/0.7647, allocations: 56.02 kB / 0.8389 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.7649, allocations: 58.86 kB / 0.839 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.937e-05/0.7649, allocations: 32.58 kB / 0.839 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005077/0.7655, allocations: 430.5 kB / 0.8394 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7655, allocations: 0 / 0.8394 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008221/0.7663, allocations: 288.3 kB / 0.8397 GB, free: 10.87 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.001338/0.7676, allocations: 0.6073 MB / 0.8403 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001479/0.7691, allocations: 0.749 MB / 0.841 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.7691, allocations: 0 / 0.841 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007954/0.7699, allocations: 0.4928 MB / 0.8415 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.7711, allocations: 282.7 kB / 0.8418 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.7745, allocations: 1.683 MB / 0.8434 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.7751, allocations: 1.001 MB / 0.8444 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.7754, allocations: 111.4 kB / 0.8445 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of SimCode: time 4.61e-07/0.7754, allocations: 0 / 0.8445 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of Templates: time 0.02188/0.7973, allocations: 17.11 MB / 0.8612 GB, free: 6.66 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.makefile make -j1 -f IDEAS_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/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.ZenithAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleFunctions.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.ZenithAngleCalcHelperMain.o] Error 1