Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.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.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001154/0.001154, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8121/0.8121, allocations: 132.2 MB / 423.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 62.81 kB / 0.582 GB, free: 23.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1628, allocations: 80.2 MB / 0.6603 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.006298/0.1692, allocations: 4.108 MB / 0.6643 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6458/0.815, allocations: 150.5 MB / 0.8113 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009884/0.816, allocations: 14.72 kB / 0.8113 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006152/0.8167, allocations: 163.7 kB / 0.8114 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001683/0.8184, allocations: 480.1 kB / 0.8119 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002083/0.8205, allocations: 0.7959 MB / 0.8127 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00127/0.8218, allocations: 1.168 MB / 0.8138 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008491/0.8227, allocations: 0.5988 MB / 0.8144 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006064/0.8233, allocations: 423 kB / 0.8148 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005089/0.8238, allocations: 444.2 kB / 0.8152 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.8239, allocations: 100.8 kB / 0.8153 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008761/0.8248, allocations: 478.9 kB / 0.8158 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002631/0.8251, allocations: 268 kB / 0.816 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000418/0.8255, allocations: 495.8 kB / 0.8165 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001556/0.8271, allocations: 1.467 MB / 0.8179 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.8271, allocations: 1.969 kB / 0.8179 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.766e-06/0.8271, allocations: 0 / 0.8179 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.682e-05/0.8271, allocations: 0 / 0.8179 GB, free: 10.08 MB / 0.5919 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.002169/0.8293, allocations: 1.313 MB / 0.8192 GB, free: 9.191 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.8294, allocations: 10.84 kB / 0.8192 GB, free: 9.191 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000943/0.8303, allocations: 179.4 kB / 0.8194 GB, free: 9.105 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.8315, allocations: 0.7247 MB / 0.8201 GB, free: 8.617 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.002e-05/0.8316, allocations: 61.78 kB / 0.8202 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.8317, allocations: 73.34 kB / 0.8202 GB, free: 8.566 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.8333, allocations: 0.8474 MB / 0.8211 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.8333, allocations: 3.938 kB / 0.8211 GB, free: 8.012 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.188e-05/0.8334, allocations: 32.09 kB / 0.8211 GB, free: 7.988 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.646e-05/0.8334, allocations: 22.17 kB / 0.8211 GB, free: 7.984 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/0.8352, allocations: 1.053 MB / 0.8221 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003787/0.839, allocations: 2.315 MB / 0.8244 GB, free: 5.719 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.8404, allocations: 0.7067 MB / 0.8251 GB, free: 5.367 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004963/0.8409, allocations: 266.7 kB / 0.8254 GB, free: 5.234 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.077e-05/0.841, allocations: 29.94 kB / 0.8254 GB, free: 5.223 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008448/0.8418, allocations: 417.7 kB / 0.8258 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=71): time 3.366e-06/0.8419, allocations: 4 kB / 0.8258 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71): time 0.003072/0.8449, allocations: 1.061 MB / 0.8268 GB, free: 4.371 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.8451, allocations: 196.6 kB / 0.827 GB, free: 4.145 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008173/0.8459, allocations: 0.5861 MB / 0.8276 GB, free: 3.801 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.922e-05/0.846, allocations: 38.17 kB / 0.8276 GB, free: 3.762 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000353/0.8464, allocations: 381.4 kB / 0.828 GB, free: 3.426 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.8466, allocations: 230.1 kB / 0.8282 GB, free: 3.23 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002572/0.8468, allocations: 153.5 kB / 0.8283 GB, free: 3.137 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002285/0.8471, allocations: 380.3 kB / 0.8287 GB, free: 2.773 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/0.8476, allocations: 239.9 kB / 0.8289 GB, free: 2.652 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005758/0.8482, allocations: 316.2 kB / 0.8292 GB, free: 2.469 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.8493, allocations: 0.5474 MB / 0.8298 GB, free: 2.172 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.8493, allocations: 1.875 kB / 0.8298 GB, free: 2.172 MB / 0.5919 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00187/0.8512, allocations: 0.7592 MB / 0.8305 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.8512, allocations: 9.016 kB / 0.8305 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.8512, allocations: 1.844 kB / 0.8305 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005998/0.8518, allocations: 80.25 kB / 0.8306 GB, free: 1.742 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.8524, allocations: 150 kB / 0.8307 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/0.8546, allocations: 1.631 MB / 0.8323 GB, free: 112 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006201/0.8552, allocations: 78.45 kB / 0.8324 GB, free: 60 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.515e-05/0.8553, allocations: 40.55 kB / 0.8325 GB, free: 40 kB / 0.5919 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.000447/0.8557, allocations: 258.5 kB / 0.8327 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.8559, allocations: 74.31 kB / 0.8328 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002123/0.858, allocations: 0.9584 MB / 0.8337 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.858, allocations: 7.781 kB / 0.8337 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.858, allocations: 0 / 0.8337 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.858, allocations: 7.969 kB / 0.8337 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009416/0.859, allocations: 0.8186 MB / 0.8345 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.859, allocations: 0 / 0.8345 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005498/0.8596, allocations: 137.2 kB / 0.8346 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004217/0.86, allocations: 70.77 kB / 0.8347 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/0.8601, allocations: 23.77 kB / 0.8347 GB, free: 14.56 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.8622, allocations: 1.668 MB / 0.8364 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.8622, allocations: 0 / 0.8364 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.8641, allocations: 0.8178 MB / 0.8372 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.8645, allocations: 256.8 kB / 0.8374 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.8646, allocations: 24.77 kB / 0.8374 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/0.8651, allocations: 49.05 kB / 0.8375 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.8653, allocations: 64.84 kB / 0.8375 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.901e-05/0.8654, allocations: 28.17 kB / 0.8376 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006155/0.866, allocations: 425.5 kB / 0.838 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.866, allocations: 0 / 0.838 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009743/0.867, allocations: 285.5 kB / 0.8382 GB, free: 11.85 MB / 0.6075 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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.001592/0.8686, allocations: 0.6052 MB / 0.8388 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001614/0.8702, allocations: 0.7495 MB / 0.8396 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.8702, allocations: 0 / 0.8396 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008202/0.8711, allocations: 482.8 kB / 0.84 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.8722, allocations: 285.5 kB / 0.8403 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/0.8759, allocations: 1.643 MB / 0.8419 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.8764, allocations: 0.9956 MB / 0.8429 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.8767, allocations: 108.4 kB / 0.843 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of SimCode: time 3.176e-06/0.8767, allocations: 0 / 0.843 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of Templates: time 0.02348/0.9002, allocations: 17 MB / 0.8596 GB, free: 8.363 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.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.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicFunctions.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.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1