Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001303/0.001303, 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.00125/0.00125, 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.377/1.377, 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-master/package.mo): time 0.8003/0.8003, allocations: 135.1 MB / 426.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 63.47 kB / 0.5863 GB, free: 21.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1704/0.1718, allocations: 80.92 MB / 0.6653 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.006413/0.1783, allocations: 4.111 MB / 0.6693 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5683/0.7467, allocations: 150.4 MB / 0.8162 GB, free: 8.473 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008019/0.7475, allocations: 23.31 kB / 0.8162 GB, free: 8.461 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005945/0.7481, allocations: 168.9 kB / 0.8164 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001689/0.7499, allocations: 476.3 kB / 0.8169 GB, free: 8.184 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00193/0.7518, allocations: 0.7938 MB / 0.8176 GB, free: 7.941 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001368/0.7532, allocations: 1.169 MB / 0.8188 GB, free: 7.625 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008305/0.754, allocations: 0.6027 MB / 0.8194 GB, free: 7.438 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006248/0.7547, allocations: 428.1 kB / 0.8198 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004585/0.7551, allocations: 441.8 kB / 0.8202 GB, free: 7.102 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.7553, allocations: 102.4 kB / 0.8203 GB, free: 7.102 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008841/0.7561, allocations: 475.5 kB / 0.8207 GB, free: 7.016 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002222/0.7564, allocations: 266.8 kB / 0.821 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000407/0.7568, allocations: 491.7 kB / 0.8215 GB, free: 6.641 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001669/0.7585, allocations: 1.472 MB / 0.8229 GB, free: 5.582 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.7585, allocations: 4 kB / 0.8229 GB, free: 5.578 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7585, allocations: 0 / 0.8229 GB, free: 5.578 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.77e-05/0.7585, allocations: 0 / 0.8229 GB, free: 5.578 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.002149/0.7607, allocations: 1.307 MB / 0.8242 GB, free: 4.535 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.7607, allocations: 11.42 kB / 0.8242 GB, free: 4.535 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008951/0.7616, allocations: 181.7 kB / 0.8244 GB, free: 4.445 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.7628, allocations: 0.7184 MB / 0.8251 GB, free: 3.852 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.043e-05/0.7628, allocations: 58.25 kB / 0.8251 GB, free: 3.828 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.304e-05/0.7629, allocations: 78.84 kB / 0.8252 GB, free: 3.801 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.7643, allocations: 0.8562 MB / 0.826 GB, free: 3.242 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.7644, allocations: 0 / 0.826 GB, free: 3.242 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.09e-05/0.7644, allocations: 31.44 kB / 0.8261 GB, free: 3.219 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.7645, allocations: 19.91 kB / 0.8261 GB, free: 3.219 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.766, allocations: 1.053 MB / 0.8271 GB, free: 2.719 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003793/0.7698, allocations: 2.325 MB / 0.8294 GB, free: 0.9219 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.771, allocations: 0.7042 MB / 0.8301 GB, free: 0.5703 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000434/0.7714, allocations: 264 kB / 0.8303 GB, free: 452 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.524e-05/0.7715, allocations: 39.7 kB / 0.8304 GB, free: 428 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007274/0.7723, allocations: 417.2 kB / 0.8308 GB, free: 152 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=71): time 2.054e-06/0.7723, allocations: 0 / 0.8308 GB, free: 152 kB / 0.5919 GB Notification: Performance of matching and sorting (n=71): time 0.002866/0.7751, allocations: 1.065 MB / 0.8318 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.7753, allocations: 187.6 kB / 0.832 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007415/0.776, allocations: 0.5846 MB / 0.8326 GB, free: 15 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.315e-05/0.7761, allocations: 42.3 kB / 0.8326 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003159/0.7764, allocations: 374.5 kB / 0.833 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.7766, allocations: 238.8 kB / 0.8332 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002211/0.7768, allocations: 149.4 kB / 0.8333 GB, free: 14.33 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.777, allocations: 384.6 kB / 0.8337 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004452/0.7775, allocations: 227.8 kB / 0.8339 GB, free: 13.86 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005515/0.778, allocations: 328.7 kB / 0.8342 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009392/0.779, allocations: 0.5417 MB / 0.8347 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.779, allocations: 0 / 0.8347 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001677/0.7807, allocations: 0.7679 MB / 0.8355 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.7807, allocations: 7.469 kB / 0.8355 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.7807, allocations: 0 / 0.8355 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005824/0.7813, allocations: 83.42 kB / 0.8356 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005573/0.7819, allocations: 146.4 kB / 0.8357 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.784, allocations: 1.633 MB / 0.8373 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006311/0.7846, allocations: 81.52 kB / 0.8374 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.034e-05/0.7847, allocations: 32.14 kB / 0.8374 GB, free: 11.23 MB / 0.6075 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.0004475/0.7852, allocations: 251.4 kB / 0.8377 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.7853, allocations: 74.34 kB / 0.8377 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002041/0.7874, allocations: 0.9561 MB / 0.8387 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.7874, allocations: 12.06 kB / 0.8387 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.7874, allocations: 0 / 0.8387 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.7874, allocations: 6.578 kB / 0.8387 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009936/0.7884, allocations: 0.8173 MB / 0.8395 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.7884, allocations: 0 / 0.8395 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.789, allocations: 139.7 kB / 0.8396 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004319/0.7894, allocations: 72 kB / 0.8397 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.648e-05/0.7895, allocations: 27.86 kB / 0.8397 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.7914, allocations: 1.659 MB / 0.8413 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.7914, allocations: 0 / 0.8413 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.7931, allocations: 0.8272 MB / 0.8421 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003406/0.7935, allocations: 250.9 kB / 0.8424 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.7936, allocations: 16.91 kB / 0.8424 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00055/0.7942, allocations: 53.25 kB / 0.8424 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.7943, allocations: 56.2 kB / 0.8425 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.466e-05/0.7944, allocations: 32.52 kB / 0.8425 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005468/0.795, allocations: 425.5 kB / 0.8429 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.4e-07/0.795, allocations: 0 / 0.8429 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008251/0.7958, allocations: 293.8 kB / 0.8432 GB, free: 7.012 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.00148/0.7973, allocations: 0.5995 MB / 0.8438 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001592/0.7989, allocations: 0.7486 MB / 0.8445 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.7989, allocations: 0 / 0.8445 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008742/0.7998, allocations: 485.7 kB / 0.845 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.801, allocations: 287.8 kB / 0.8453 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003961/0.805, allocations: 1.656 MB / 0.8469 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000762/0.8058, allocations: 0.9915 MB / 0.8479 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000305/0.8061, allocations: 107.4 kB / 0.848 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of SimCode: time 5.62e-07/0.8061, allocations: 0 / 0.848 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of Templates: time 0.02438/0.8305, allocations: 17 MB / 0.8646 GB, free: 2.559 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_dev_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-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.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicFunctions.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.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1