Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.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.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001354, allocations: 108.6 kB / 16.27 MB, free: 6.004 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.001362/0.001362, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.365/1.365, 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-master/package.mo): time 0.8334/0.8334, allocations: 135.2 MB / 426.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 67.91 kB / 0.506 GB, free: 8.328 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2929, allocations: 80.91 MB / 0.5851 GB, free: 25.16 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.004659/0.2976, allocations: 4.49 MB / 0.5894 GB, free: 21.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1632/0.4609, allocations: 150.6 MB / 0.7365 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007234/0.4616, allocations: 19.88 kB / 0.7365 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005473/0.4622, allocations: 194.1 kB / 0.7367 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001521/0.4637, allocations: 0.4934 MB / 0.7372 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001878/0.4656, allocations: 0.8173 MB / 0.738 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001393/0.467, allocations: 1.304 MB / 0.7393 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001252/0.4683, allocations: 0.9194 MB / 0.7402 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006626/0.469, allocations: 0.5293 MB / 0.7407 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006653/0.4696, allocations: 0.5754 MB / 0.7413 GB, free: 10 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002079/0.4699, allocations: 144 kB / 0.7414 GB, free: 9.863 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009199/0.4708, allocations: 475.7 kB / 0.7418 GB, free: 9.398 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003469/0.4711, allocations: 354.8 kB / 0.7422 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006075/0.4718, allocations: 0.6411 MB / 0.7428 GB, free: 8.406 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002069/0.4738, allocations: 1.788 MB / 0.7446 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.247e-06/0.4739, allocations: 0 / 0.7446 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4739, allocations: 4 kB / 0.7446 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.685e-05/0.4739, allocations: 0 / 0.7446 GB, free: 6.609 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002606/0.4765, allocations: 1.588 MB / 0.7461 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.4765, allocations: 13.11 kB / 0.7461 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.4776, allocations: 215.1 kB / 0.7463 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.4788, allocations: 0.8053 MB / 0.7471 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.454e-05/0.4789, allocations: 86.3 kB / 0.7472 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.479, allocations: 108 kB / 0.7473 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001979/0.481, allocations: 1.138 MB / 0.7484 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.481, allocations: 0 / 0.7484 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.4811, allocations: 52 kB / 0.7485 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.731e-05/0.4812, allocations: 28 kB / 0.7485 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002152/0.4833, allocations: 1.23 MB / 0.7497 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2373/0.7206, allocations: 3.023 MB / 0.7526 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.722, allocations: 0.7751 MB / 0.7534 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.7226, allocations: 291.8 kB / 0.7537 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.533e-05/0.7227, allocations: 36.64 kB / 0.7537 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008758/0.7235, allocations: 452 kB / 0.7541 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.394e-06/0.7236, allocations: 2.125 kB / 0.7541 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=78): time 0.003138/0.7267, allocations: 1.133 MB / 0.7553 GB, free: 163 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.7268, allocations: 190.2 kB / 0.7554 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009558/0.7277, allocations: 0.6993 MB / 0.7561 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.135e-05/0.7278, allocations: 44.08 kB / 0.7562 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000298/0.7281, allocations: 0.4953 MB / 0.7566 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.7283, allocations: 261 kB / 0.7569 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002308/0.7285, allocations: 155.1 kB / 0.757 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.772e-05/0.7286, allocations: 392.3 kB / 0.7574 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005334/0.7292, allocations: 257.4 kB / 0.7577 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006989/0.7299, allocations: 355.2 kB / 0.758 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.7311, allocations: 0.6017 MB / 0.7586 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.7311, allocations: 0.6562 kB / 0.7586 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002015/0.7331, allocations: 0.8451 MB / 0.7594 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.7331, allocations: 6.375 kB / 0.7594 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.7331, allocations: 1.781 kB / 0.7594 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005844/0.7337, allocations: 94 kB / 0.7595 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006738/0.7344, allocations: 153.9 kB / 0.7597 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.7361, allocations: 1.62 MB / 0.7612 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006606/0.7368, allocations: 93.7 kB / 0.7613 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.268e-05/0.7368, allocations: 39.38 kB / 0.7614 GB, free: 158.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 (92): * Single equations (assignments): 91 * 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.0004046/0.7372, allocations: 284.5 kB / 0.7616 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.7374, allocations: 84.94 kB / 0.7617 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002118/0.7395, allocations: 1.034 MB / 0.7627 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.7396, allocations: 9.156 kB / 0.7627 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.7396, allocations: 0 / 0.7627 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.7396, allocations: 8.969 kB / 0.7627 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.7407, allocations: 0.9847 MB / 0.7637 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.7407, allocations: 0 / 0.7637 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005808/0.7413, allocations: 148 kB / 0.7638 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004568/0.7417, allocations: 71.91 kB / 0.7639 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.53e-05/0.7418, allocations: 26.02 kB / 0.7639 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/0.7433, allocations: 1.654 MB / 0.7656 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.7433, allocations: 6.125 kB / 0.7656 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.7449, allocations: 0.8838 MB / 0.7664 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000261/0.7452, allocations: 276.5 kB / 0.7667 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.7453, allocations: 16.94 kB / 0.7667 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005382/0.7459, allocations: 56.31 kB / 0.7668 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.746, allocations: 58.48 kB / 0.7668 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.604e-05/0.746, allocations: 35.91 kB / 0.7668 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004733/0.7465, allocations: 496.2 kB / 0.7673 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7465, allocations: 0.875 kB / 0.7673 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007085/0.7472, allocations: 347.5 kB / 0.7677 GB, free: 154.2 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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.001716/0.749, allocations: 0.5948 MB / 0.7682 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001971/0.7509, allocations: 0.996 MB / 0.7692 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.751, allocations: 7.438 kB / 0.7692 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007306/0.7517, allocations: 0.4995 MB / 0.7697 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.7528, allocations: 300.3 kB / 0.77 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.7563, allocations: 2.021 MB / 0.772 GB, free: 150 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.7567, allocations: 1.078 MB / 0.773 GB, free: 148.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002646/0.757, allocations: 119.4 kB / 0.7731 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of SimCode: time 4.21e-07/0.757, allocations: 0 / 0.7731 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.01909/0.7761, allocations: 20.07 MB / 0.7927 GB, free: 128.8 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.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.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.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.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1