Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.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.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001304, allocations: 103.5 kB / 16.27 MB, free: 6.418 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.001228/0.001228, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.308/1.308, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8142/0.8142, allocations: 135.2 MB / 426.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.89 kB / 0.506 GB, free: 8.395 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3499, allocations: 80.91 MB / 0.5851 GB, free: 25.26 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.005368/0.3553, allocations: 4.171 MB / 0.5891 GB, free: 21.99 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1749/0.5303, allocations: 150.6 MB / 0.7362 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000902/0.5312, allocations: 19.88 kB / 0.7363 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005757/0.5318, allocations: 166.5 kB / 0.7364 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001777/0.5336, allocations: 499.7 kB / 0.7369 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001926/0.5355, allocations: 0.794 MB / 0.7377 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001486/0.537, allocations: 1.211 MB / 0.7388 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009131/0.538, allocations: 0.6178 MB / 0.7395 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006551/0.5386, allocations: 446.3 kB / 0.7399 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005657/0.5392, allocations: 465.9 kB / 0.7403 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001571/0.5394, allocations: 104 kB / 0.7404 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009625/0.5403, allocations: 447.6 kB / 0.7408 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003028/0.5407, allocations: 271.1 kB / 0.7411 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005123/0.5412, allocations: 0.5051 MB / 0.7416 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001866/0.5431, allocations: 1.46 MB / 0.743 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.5431, allocations: 4 kB / 0.743 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.462e-06/0.5431, allocations: 0 / 0.743 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.423e-05/0.5431, allocations: 0 / 0.743 GB, free: 8.242 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.002375/0.5455, allocations: 1.334 MB / 0.7443 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.5455, allocations: 17.11 kB / 0.7443 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000901/0.5464, allocations: 175.5 kB / 0.7445 GB, free: 6.668 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.5475, allocations: 0.7188 MB / 0.7452 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.543e-05/0.5476, allocations: 58 kB / 0.7453 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.5477, allocations: 84 kB / 0.7454 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.5492, allocations: 0.8911 MB / 0.7462 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.5493, allocations: 0 / 0.7462 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.087e-05/0.5493, allocations: 32 kB / 0.7463 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.5494, allocations: 20 kB / 0.7463 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001802/0.5512, allocations: 1.097 MB / 0.7473 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004199/0.5554, allocations: 2.507 MB / 0.7498 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.5568, allocations: 0.7335 MB / 0.7505 GB, free: 380 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005178/0.5574, allocations: 286.7 kB / 0.7508 GB, free: 92 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.227e-05/0.5575, allocations: 36.59 kB / 0.7508 GB, free: 56 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2629/0.8204, allocations: 438 kB / 0.7512 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=76): time 2.956e-06/0.8204, allocations: 0 / 0.7512 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=76): time 0.003051/0.8235, allocations: 1.113 MB / 0.7523 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.8235, allocations: 193.2 kB / 0.7525 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007014/0.8243, allocations: 0.5935 MB / 0.7531 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.445e-05/0.8243, allocations: 44.8 kB / 0.7531 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.8246, allocations: 381.3 kB / 0.7535 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.8247, allocations: 250.4 kB / 0.7537 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/0.825, allocations: 158.2 kB / 0.7539 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.763e-05/0.8251, allocations: 386.3 kB / 0.7543 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004919/0.8256, allocations: 254 kB / 0.7545 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005815/0.8261, allocations: 344.5 kB / 0.7548 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.8272, allocations: 0.5845 MB / 0.7554 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.8272, allocations: 0.5 kB / 0.7554 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001922/0.8291, allocations: 0.8158 MB / 0.7562 GB, free: 163 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.8292, allocations: 7.906 kB / 0.7562 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.8292, allocations: 3.438 kB / 0.7562 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005919/0.8298, allocations: 81.52 kB / 0.7563 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/0.8304, allocations: 156.2 kB / 0.7564 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/0.8322, allocations: 1.637 MB / 0.758 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006063/0.8329, allocations: 81.73 kB / 0.7581 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.73e-05/0.8329, allocations: 40.19 kB / 0.7581 GB, free: 161.4 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 (89): * Single equations (assignments): 88 * 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.0003907/0.8333, allocations: 255 kB / 0.7584 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.8335, allocations: 77.98 kB / 0.7585 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002404/0.8359, allocations: 1.031 MB / 0.7595 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.8359, allocations: 8.719 kB / 0.7595 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.836, allocations: 8.531 kB / 0.7595 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.836, allocations: 7.688 kB / 0.7595 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002877/0.8389, allocations: 1.874 MB / 0.7613 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.8389, allocations: 5.203 kB / 0.7613 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005306/0.8394, allocations: 144.4 kB / 0.7615 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004076/0.8398, allocations: 70.05 kB / 0.7615 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.41e-05/0.8399, allocations: 22.64 kB / 0.7616 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/0.8413, allocations: 1.667 MB / 0.7632 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.8414, allocations: 0 / 0.7632 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.843, allocations: 0.9273 MB / 0.7641 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002543/0.8433, allocations: 260.9 kB / 0.7643 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.998e-05/0.8434, allocations: 21.81 kB / 0.7644 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005264/0.8439, allocations: 55.36 kB / 0.7644 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.844, allocations: 63.3 kB / 0.7645 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-05/0.8441, allocations: 33.19 kB / 0.7645 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004615/0.8446, allocations: 442.4 kB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8446, allocations: 3.938 kB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007187/0.8453, allocations: 297.1 kB / 0.7652 GB, free: 156.8 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.001651/0.847, allocations: 0.5936 MB / 0.7658 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001935/0.8489, allocations: 0.9828 MB / 0.7667 GB, free: 156 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.8489, allocations: 1.719 kB / 0.7667 GB, free: 156 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006776/0.8496, allocations: 0.4891 MB / 0.7672 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.8506, allocations: 294.9 kB / 0.7675 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/0.8536, allocations: 1.736 MB / 0.7692 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.8539, allocations: 1.014 MB / 0.7702 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.8541, allocations: 114.2 kB / 0.7703 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of SimCode: time 2.81e-07/0.8541, allocations: 0 / 0.7703 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.01749/0.8716, allocations: 17.44 MB / 0.7873 GB, free: 134.9 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.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.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleFunctions.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.IncidenceAngleCalcHelperMain.o] Error 1