Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 106.4 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.001247/0.001247, allocations: 191.6 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.383/1.383, 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/package.mo): time 0.8334/0.8334, allocations: 132.2 MB / 423.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 67.91 kB / 0.5024 GB, free: 11.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3488, allocations: 80.18 MB / 0.5807 GB, free: 27.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.005186/0.3541, allocations: 4.119 MB / 0.5848 GB, free: 24.04 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1532/0.5073, allocations: 150.5 MB / 0.7317 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007494/0.5081, allocations: 15.94 kB / 0.7317 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005121/0.5087, allocations: 170.4 kB / 0.7319 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001483/0.5102, allocations: 484.6 kB / 0.7323 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001902/0.5121, allocations: 0.7898 MB / 0.7331 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001067/0.5132, allocations: 1.184 MB / 0.7343 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008445/0.514, allocations: 0.606 MB / 0.7348 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004515/0.5145, allocations: 434.5 kB / 0.7353 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004971/0.515, allocations: 456.2 kB / 0.7357 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.5152, allocations: 100 kB / 0.7358 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007297/0.5159, allocations: 447.7 kB / 0.7362 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002512/0.5162, allocations: 271.1 kB / 0.7365 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004284/0.5166, allocations: 0.4896 MB / 0.737 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00147/0.5181, allocations: 1.441 MB / 0.7384 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.5181, allocations: 0 / 0.7384 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5181, allocations: 3.938 kB / 0.7384 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.241e-05/0.5181, allocations: 0 / 0.7384 GB, free: 12.29 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.002151/0.5203, allocations: 1.326 MB / 0.7397 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.5203, allocations: 8.031 kB / 0.7397 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009135/0.5212, allocations: 179.5 kB / 0.7398 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009478/0.5222, allocations: 0.6956 MB / 0.7405 GB, free: 9.996 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.926e-05/0.5223, allocations: 65.94 kB / 0.7406 GB, free: 9.934 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.775e-05/0.5224, allocations: 72 kB / 0.7407 GB, free: 9.863 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.5238, allocations: 0.8637 MB / 0.7415 GB, free: 8.957 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.5239, allocations: 3.938 kB / 0.7415 GB, free: 8.953 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.458e-05/0.5239, allocations: 32 kB / 0.7415 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.524, allocations: 20 kB / 0.7416 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.5257, allocations: 1.073 MB / 0.7426 GB, free: 7.828 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003525/0.5292, allocations: 2.367 MB / 0.7449 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/0.5306, allocations: 0.7968 MB / 0.7457 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004928/0.5311, allocations: 270.4 kB / 0.7459 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.532e-05/0.5312, allocations: 40.58 kB / 0.746 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007712/0.532, allocations: 423.1 kB / 0.7464 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=72): time 1.904e-06/0.532, allocations: 0 / 0.7464 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.00301/0.535, allocations: 1.077 MB / 0.7474 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.5352, allocations: 196.5 kB / 0.7476 GB, free: 2.48 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007101/0.5359, allocations: 0.5861 MB / 0.7482 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.489e-05/0.5359, allocations: 37.7 kB / 0.7482 GB, free: 1.848 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002708/0.5362, allocations: 372.3 kB / 0.7486 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.5364, allocations: 244.5 kB / 0.7488 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.5366, allocations: 158.5 kB / 0.749 GB, free: 1.074 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002214/0.5369, allocations: 378.8 kB / 0.7493 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000478/0.5374, allocations: 229.9 kB / 0.7496 GB, free: 484 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005958/0.538, allocations: 330.8 kB / 0.7499 GB, free: 136 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2488/0.7868, allocations: 0.5434 MB / 0.7504 GB, free: 166.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.7868, allocations: 3.75 kB / 0.7504 GB, free: 166.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002041/0.7888, allocations: 0.7601 MB / 0.7511 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.7889, allocations: 6.75 kB / 0.7512 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.7889, allocations: 1.672 kB / 0.7512 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006536/0.7895, allocations: 85.91 kB / 0.7512 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006485/0.7902, allocations: 151.4 kB / 0.7514 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/0.7921, allocations: 1.624 MB / 0.753 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006406/0.7927, allocations: 79.91 kB / 0.753 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.309e-05/0.7928, allocations: 37.72 kB / 0.7531 GB, free: 165.1 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 (83): * Single equations (assignments): 82 * 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.0003929/0.7932, allocations: 260.7 kB / 0.7533 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.7933, allocations: 75.78 kB / 0.7534 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002428/0.7958, allocations: 0.9925 MB / 0.7544 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-05/0.7958, allocations: 9.438 kB / 0.7544 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.7959, allocations: 5.812 kB / 0.7544 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.7959, allocations: 8.578 kB / 0.7544 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003142/0.799, allocations: 1.855 MB / 0.7562 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.799, allocations: 0 / 0.7562 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006094/0.7996, allocations: 145.4 kB / 0.7563 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004448/0.8001, allocations: 71.5 kB / 0.7564 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/0.8002, allocations: 21.44 kB / 0.7564 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001659/0.8018, allocations: 1.654 MB / 0.758 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.8018, allocations: 2.688 kB / 0.758 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.8038, allocations: 0.9189 MB / 0.7589 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002983/0.8042, allocations: 252.9 kB / 0.7592 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.8043, allocations: 18.03 kB / 0.7592 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005559/0.8048, allocations: 54.64 kB / 0.7593 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.805, allocations: 64.92 kB / 0.7593 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.666e-05/0.8051, allocations: 29.62 kB / 0.7593 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004631/0.8056, allocations: 428.4 kB / 0.7598 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.1e-08/0.8056, allocations: 4.188 kB / 0.7598 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007725/0.8063, allocations: 293.5 kB / 0.76 GB, free: 161.1 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 (86): * Single equations (assignments): 83 * 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.001277/0.8076, allocations: 0.5981 MB / 0.7606 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001991/0.8096, allocations: 0.9481 MB / 0.7615 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.8097, allocations: 1.562 kB / 0.7616 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007998/0.8105, allocations: 488.9 kB / 0.762 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.8116, allocations: 285.9 kB / 0.7623 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003279/0.8149, allocations: 1.713 MB / 0.764 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.8153, allocations: 0.9985 MB / 0.7649 GB, free: 158.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.8156, allocations: 113.7 kB / 0.765 GB, free: 158.3 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/0.8156, allocations: 0 / 0.765 GB, free: 158.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.01571/0.8313, allocations: 17.02 MB / 0.7817 GB, free: 142.9 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.o] Error 1