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.0009224/0.0009224, allocations: 92.08 kB / 16.02 MB, free: 80 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.001113/0.001113, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.305/1.305, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8719/0.8719, allocations: 135.3 MB / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003335, allocations: 11.98 kB / 0.5082 GB, free: 4.77 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1386, allocations: 82.31 MB / 0.5886 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.004698/0.1433, allocations: 4.084 MB / 0.5926 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.3992/0.5426, allocations: 146.7 MB / 0.7358 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005468/0.5432, allocations: 19.19 kB / 0.7359 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004548/0.5436, allocations: 152.3 kB / 0.736 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.5449, allocations: 415.5 kB / 0.7364 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001718/0.5466, allocations: 0.7175 MB / 0.7371 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001243/0.5478, allocations: 1.223 MB / 0.7383 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.5489, allocations: 0.8626 MB / 0.7391 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004976/0.5494, allocations: 348.5 kB / 0.7395 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004327/0.5499, allocations: 395.7 kB / 0.7399 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.442e-05/0.55, allocations: 23.94 kB / 0.7399 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007011/0.5507, allocations: 366.4 kB / 0.7402 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.5509, allocations: 200.5 kB / 0.7404 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004087/0.5513, allocations: 0.4951 MB / 0.7409 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.5524, allocations: 1.333 MB / 0.7422 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5524, allocations: 0 / 0.7422 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5524, allocations: 0 / 0.7422 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.378e-05/0.5525, allocations: 0 / 0.7422 GB, free: 11.54 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.001947/0.5544, allocations: 1.334 MB / 0.7435 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.5545, allocations: 9.938 kB / 0.7435 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008755/0.5553, allocations: 217.8 kB / 0.7437 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.5564, allocations: 0.811 MB / 0.7445 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.862e-05/0.5564, allocations: 84.3 kB / 0.7446 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.5566, allocations: 110.2 kB / 0.7447 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/0.5584, allocations: 1.142 MB / 0.7458 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.5584, allocations: 2.062 kB / 0.7458 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-05/0.5585, allocations: 50.45 kB / 0.7459 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.5585, allocations: 32.34 kB / 0.7459 GB, free: 9.059 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.5604, allocations: 1.239 MB / 0.7471 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004063/0.5644, allocations: 3.056 MB / 0.7501 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.5657, allocations: 0.7765 MB / 0.7508 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.5661, allocations: 307.2 kB / 0.7511 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 6.687e-05/0.5662, allocations: 28.78 kB / 0.7512 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007324/0.567, allocations: 449.1 kB / 0.7516 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=78): time 2.094e-06/0.567, allocations: 4 kB / 0.7516 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of matching and sorting (n=78): time 0.002808/0.5698, allocations: 1.153 MB / 0.7527 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.343e-05/0.5699, allocations: 196.6 kB / 0.7529 GB, free: 4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008108/0.5707, allocations: 0.6843 MB / 0.7536 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.797e-05/0.5708, allocations: 41.7 kB / 0.7536 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.5711, allocations: 0.4957 MB / 0.7541 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.5713, allocations: 264.2 kB / 0.7544 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.219e-05/0.5714, allocations: 69.67 kB / 0.7544 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.5716, allocations: 390.8 kB / 0.7548 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004974/0.5721, allocations: 257.9 kB / 0.755 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005906/0.5727, allocations: 355.1 kB / 0.7554 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.5738, allocations: 0.6111 MB / 0.756 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.5738, allocations: 3.938 kB / 0.756 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001813/0.5756, allocations: 0.8487 MB / 0.7568 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.5756, allocations: 8 kB / 0.7568 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5757, allocations: 0 / 0.7568 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005873/0.5763, allocations: 92.78 kB / 0.7569 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006251/0.5769, allocations: 159.8 kB / 0.7571 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.5789, allocations: 1.516 MB / 0.7585 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006459/0.5795, allocations: 96.47 kB / 0.7586 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-05/0.5796, allocations: 35.97 kB / 0.7587 GB, free: 13.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 (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.0004155/0.58, allocations: 277.7 kB / 0.7589 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.5802, allocations: 92.98 kB / 0.759 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/0.5824, allocations: 1.04 MB / 0.76 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.5824, allocations: 8 kB / 0.76 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.5824, allocations: 4 kB / 0.76 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.5824, allocations: 3.984 kB / 0.7601 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.5834, allocations: 0.9854 MB / 0.761 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5835, allocations: 0 / 0.761 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005706/0.584, allocations: 151.8 kB / 0.7612 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005202/0.5846, allocations: 84.77 kB / 0.7612 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.624e-05/0.5846, allocations: 19.98 kB / 0.7613 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/0.5863, allocations: 1.545 MB / 0.7628 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5863, allocations: 128 / 0.7628 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.588, allocations: 0.9044 MB / 0.7636 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003387/0.5884, allocations: 279.8 kB / 0.7639 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.5885, allocations: 19.94 kB / 0.7639 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005583/0.5891, allocations: 71.94 kB / 0.764 GB, free: 8.168 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.5892, allocations: 64.89 kB / 0.7641 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.587e-05/0.5893, allocations: 31.98 kB / 0.7641 GB, free: 8.074 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005707/0.5898, allocations: 499 kB / 0.7646 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5898, allocations: 0 / 0.7646 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008252/0.5907, allocations: 346.8 kB / 0.7649 GB, free: 7.25 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.001229/0.5919, allocations: 0.5835 MB / 0.7655 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001484/0.5934, allocations: 0.811 MB / 0.7663 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.5934, allocations: 0 / 0.7663 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008284/0.5943, allocations: 0.5048 MB / 0.7668 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001178/0.5954, allocations: 283.2 kB / 0.767 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004418/0.5999, allocations: 2.596 MB / 0.7696 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005957/0.6005, allocations: 1.08 MB / 0.7706 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.6008, allocations: 119.4 kB / 0.7707 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of SimCode: time 3.91e-07/0.6008, allocations: 0 / 0.7707 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of Templates: time 0.02338/0.6242, allocations: 19.9 MB / 0.7902 GB, free: 13.56 MB / 0.6075 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++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.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