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.008795/0.008796, allocations: 101 kB / 15.87 MB, free: 5.871 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.001987/0.001987, allocations: 192.1 kB / 16.79 MB, free: 5.816 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.445/1.445, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9667/0.9667, allocations: 135.1 MB / 425.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 64.47 kB / 0.5053 GB, free: 5.723 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2003/0.2016, allocations: 80.92 MB / 0.5843 GB, free: 4.969 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth): time 0.006116/0.2077, allocations: 4.208 MB / 0.5885 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5666/0.7743, allocations: 148.3 MB / 0.7332 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001463/0.7759, allocations: 15.69 kB / 0.7333 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.7771, allocations: 140.8 kB / 0.7334 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002774/0.7799, allocations: 402.7 kB / 0.7338 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002949/0.7829, allocations: 0.7158 MB / 0.7345 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002458/0.7854, allocations: 1.142 MB / 0.7356 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001551/0.7869, allocations: 0.607 MB / 0.7362 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.7881, allocations: 397.5 kB / 0.7366 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.7892, allocations: 445.4 kB / 0.737 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004019/0.7897, allocations: 54.09 kB / 0.737 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.7913, allocations: 419.4 kB / 0.7374 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0005455/0.7919, allocations: 224 kB / 0.7377 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.793, allocations: 467.1 kB / 0.7381 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002027/0.795, allocations: 1.127 MB / 0.7392 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.795, allocations: 0 / 0.7392 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.362e-06/0.795, allocations: 0 / 0.7392 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.98e-05/0.7951, allocations: 0 / 0.7392 GB, free: 11.07 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.004069/0.7992, allocations: 1.371 MB / 0.7405 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.7993, allocations: 10.66 kB / 0.7405 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001248/0.8005, allocations: 179.7 kB / 0.7407 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.8018, allocations: 0.7085 MB / 0.7414 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/0.8018, allocations: 63.91 kB / 0.7415 GB, free: 9.285 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.802, allocations: 80.25 kB / 0.7415 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.8037, allocations: 0.9011 MB / 0.7424 GB, free: 8.672 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.8038, allocations: 0.8125 kB / 0.7424 GB, free: 8.672 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-05/0.8039, allocations: 37.34 kB / 0.7425 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.514e-05/0.8039, allocations: 20.31 kB / 0.7425 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.8057, allocations: 1.095 MB / 0.7436 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004343/0.8101, allocations: 2.526 MB / 0.746 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.812, allocations: 0.8693 MB / 0.7469 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/0.8125, allocations: 292.4 kB / 0.7471 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.092e-05/0.8126, allocations: 39.69 kB / 0.7472 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009187/0.8135, allocations: 448.7 kB / 0.7476 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=76): time 2.916e-06/0.8135, allocations: 0 / 0.7476 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of matching and sorting (n=76): time 0.003163/0.8167, allocations: 1.115 MB / 0.7487 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.8168, allocations: 192.6 kB / 0.7489 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000851/0.8177, allocations: 0.5978 MB / 0.7495 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.389e-05/0.8178, allocations: 41.7 kB / 0.7495 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/0.8181, allocations: 384.3 kB / 0.7499 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.8184, allocations: 248.4 kB / 0.7501 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002505/0.8186, allocations: 162.5 kB / 0.7503 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.8188, allocations: 382.7 kB / 0.7506 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004739/0.8193, allocations: 253.8 kB / 0.7509 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005956/0.8199, allocations: 343.1 kB / 0.7512 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.8209, allocations: 0.5829 MB / 0.7518 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.8209, allocations: 7.938 kB / 0.7518 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001927/0.8229, allocations: 0.8098 MB / 0.7526 GB, free: 488 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.8229, allocations: 4 kB / 0.7526 GB, free: 484 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.8229, allocations: 4 kB / 0.7526 GB, free: 480 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006104/0.8235, allocations: 76.84 kB / 0.7527 GB, free: 400 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006362/0.8242, allocations: 159.7 kB / 0.7528 GB, free: 240 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.8263, allocations: 1.516 MB / 0.7543 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007957/0.8271, allocations: 87.36 kB / 0.7544 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/0.8272, allocations: 35.97 kB / 0.7544 GB, free: 14.46 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.000546/0.8277, allocations: 258.4 kB / 0.7546 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.8279, allocations: 79 kB / 0.7547 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002452/0.8304, allocations: 1.058 MB / 0.7558 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.8304, allocations: 9.219 kB / 0.7558 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.8304, allocations: 0 / 0.7558 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.8304, allocations: 3.984 kB / 0.7558 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003275/0.8337, allocations: 1.93 MB / 0.7577 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.8337, allocations: 3.984 kB / 0.7577 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006105/0.8343, allocations: 166.4 kB / 0.7578 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005148/0.8349, allocations: 84.77 kB / 0.7579 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-05/0.8349, allocations: 23.98 kB / 0.7579 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.8368, allocations: 1.536 MB / 0.7594 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.8368, allocations: 0 / 0.7594 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00197/0.8388, allocations: 0.9531 MB / 0.7604 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003924/0.8392, allocations: 271.7 kB / 0.7606 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.8394, allocations: 16 kB / 0.7606 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005906/0.84, allocations: 62.31 kB / 0.7607 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.8401, allocations: 68.84 kB / 0.7608 GB, free: 7.707 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.089e-05/0.8402, allocations: 31.97 kB / 0.7608 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005878/0.8408, allocations: 439 kB / 0.7612 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.663e-06/0.8408, allocations: 0 / 0.7612 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001038/0.8418, allocations: 303.3 kB / 0.7615 GB, free: 6.957 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.001516/0.8434, allocations: 0.6156 MB / 0.7621 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00166/0.845, allocations: 0.792 MB / 0.7629 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.845, allocations: 0 / 0.7629 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008507/0.8459, allocations: 0.508 MB / 0.7634 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.8471, allocations: 266.9 kB / 0.7636 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004121/0.8512, allocations: 2.16 MB / 0.7657 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005939/0.8518, allocations: 1.016 MB / 0.7667 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003485/0.8522, allocations: 119.4 kB / 0.7668 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of SimCode: time 9.72e-07/0.8522, allocations: 0 / 0.7668 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of Templates: time 0.02548/0.8777, allocations: 17.63 MB / 0.784 GB, free: 28 kB / 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