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.0007333/0.0007333, allocations: 99.42 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007626/0.0007626, allocations: 187 kB / 16.92 MB, free: 6.75 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.258/1.258, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8838/0.8838, allocations: 135.3 MB / 427.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003022/0.0003022, allocations: 9.531 kB / 0.5082 GB, free: 4.816 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1424, allocations: 82.31 MB / 0.5886 GB, free: 2.68 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth): time 0.004321/0.1468, allocations: 3.796 MB / 0.5923 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.3991/0.546, allocations: 146.7 MB / 0.7355 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008973/0.5469, allocations: 19.59 kB / 0.7356 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007335/0.5476, allocations: 140.8 kB / 0.7357 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001972/0.5496, allocations: 400 kB / 0.7361 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002407/0.5521, allocations: 0.7287 MB / 0.7368 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001905/0.554, allocations: 1.137 MB / 0.7379 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.5552, allocations: 0.6014 MB / 0.7385 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007421/0.5559, allocations: 316 kB / 0.7388 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007491/0.5567, allocations: 348.5 kB / 0.7391 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000211/0.5569, allocations: 21.66 kB / 0.7391 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001237/0.5582, allocations: 392.5 kB / 0.7395 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003319/0.5585, allocations: 170.4 kB / 0.7397 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0008012/0.5593, allocations: 432 kB / 0.7401 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001777/0.5611, allocations: 1.103 MB / 0.7412 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.5611, allocations: 0 / 0.7412 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.234e-06/0.5611, allocations: 0 / 0.7412 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.709e-05/0.5611, allocations: 1.312 kB / 0.7412 GB, free: 12.02 MB / 0.5606 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.002209/0.5634, allocations: 1.152 MB / 0.7423 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.5634, allocations: 14.47 kB / 0.7423 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009097/0.5643, allocations: 186.8 kB / 0.7425 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.5654, allocations: 0.7226 MB / 0.7432 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.379e-05/0.5654, allocations: 60.09 kB / 0.7432 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.5656, allocations: 81.09 kB / 0.7433 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.5672, allocations: 0.9013 MB / 0.7442 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.5672, allocations: 5.312 kB / 0.7442 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.168e-05/0.5673, allocations: 32.25 kB / 0.7442 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.5673, allocations: 20.62 kB / 0.7443 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.569, allocations: 1.109 MB / 0.7453 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004063/0.5731, allocations: 2.568 MB / 0.7478 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.5749, allocations: 0.8674 MB / 0.7487 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004887/0.5754, allocations: 299.8 kB / 0.749 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.459e-05/0.5755, allocations: 35.73 kB / 0.749 GB, free: 7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007622/0.5762, allocations: 444.9 kB / 0.7494 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=76): time 3.006e-06/0.5763, allocations: 0 / 0.7494 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of matching and sorting (n=76): time 0.002892/0.5792, allocations: 1.137 MB / 0.7505 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.5793, allocations: 191.2 kB / 0.7507 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007724/0.5801, allocations: 0.6047 MB / 0.7513 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.322e-05/0.5801, allocations: 40.3 kB / 0.7514 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003517/0.5805, allocations: 379 kB / 0.7517 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000258/0.5808, allocations: 256.3 kB / 0.752 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.05e-05/0.5809, allocations: 61.69 kB / 0.752 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002715/0.5811, allocations: 386.7 kB / 0.7524 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/0.5816, allocations: 253.9 kB / 0.7526 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005645/0.5822, allocations: 339.1 kB / 0.753 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.5834, allocations: 0.5955 MB / 0.7535 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.5834, allocations: 0 / 0.7535 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001888/0.5853, allocations: 0.8215 MB / 0.7543 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.5853, allocations: 4 kB / 0.7543 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.5853, allocations: 0 / 0.7543 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000597/0.5859, allocations: 84.83 kB / 0.7544 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000651/0.5866, allocations: 155.8 kB / 0.7546 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.5887, allocations: 1.534 MB / 0.7561 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000767/0.5895, allocations: 95.34 kB / 0.7562 GB, free: 412 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.561e-05/0.5896, allocations: 40.03 kB / 0.7562 GB, free: 372 kB / 0.5606 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.0005584/0.5901, allocations: 250.4 kB / 0.7564 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.5903, allocations: 86.84 kB / 0.7565 GB, free: 24 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002467/0.5927, allocations: 1.061 MB / 0.7576 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.5928, allocations: 12 kB / 0.7576 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.5928, allocations: 0.875 kB / 0.7576 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.5928, allocations: 3.984 kB / 0.7576 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003169/0.596, allocations: 1.936 MB / 0.7595 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.596, allocations: 3.938 kB / 0.7595 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000598/0.5966, allocations: 159.8 kB / 0.7596 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005034/0.5971, allocations: 88.75 kB / 0.7597 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.126e-05/0.5972, allocations: 25.8 kB / 0.7597 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00177/0.5989, allocations: 1.544 MB / 0.7612 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.599, allocations: 4.109 kB / 0.7612 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.6009, allocations: 0.9687 MB / 0.7622 GB, free: 9.996 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.6013, allocations: 283.6 kB / 0.7625 GB, free: 9.699 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.6014, allocations: 20 kB / 0.7625 GB, free: 9.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006036/0.602, allocations: 75.81 kB / 0.7625 GB, free: 9.605 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.6021, allocations: 64.91 kB / 0.7626 GB, free: 9.543 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-05/0.6022, allocations: 31.98 kB / 0.7626 GB, free: 9.512 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005692/0.6028, allocations: 435 kB / 0.7631 GB, free: 9.094 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6028, allocations: 4 kB / 0.7631 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009665/0.6038, allocations: 303.2 kB / 0.7633 GB, free: 8.793 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.001371/0.6052, allocations: 0.6223 MB / 0.764 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001554/0.6067, allocations: 0.796 MB / 0.7647 GB, free: 7.555 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.6067, allocations: 0 / 0.7647 GB, free: 7.555 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008712/0.6076, allocations: 0.512 MB / 0.7652 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001263/0.6089, allocations: 254.9 kB / 0.7655 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/0.6131, allocations: 2.231 MB / 0.7677 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/0.6137, allocations: 1.016 MB / 0.7686 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.6141, allocations: 115.4 kB / 0.7688 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of SimCode: time 1.022e-06/0.6141, allocations: 0 / 0.7688 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of Templates: time 0.0238/0.6379, allocations: 17.52 MB / 0.7859 GB, free: 1.895 MB / 0.5919 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++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.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