Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.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.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001423/0.001423, allocations: 187.6 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.304/1.304, 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.7883/0.7883, allocations: 135.2 MB / 426.2 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 63.89 kB / 0.506 GB, free: 8.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3152, allocations: 80.93 MB / 0.5851 GB, free: 25.33 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.005022/0.3203, allocations: 4.905 MB / 0.5898 GB, free: 21.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1596/0.48, allocations: 150.9 MB / 0.7372 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000855/0.4809, allocations: 19.94 kB / 0.7372 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005764/0.4815, allocations: 194.1 kB / 0.7374 GB, free: 14 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001592/0.4831, allocations: 0.5779 MB / 0.738 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001857/0.485, allocations: 0.8831 MB / 0.7388 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001495/0.4865, allocations: 1.581 MB / 0.7404 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001408/0.4879, allocations: 1.065 MB / 0.7414 GB, free: 9.852 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007561/0.4887, allocations: 0.681 MB / 0.7421 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007754/0.4894, allocations: 0.735 MB / 0.7428 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002241/0.4897, allocations: 180 kB / 0.743 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000888/0.4906, allocations: 0.5113 MB / 0.7435 GB, free: 7.742 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003819/0.491, allocations: 414.6 kB / 0.7439 GB, free: 7.336 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007155/0.4917, allocations: 0.7772 MB / 0.7446 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002317/0.494, allocations: 2.13 MB / 0.7467 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.494, allocations: 0 / 0.7467 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.353e-06/0.494, allocations: 0 / 0.7467 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.4941, allocations: 0 / 0.7467 GB, free: 4.418 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.002901/0.497, allocations: 1.783 MB / 0.7485 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.497, allocations: 8.031 kB / 0.7485 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009383/0.4979, allocations: 230.9 kB / 0.7487 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.4992, allocations: 0.8797 MB / 0.7495 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.68e-05/0.4993, allocations: 114.9 kB / 0.7497 GB, free: 1.312 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.4994, allocations: 136 kB / 0.7498 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.23/0.7294, allocations: 1.424 MB / 0.7512 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.308e-05/0.7295, allocations: 0.9375 kB / 0.7512 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.7296, allocations: 61.72 kB / 0.7512 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.961e-05/0.7297, allocations: 36.09 kB / 0.7513 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00246/0.7321, allocations: 1.513 MB / 0.7528 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004968/0.7371, allocations: 3.77 MB / 0.7564 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.7387, allocations: 0.9549 MB / 0.7574 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006148/0.7393, allocations: 405.4 kB / 0.7578 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.7394, allocations: 46.92 kB / 0.7578 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.7405, allocations: 0.5872 MB / 0.7584 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=104): time 2.645e-06/0.7405, allocations: 0 / 0.7584 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=104): time 0.003595/0.7441, allocations: 1.477 MB / 0.7598 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/0.7441, allocations: 192.4 kB / 0.76 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007436/0.7449, allocations: 0.7681 MB / 0.7607 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.819e-05/0.745, allocations: 41.67 kB / 0.7608 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002449/0.7452, allocations: 0.5564 MB / 0.7613 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.7454, allocations: 348.2 kB / 0.7617 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002624/0.7456, allocations: 216 kB / 0.7619 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.415e-05/0.7457, allocations: 349.3 kB / 0.7622 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005808/0.7463, allocations: 360 kB / 0.7625 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006672/0.747, allocations: 474.5 kB / 0.763 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.7482, allocations: 0.8277 MB / 0.7638 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.7482, allocations: 0 / 0.7638 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001902/0.7501, allocations: 1.117 MB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.7502, allocations: 7 kB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.7502, allocations: 1.906 kB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000541/0.7507, allocations: 79.59 kB / 0.765 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008154/0.7515, allocations: 227.5 kB / 0.7652 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001547/0.7531, allocations: 1.646 MB / 0.7668 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006935/0.7538, allocations: 118 kB / 0.7669 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.962e-05/0.7539, allocations: 52.92 kB / 0.767 GB, free: 154.9 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 (125): * Single equations (assignments): 124 * 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.0003419/0.7542, allocations: 315.6 kB / 0.7673 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.7544, allocations: 102.7 kB / 0.7674 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002486/0.7569, allocations: 1.385 MB / 0.7687 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.7569, allocations: 15.28 kB / 0.7687 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.7569, allocations: 4 kB / 0.7687 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.7569, allocations: 10.48 kB / 0.7687 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002995/0.7599, allocations: 2.558 MB / 0.7712 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.7599, allocations: 0 / 0.7712 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006726/0.7606, allocations: 187.7 kB / 0.7714 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003871/0.761, allocations: 82.66 kB / 0.7715 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.113e-05/0.7611, allocations: 27.98 kB / 0.7715 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.7624, allocations: 1.675 MB / 0.7732 GB, free: 148.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7624, allocations: 0 / 0.7732 GB, free: 148.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.7641, allocations: 1.173 MB / 0.7743 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002732/0.7644, allocations: 319.4 kB / 0.7746 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.7646, allocations: 31.84 kB / 0.7746 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/0.7652, allocations: 60.94 kB / 0.7747 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.7653, allocations: 76.89 kB / 0.7748 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.21e-05/0.7654, allocations: 42.08 kB / 0.7748 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005008/0.7659, allocations: 0.577 MB / 0.7754 GB, free: 146.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7659, allocations: 0 / 0.7754 GB, free: 146.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007441/0.7666, allocations: 401 kB / 0.7758 GB, free: 145.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 (115): * Single equations (assignments): 112 * 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.001616/0.7683, allocations: 0.6005 MB / 0.7763 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002557/0.7708, allocations: 1.293 MB / 0.7776 GB, free: 144.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.7708, allocations: 0 / 0.7776 GB, free: 144.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007841/0.7716, allocations: 0.6097 MB / 0.7782 GB, free: 143.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.7727, allocations: 312 kB / 0.7785 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.7762, allocations: 2.403 MB / 0.7809 GB, free: 140.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.7766, allocations: 1.165 MB / 0.782 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003154/0.777, allocations: 151.3 kB / 0.7821 GB, free: 139.4 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/0.777, allocations: 0 / 0.7821 GB, free: 139.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.01923/0.7962, allocations: 23.74 MB / 0.8053 GB, free: 115.7 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.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.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.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.Examples.IncidenceAngleCalcHelperMain.o] Error 1