Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.AltitudeAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009143/0.0009145, allocations: 97.78 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.001015/0.001015, allocations: 185.3 kB / 16.92 MB, free: 6.688 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.266/1.266, 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.9279/0.9279, allocations: 135.3 MB / 427.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003281, allocations: 8 kB / 0.5082 GB, free: 4.734 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.163, allocations: 82.29 MB / 0.5886 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.004547/0.1676, allocations: 3.741 MB / 0.5923 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4047/0.5723, allocations: 146.6 MB / 0.7354 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004919/0.5728, allocations: 15.16 kB / 0.7354 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000435/0.5732, allocations: 137.5 kB / 0.7355 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001165/0.5744, allocations: 396.2 kB / 0.7359 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.5762, allocations: 0.6922 MB / 0.7366 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00114/0.5773, allocations: 1.111 MB / 0.7377 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007846/0.5781, allocations: 0.5692 MB / 0.7382 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004521/0.5786, allocations: 305.8 kB / 0.7385 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003999/0.579, allocations: 342.4 kB / 0.7389 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.801e-05/0.5791, allocations: 21.59 kB / 0.7389 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007624/0.5798, allocations: 359.5 kB / 0.7392 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.58, allocations: 173.1 kB / 0.7394 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003554/0.5804, allocations: 417.3 kB / 0.7398 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.5814, allocations: 1.068 MB / 0.7408 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.5814, allocations: 0 / 0.7408 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5814, allocations: 0 / 0.7408 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.184e-05/0.5814, allocations: 0 / 0.7408 GB, free: 12.18 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.001844/0.5833, allocations: 1.136 MB / 0.7419 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.5833, allocations: 8.906 kB / 0.7419 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008411/0.5842, allocations: 187.6 kB / 0.7421 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008939/0.5851, allocations: 0.704 MB / 0.7428 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.971e-05/0.5851, allocations: 62.5 kB / 0.7429 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.531e-05/0.5852, allocations: 76.19 kB / 0.7429 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.5866, allocations: 0.8689 MB / 0.7438 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.5867, allocations: 0 / 0.7438 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.979e-05/0.5867, allocations: 36.56 kB / 0.7438 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.5868, allocations: 19.28 kB / 0.7438 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.5884, allocations: 1.088 MB / 0.7449 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003463/0.5919, allocations: 2.405 MB / 0.7472 GB, free: 8.023 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.5931, allocations: 0.8129 MB / 0.748 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004432/0.5935, allocations: 281.2 kB / 0.7483 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 6.934e-05/0.5936, allocations: 32.89 kB / 0.7483 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007175/0.5943, allocations: 435.5 kB / 0.7488 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=73): time 2.014e-06/0.5943, allocations: 0 / 0.7488 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73): time 0.002689/0.597, allocations: 1.091 MB / 0.7498 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.5971, allocations: 196.9 kB / 0.75 GB, free: 6.32 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000685/0.5978, allocations: 0.5898 MB / 0.7506 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.251e-05/0.5979, allocations: 41.27 kB / 0.7506 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000272/0.5982, allocations: 382.7 kB / 0.751 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.5984, allocations: 236.9 kB / 0.7512 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.65e-05/0.5985, allocations: 64.59 kB / 0.7513 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.5986, allocations: 378.2 kB / 0.7516 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/0.5991, allocations: 240.8 kB / 0.7519 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000538/0.5996, allocations: 336.5 kB / 0.7522 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009646/0.6006, allocations: 0.569 MB / 0.7527 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.6006, allocations: 7.938 kB / 0.7528 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001722/0.6023, allocations: 0.7981 MB / 0.7535 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.6024, allocations: 4 kB / 0.7535 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.6024, allocations: 0 / 0.7535 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005817/0.603, allocations: 84.91 kB / 0.7536 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000601/0.6036, allocations: 147.8 kB / 0.7538 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001901/0.6055, allocations: 1.529 MB / 0.7553 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006548/0.6061, allocations: 87.41 kB / 0.7553 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.294e-05/0.6062, allocations: 40.03 kB / 0.7554 GB, free: 1.141 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (85): * Single equations (assignments): 84 * 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.0004041/0.6066, allocations: 253.8 kB / 0.7556 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.6067, allocations: 75.16 kB / 0.7557 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002203/0.609, allocations: 1.01 MB / 0.7567 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.864e-06/0.609, allocations: 8 kB / 0.7567 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.609, allocations: 2 kB / 0.7567 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.609, allocations: 7.984 kB / 0.7567 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002992/0.612, allocations: 1.869 MB / 0.7585 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.612, allocations: 0 / 0.7585 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005635/0.6126, allocations: 147.8 kB / 0.7587 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005031/0.6131, allocations: 84.77 kB / 0.7587 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.887e-05/0.6132, allocations: 27.92 kB / 0.7588 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.6149, allocations: 1.552 MB / 0.7603 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.6149, allocations: 0 / 0.7603 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.6167, allocations: 0.9335 MB / 0.7612 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003421/0.617, allocations: 271.8 kB / 0.7615 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.683e-05/0.6171, allocations: 16 kB / 0.7615 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005661/0.6177, allocations: 59.95 kB / 0.7615 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.6178, allocations: 68.91 kB / 0.7616 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.113e-05/0.6179, allocations: 31.92 kB / 0.7616 GB, free: 10.49 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005125/0.6184, allocations: 427 kB / 0.762 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6184, allocations: 0 / 0.762 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000816/0.6193, allocations: 295.2 kB / 0.7623 GB, free: 9.789 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 (87): * Single equations (assignments): 84 * 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.001236/0.6205, allocations: 0.5944 MB / 0.7629 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001495/0.622, allocations: 0.7719 MB / 0.7636 GB, free: 8.609 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.622, allocations: 4.25 kB / 0.7636 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008139/0.6229, allocations: 0.489 MB / 0.7641 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.6241, allocations: 256.2 kB / 0.7644 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003852/0.628, allocations: 2.163 MB / 0.7665 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005471/0.6285, allocations: 0.9996 MB / 0.7675 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002821/0.6288, allocations: 107.4 kB / 0.7676 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of SimCode: time 4.1e-07/0.6288, allocations: 0 / 0.7676 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of Templates: time 0.02148/0.6503, allocations: 16.97 MB / 0.7841 GB, free: 3.609 MB / 0.5919 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.AltitudeAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleFunctions.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.AltitudeAngleCalcHelperMain.o] Error 1