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.001325/0.001325, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 199.3 kB / 16.79 MB, free: 6.809 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.421/1.421, allocations: 222.9 MB / 240.5 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9436/0.9436, allocations: 135.1 MB / 425.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 59.88 kB / 0.5053 GB, free: 5.719 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2094, allocations: 80.93 MB / 0.5843 GB, free: 4.957 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.006953/0.2164, allocations: 4.13 MB / 0.5884 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5319/0.7484, allocations: 148.1 MB / 0.733 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009375/0.7494, allocations: 19.88 kB / 0.7331 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005853/0.75, allocations: 132.6 kB / 0.7332 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001485/0.7515, allocations: 393.6 kB / 0.7336 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002163/0.7537, allocations: 0.6822 MB / 0.7342 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001448/0.7552, allocations: 1.084 MB / 0.7353 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009412/0.7561, allocations: 0.5791 MB / 0.7358 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006614/0.7568, allocations: 365.5 kB / 0.7362 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005346/0.7573, allocations: 408.3 kB / 0.7366 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001257/0.7575, allocations: 50.31 kB / 0.7366 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009699/0.7584, allocations: 397 kB / 0.737 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002556/0.7587, allocations: 216.6 kB / 0.7372 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004594/0.7592, allocations: 447.8 kB / 0.7376 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.7603, allocations: 1.085 MB / 0.7387 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.7604, allocations: 0 / 0.7387 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.253e-06/0.7604, allocations: 2.344 kB / 0.7387 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.227e-05/0.7604, allocations: 0 / 0.7387 GB, free: 11.51 MB / 0.5606 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.002264/0.7627, allocations: 1.315 MB / 0.74 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.7627, allocations: 9.094 kB / 0.74 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009251/0.7636, allocations: 178.1 kB / 0.7402 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009773/0.7646, allocations: 0.6972 MB / 0.7408 GB, free: 9.832 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.51e-05/0.7647, allocations: 62.67 kB / 0.7409 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.941e-05/0.7648, allocations: 77.56 kB / 0.741 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.7663, allocations: 0.8568 MB / 0.7418 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.7664, allocations: 0 / 0.7418 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-05/0.7664, allocations: 36.94 kB / 0.7419 GB, free: 9.188 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.182e-05/0.7665, allocations: 18.78 kB / 0.7419 GB, free: 9.188 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.7682, allocations: 1.054 MB / 0.7429 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003636/0.7718, allocations: 2.344 MB / 0.7452 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.773, allocations: 0.6994 MB / 0.7459 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004573/0.7735, allocations: 268 kB / 0.7461 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.377e-05/0.7736, allocations: 32.61 kB / 0.7462 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008364/0.7744, allocations: 426.5 kB / 0.7466 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=71): time 3.276e-06/0.7745, allocations: 0 / 0.7466 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of matching and sorting (n=71): time 0.00295/0.7774, allocations: 1.062 MB / 0.7476 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.7775, allocations: 189.6 kB / 0.7478 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007818/0.7783, allocations: 0.5893 MB / 0.7484 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.543e-05/0.7784, allocations: 41.7 kB / 0.7484 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000294/0.7787, allocations: 376.2 kB / 0.7488 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.7789, allocations: 232.7 kB / 0.749 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.7791, allocations: 154.4 kB / 0.7491 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.7793, allocations: 382.7 kB / 0.7495 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004516/0.7797, allocations: 229.9 kB / 0.7497 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005614/0.7803, allocations: 334.3 kB / 0.75 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000973/0.7813, allocations: 0.5433 MB / 0.7506 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.7813, allocations: 0 / 0.7506 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001881/0.7832, allocations: 0.7627 MB / 0.7513 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.7832, allocations: 8 kB / 0.7513 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.7832, allocations: 0 / 0.7513 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006107/0.7838, allocations: 84.83 kB / 0.7514 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006123/0.7845, allocations: 143.8 kB / 0.7515 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/0.7866, allocations: 1.514 MB / 0.753 GB, free: 0 / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007038/0.7873, allocations: 79.36 kB / 0.7531 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.521e-05/0.7874, allocations: 31.97 kB / 0.7531 GB, free: 15.89 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 (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.0004528/0.7878, allocations: 249.7 kB / 0.7534 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.788, allocations: 75.06 kB / 0.7534 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002169/0.7902, allocations: 0.9679 MB / 0.7544 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.7902, allocations: 8 kB / 0.7544 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.285e-06/0.7902, allocations: 4 kB / 0.7544 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.7902, allocations: 7.984 kB / 0.7544 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009545/0.7912, allocations: 0.8118 MB / 0.7552 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.7912, allocations: 0 / 0.7552 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.7917, allocations: 139.8 kB / 0.7553 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005164/0.7923, allocations: 88.31 kB / 0.7554 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.973e-05/0.7923, allocations: 22.8 kB / 0.7554 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.7942, allocations: 1.552 MB / 0.7569 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.7942, allocations: 0 / 0.7569 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.796, allocations: 0.8263 MB / 0.7577 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003306/0.7963, allocations: 251.8 kB / 0.758 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.7964, allocations: 16 kB / 0.758 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005221/0.797, allocations: 51.94 kB / 0.758 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.7971, allocations: 64.86 kB / 0.7581 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-05/0.7972, allocations: 31.92 kB / 0.7581 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005247/0.7977, allocations: 427 kB / 0.7585 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7977, allocations: 0 / 0.7585 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008787/0.7986, allocations: 287.3 kB / 0.7588 GB, free: 9.809 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 (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.001387/0.8, allocations: 0.5987 MB / 0.7594 GB, free: 9.438 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001529/0.8016, allocations: 0.7387 MB / 0.7601 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.8016, allocations: 0 / 0.7601 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008447/0.8024, allocations: 488.9 kB / 0.7606 GB, free: 8.195 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.8035, allocations: 254.1 kB / 0.7608 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003904/0.8074, allocations: 2.04 MB / 0.7628 GB, free: 5.883 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000567/0.808, allocations: 0.9957 MB / 0.7638 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003099/0.8083, allocations: 107.4 kB / 0.7639 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of SimCode: time 8.51e-07/0.8083, allocations: 0 / 0.7639 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of Templates: time 0.02479/0.8331, allocations: 16.89 MB / 0.7804 GB, free: 3.906 MB / 0.5919 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++14 -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