Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth.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.SolarAzimuth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 107.6 kB / 16.27 MB, free: 6.414 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.001466/0.001466, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.323/1.323, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8213/0.8213, allocations: 135.2 MB / 426.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 67.89 kB / 0.506 GB, free: 8.281 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3551, allocations: 80.92 MB / 0.5851 GB, free: 25.19 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth): time 0.005242/0.3604, allocations: 4.206 MB / 0.5892 GB, free: 21.89 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1648/0.5252, allocations: 150.6 MB / 0.7362 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007157/0.5259, allocations: 19.88 kB / 0.7362 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000499/0.5265, allocations: 170.4 kB / 0.7364 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001493/0.528, allocations: 485.5 kB / 0.7368 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.5298, allocations: 0.8312 MB / 0.7377 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001215/0.531, allocations: 1.211 MB / 0.7388 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008676/0.5319, allocations: 0.6407 MB / 0.7395 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005752/0.5325, allocations: 442.4 kB / 0.7399 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005489/0.5331, allocations: 469.9 kB / 0.7403 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001543/0.5332, allocations: 108 kB / 0.7404 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008684/0.5341, allocations: 471.6 kB / 0.7409 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000268/0.5344, allocations: 279.1 kB / 0.7411 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004571/0.5348, allocations: 0.509 MB / 0.7416 GB, free: 9.617 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001643/0.5365, allocations: 1.507 MB / 0.7431 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.5365, allocations: 0 / 0.7431 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5365, allocations: 0 / 0.7431 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.314e-05/0.5365, allocations: 0 / 0.7431 GB, free: 8.105 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: 210 * Number of variables: 210 Notification: Performance of Generate backend data structure: time 0.002179/0.5387, allocations: 1.361 MB / 0.7444 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.5388, allocations: 9.109 kB / 0.7445 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008933/0.5397, allocations: 191.4 kB / 0.7446 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000973/0.5406, allocations: 0.7072 MB / 0.7453 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.986e-05/0.5407, allocations: 62 kB / 0.7454 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.5408, allocations: 80 kB / 0.7455 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.5423, allocations: 0.895 MB / 0.7463 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.5423, allocations: 0 / 0.7463 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.902e-05/0.5424, allocations: 39.94 kB / 0.7464 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.5424, allocations: 20 kB / 0.7464 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.5442, allocations: 1.104 MB / 0.7475 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003876/0.548, allocations: 2.523 MB / 0.7499 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/0.5499, allocations: 0.8734 MB / 0.7508 GB, free: 16 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2385/0.7884, allocations: 288.5 kB / 0.7511 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.295e-05/0.7885, allocations: 29.94 kB / 0.7511 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009205/0.7895, allocations: 443.8 kB / 0.7515 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=76): time 2.374e-06/0.7895, allocations: 1.125 kB / 0.7515 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=76): time 0.0031/0.7926, allocations: 1.121 MB / 0.7526 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.7927, allocations: 190.1 kB / 0.7528 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007863/0.7934, allocations: 0.5996 MB / 0.7534 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.925e-05/0.7935, allocations: 41.92 kB / 0.7534 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/0.7938, allocations: 377.8 kB / 0.7538 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.7939, allocations: 254.9 kB / 0.754 GB, free: 164 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/0.7942, allocations: 159.2 kB / 0.7542 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.7943, allocations: 382.7 kB / 0.7545 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.7948, allocations: 249.3 kB / 0.7548 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005916/0.7954, allocations: 344.1 kB / 0.7551 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.7965, allocations: 0.5797 MB / 0.7557 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.7965, allocations: 0 / 0.7557 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001974/0.7985, allocations: 0.8134 MB / 0.7565 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.7985, allocations: 6.688 kB / 0.7565 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.7985, allocations: 1.094 kB / 0.7565 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000593/0.7991, allocations: 90.89 kB / 0.7566 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000638/0.7998, allocations: 156.9 kB / 0.7567 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/0.8016, allocations: 1.623 MB / 0.7583 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006931/0.8023, allocations: 90.25 kB / 0.7584 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.13e-05/0.8024, allocations: 37.64 kB / 0.7584 GB, free: 161.2 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: 9 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,solAzi.outsidePolarCircle,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 (88): * Single equations (assignments): 87 * 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.0004323/0.8029, allocations: 263 kB / 0.7587 GB, free: 161 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.8031, allocations: 76.41 kB / 0.7587 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002496/0.8056, allocations: 1.057 MB / 0.7598 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.8056, allocations: 11.88 kB / 0.7598 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.8056, allocations: 1.5 kB / 0.7598 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.8056, allocations: 5.953 kB / 0.7598 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002884/0.8085, allocations: 1.926 MB / 0.7617 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.8085, allocations: 5.641 kB / 0.7617 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005567/0.8091, allocations: 158.3 kB / 0.7618 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004079/0.8095, allocations: 71.78 kB / 0.7619 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/0.8095, allocations: 24.23 kB / 0.7619 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.811, allocations: 1.666 MB / 0.7635 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.811, allocations: 1.062 kB / 0.7635 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.8128, allocations: 0.9594 MB / 0.7645 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.8131, allocations: 263 kB / 0.7647 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.8132, allocations: 17.66 kB / 0.7648 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005459/0.8137, allocations: 62 kB / 0.7648 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.8139, allocations: 66.81 kB / 0.7649 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.284e-05/0.8139, allocations: 30.11 kB / 0.7649 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004167/0.8143, allocations: 432.5 kB / 0.7653 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8144, allocations: 7.844 kB / 0.7653 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007616/0.8151, allocations: 317.1 kB / 0.7656 GB, free: 156.5 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 (93): * Single equations (assignments): 90 * 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.001683/0.8168, allocations: 0.602 MB / 0.7662 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002003/0.8188, allocations: 1.01 MB / 0.7672 GB, free: 155.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.8188, allocations: 0 / 0.7672 GB, free: 155.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007046/0.8195, allocations: 0.5108 MB / 0.7677 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.8206, allocations: 294.1 kB / 0.768 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003101/0.8237, allocations: 1.762 MB / 0.7697 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.8241, allocations: 1.012 MB / 0.7707 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002541/0.8244, allocations: 123.4 kB / 0.7708 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of SimCode: time 4.51e-07/0.8244, allocations: 0 / 0.7708 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.01712/0.8415, allocations: 17.64 MB / 0.788 GB, free: 134.1 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth.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.SolarAzimuthCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuthCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuthCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuthFunctions.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.SolarAzimuthCalcHelperMain.o] Error 1