Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001158/0.001158, allocations: 101.1 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.001152/0.001152, allocations: 190.3 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.37/1.37, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8258/0.8258, allocations: 132.2 MB / 423.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 59.91 kB / 0.5024 GB, free: 11.7 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3413, allocations: 80.19 MB / 0.5807 GB, free: 27.22 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.005042/0.3464, allocations: 4.168 MB / 0.5848 GB, free: 23.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1546/0.501, allocations: 150.6 MB / 0.7319 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008352/0.5019, allocations: 15.94 kB / 0.7319 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005251/0.5024, allocations: 174.4 kB / 0.7321 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00157/0.5041, allocations: 0.4945 MB / 0.7326 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001807/0.5059, allocations: 0.7851 MB / 0.7333 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001128/0.507, allocations: 1.211 MB / 0.7345 GB, free: 272 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008154/0.5078, allocations: 0.6216 MB / 0.7351 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005595/0.5084, allocations: 442.4 kB / 0.7356 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000472/0.5089, allocations: 469.8 kB / 0.736 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.5091, allocations: 108 kB / 0.7361 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007712/0.5098, allocations: 435.7 kB / 0.7365 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000247/0.5101, allocations: 279.1 kB / 0.7368 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003934/0.5105, allocations: 0.5012 MB / 0.7373 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.512, allocations: 1.464 MB / 0.7387 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.5121, allocations: 0 / 0.7387 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5121, allocations: 0 / 0.7387 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.5121, allocations: 0 / 0.7387 GB, free: 11.95 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.002167/0.5143, allocations: 1.342 MB / 0.74 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.5143, allocations: 12.03 kB / 0.74 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000941/0.5152, allocations: 179.4 kB / 0.7402 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009359/0.5162, allocations: 0.7033 MB / 0.7409 GB, free: 9.625 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/0.5163, allocations: 65.94 kB / 0.741 GB, free: 9.559 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.94e-05/0.5164, allocations: 84 kB / 0.741 GB, free: 9.477 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.5178, allocations: 0.8871 MB / 0.7419 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.5179, allocations: 0 / 0.7419 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.211e-05/0.518, allocations: 36 kB / 0.7419 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.518, allocations: 20 kB / 0.742 GB, free: 8.496 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.5197, allocations: 1.093 MB / 0.743 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003801/0.5236, allocations: 2.515 MB / 0.7455 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.525, allocations: 0.7308 MB / 0.7462 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005056/0.5255, allocations: 286.7 kB / 0.7465 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-05/0.5256, allocations: 36.59 kB / 0.7465 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008061/0.5264, allocations: 443.2 kB / 0.7469 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=76): time 3.135e-06/0.5264, allocations: 7.984 kB / 0.7469 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of matching and sorting (n=76): time 0.00311/0.5295, allocations: 1.112 MB / 0.748 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.521e-05/0.5296, allocations: 196.5 kB / 0.7482 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007084/0.5303, allocations: 0.5978 MB / 0.7488 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.538e-05/0.5304, allocations: 41.7 kB / 0.7488 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.5307, allocations: 376.3 kB / 0.7492 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001907/0.5309, allocations: 256.3 kB / 0.7494 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002264/0.5311, allocations: 158.5 kB / 0.7496 GB, free: 496 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.5313, allocations: 382.7 kB / 0.7499 GB, free: 104 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2806/0.8119, allocations: 250 kB / 0.7502 GB, free: 166.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007679/0.8127, allocations: 344.7 kB / 0.7505 GB, free: 166.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.814, allocations: 0.584 MB / 0.7511 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.814, allocations: 1.641 kB / 0.7511 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002212/0.8162, allocations: 0.8166 MB / 0.7519 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.8162, allocations: 6.844 kB / 0.7519 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.8162, allocations: 0.8125 kB / 0.7519 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006333/0.8169, allocations: 81.61 kB / 0.752 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007091/0.8176, allocations: 156.8 kB / 0.7521 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/0.8196, allocations: 1.628 MB / 0.7537 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007302/0.8203, allocations: 84.53 kB / 0.7538 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.58e-05/0.8204, allocations: 35.62 kB / 0.7538 GB, free: 164.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 (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.000444/0.8208, allocations: 255.4 kB / 0.7541 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.821, allocations: 81.78 kB / 0.7541 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002607/0.8236, allocations: 1.027 MB / 0.7551 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.8237, allocations: 10.47 kB / 0.7552 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.8237, allocations: 5.391 kB / 0.7552 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/0.8237, allocations: 3.797 kB / 0.7552 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003363/0.8271, allocations: 1.885 MB / 0.757 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.8271, allocations: 0 / 0.757 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/0.8278, allocations: 143.9 kB / 0.7571 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004743/0.8283, allocations: 72.44 kB / 0.7572 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.263e-05/0.8283, allocations: 23.59 kB / 0.7572 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001775/0.8301, allocations: 1.665 MB / 0.7589 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.8301, allocations: 0.7188 kB / 0.7589 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.8321, allocations: 0.9323 MB / 0.7598 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.8325, allocations: 260.1 kB / 0.76 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.8326, allocations: 21 kB / 0.76 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005766/0.8332, allocations: 55.25 kB / 0.7601 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.8333, allocations: 62.02 kB / 0.7602 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.661e-05/0.8334, allocations: 28.27 kB / 0.7602 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005145/0.8339, allocations: 446.4 kB / 0.7606 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8339, allocations: 0.5625 kB / 0.7606 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008586/0.8348, allocations: 287.3 kB / 0.7609 GB, free: 160.7 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.001307/0.8361, allocations: 0.6037 MB / 0.7615 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002147/0.8383, allocations: 0.9827 MB / 0.7624 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.8383, allocations: 1.031 kB / 0.7624 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008919/0.8392, allocations: 0.4916 MB / 0.7629 GB, free: 159.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.8404, allocations: 284.4 kB / 0.7632 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.8441, allocations: 1.734 MB / 0.7649 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.8445, allocations: 1.018 MB / 0.7659 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000295/0.8448, allocations: 110.7 kB / 0.766 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of SimCode: time 8.41e-07/0.8448, allocations: 0 / 0.766 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.01772/0.8626, allocations: 17.43 MB / 0.783 GB, free: 141.7 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_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/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.IncidenceAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleFunctions.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.IncidenceAngleCalcHelperMain.o] Error 1