Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.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-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.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 105.1 kB / 16.27 MB, free: 6.398 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.001136/0.001136, allocations: 191.8 kB / 17.2 MB, free: 5.969 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.304/1.304, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8129/0.8129, allocations: 135.2 MB / 426.2 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 55.91 kB / 0.506 GB, free: 8.324 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3529, allocations: 80.92 MB / 0.585 GB, free: 25.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.005254/0.3582, allocations: 4.076 MB / 0.589 GB, free: 22.12 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1725/0.5308, allocations: 150.4 MB / 0.7359 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008922/0.5317, allocations: 11.94 kB / 0.736 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005498/0.5323, allocations: 170.5 kB / 0.7361 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001513/0.5338, allocations: 476.7 kB / 0.7366 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.5357, allocations: 0.7823 MB / 0.7373 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001229/0.5369, allocations: 1.164 MB / 0.7385 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008969/0.5378, allocations: 0.6136 MB / 0.7391 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005462/0.5384, allocations: 426.5 kB / 0.7395 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005149/0.5389, allocations: 438.1 kB / 0.7399 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.539, allocations: 104 kB / 0.74 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008842/0.5399, allocations: 455.6 kB / 0.7404 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000276/0.5402, allocations: 263.1 kB / 0.7407 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004537/0.5407, allocations: 0.4935 MB / 0.7412 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.5423, allocations: 1.449 MB / 0.7426 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.5423, allocations: 3.984 kB / 0.7426 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5424, allocations: 4 kB / 0.7426 GB, free: 8.676 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.226e-05/0.5424, allocations: 0 / 0.7426 GB, free: 8.676 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.002249/0.5446, allocations: 1.307 MB / 0.7439 GB, free: 7.316 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.5447, allocations: 17.03 kB / 0.7439 GB, free: 7.301 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000937/0.5456, allocations: 171.5 kB / 0.744 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.5467, allocations: 0.7111 MB / 0.7447 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.401e-05/0.5468, allocations: 61.94 kB / 0.7448 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.5469, allocations: 76 kB / 0.7449 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.5484, allocations: 0.8598 MB / 0.7457 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.5484, allocations: 0 / 0.7457 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.791e-05/0.5485, allocations: 32 kB / 0.7457 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.5485, allocations: 16 kB / 0.7458 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001726/0.5502, allocations: 1.061 MB / 0.7468 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003649/0.5539, allocations: 2.375 MB / 0.7491 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.5553, allocations: 0.7976 MB / 0.7499 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005008/0.5558, allocations: 276.1 kB / 0.7502 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.229e-05/0.5559, allocations: 32.45 kB / 0.7502 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007752/0.5567, allocations: 417.8 kB / 0.7506 GB, free: 248 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=70): time 1.814e-06/0.5567, allocations: 4 kB / 0.7506 GB, free: 244 kB / 0.5762 GB Notification: Performance of matching and sorting (n=70): time 0.2531/0.8098, allocations: 1.056 MB / 0.7516 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.8099, allocations: 194.7 kB / 0.7518 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000758/0.8107, allocations: 0.581 MB / 0.7524 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.931e-05/0.8107, allocations: 41.23 kB / 0.7524 GB, free: 165 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.811, allocations: 371.3 kB / 0.7528 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.8111, allocations: 228.2 kB / 0.753 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.8113, allocations: 148.2 kB / 0.7531 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.8114, allocations: 380.6 kB / 0.7535 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.8119, allocations: 234.6 kB / 0.7537 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005176/0.8124, allocations: 326.1 kB / 0.754 GB, free: 164 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009788/0.8134, allocations: 0.5498 MB / 0.7546 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.8134, allocations: 4.25 kB / 0.7546 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00171/0.8151, allocations: 0.7606 MB / 0.7553 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.8151, allocations: 7.203 kB / 0.7553 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.8152, allocations: 2.375 kB / 0.7553 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005986/0.8158, allocations: 82.94 kB / 0.7554 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005993/0.8164, allocations: 140.1 kB / 0.7555 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/0.8182, allocations: 1.657 MB / 0.7571 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005605/0.8188, allocations: 73.94 kB / 0.7572 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.079e-05/0.8189, allocations: 35.34 kB / 0.7573 GB, free: 161.8 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: 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 (81): * Single equations (assignments): 80 * 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.0003423/0.8192, allocations: 254.7 kB / 0.7575 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.8193, allocations: 78.31 kB / 0.7576 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/0.8216, allocations: 0.9609 MB / 0.7585 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/0.8216, allocations: 8.344 kB / 0.7585 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.8216, allocations: 6.969 kB / 0.7585 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.8216, allocations: 3.031 kB / 0.7585 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003048/0.8247, allocations: 1.84 MB / 0.7603 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.8247, allocations: 0 / 0.7603 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000489/0.8252, allocations: 137.4 kB / 0.7605 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004336/0.8256, allocations: 70.55 kB / 0.7605 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.502e-05/0.8257, allocations: 23.42 kB / 0.7605 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.8272, allocations: 1.667 MB / 0.7622 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.8273, allocations: 10.23 kB / 0.7622 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.8288, allocations: 0.8909 MB / 0.7631 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002347/0.8291, allocations: 262.5 kB / 0.7633 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.605e-05/0.8292, allocations: 14.97 kB / 0.7633 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005047/0.8297, allocations: 53.08 kB / 0.7634 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.8298, allocations: 65 kB / 0.7634 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/0.8299, allocations: 28.27 kB / 0.7635 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004368/0.8303, allocations: 424.2 kB / 0.7639 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8303, allocations: 0 / 0.7639 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007949/0.8311, allocations: 281.8 kB / 0.7641 GB, free: 157.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 (81): * Single equations (assignments): 78 * 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.001742/0.8329, allocations: 0.6022 MB / 0.7647 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001768/0.8347, allocations: 0.9291 MB / 0.7656 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.8347, allocations: 1.219 kB / 0.7656 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006897/0.8354, allocations: 488.3 kB / 0.7661 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.8364, allocations: 276.9 kB / 0.7664 GB, free: 156.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.8394, allocations: 1.687 MB / 0.768 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.8397, allocations: 0.9946 MB / 0.769 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.8399, allocations: 103.4 kB / 0.7691 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of SimCode: time 4.41e-07/0.8399, allocations: 0 / 0.7691 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.01653/0.8565, allocations: 16.98 MB / 0.7857 GB, free: 136.8 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.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-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.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleFunctions.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.Examples.ZenithAngleCalcHelperMain.o] Error 1