Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 105 kB / 15.98 MB, free: 6.348 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.001284/0.001284, allocations: 198.3 kB / 16.91 MB, free: 6.188 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.425/1.425, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8661/0.8661, allocations: 135.1 MB / 425.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 75.81 kB / 0.5055 GB, free: 8.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4415/0.4431, allocations: 80.9 MB / 0.5845 GB, free: 25.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.007564/0.4507, allocations: 6.024 MB / 0.5904 GB, free: 20.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1737/0.6245, allocations: 149.2 MB / 0.7361 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002102/0.6266, allocations: 19.94 kB / 0.7361 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.6279, allocations: 194.4 kB / 0.7363 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003183/0.6311, allocations: 0.5284 MB / 0.7368 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003274/0.6344, allocations: 1.158 MB / 0.7379 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00362/0.638, allocations: 2.407 MB / 0.7403 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002625/0.6407, allocations: 1.588 MB / 0.7418 GB, free: 9.141 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00175/0.6424, allocations: 1.055 MB / 0.7429 GB, free: 8.082 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001526/0.644, allocations: 1.179 MB / 0.744 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004436/0.6444, allocations: 296 kB / 0.7443 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001295/0.6457, allocations: 0.6441 MB / 0.7449 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005133/0.6463, allocations: 0.6504 MB / 0.7456 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.6474, allocations: 1.166 MB / 0.7467 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002807/0.6502, allocations: 2.499 MB / 0.7491 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.6502, allocations: 0 / 0.7491 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.414e-06/0.6502, allocations: 0 / 0.7491 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.027e-05/0.6503, allocations: 7.938 kB / 0.7491 GB, free: 1.629 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.3993/1.05, allocations: 2.58 MB / 0.7517 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/1.05, allocations: 10.95 kB / 0.7517 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0159/1.066, allocations: 2.093 MB / 0.7537 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002602/1.068, allocations: 1.201 MB / 0.7549 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/1.068, allocations: 165.8 kB / 0.755 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004836/1.069, allocations: 207.4 kB / 0.7552 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009128/1.078, allocations: 3.156 MB / 0.7583 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.01e-05/1.078, allocations: 0.875 kB / 0.7583 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002718/1.078, allocations: 95.44 kB / 0.7584 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.014e-05/1.078, allocations: 57.55 kB / 0.7585 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01207/1.091, allocations: 4.1 MB / 0.7625 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02224/1.113, allocations: 7.011 MB / 0.7693 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/1.125, allocations: 2.685 MB / 0.7719 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007576/1.133, allocations: 1.439 MB / 0.7734 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001147/1.134, allocations: 0.504 MB / 0.7738 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008969/1.143, allocations: 1.689 MB / 0.7755 GB, free: 145.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=195): time 9.448e-06/1.143, allocations: 4 kB / 0.7755 GB, free: 145.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=195): time 0.02645/1.17, allocations: 4.189 MB / 0.7796 GB, free: 141.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/1.17, allocations: 209.9 kB / 0.7798 GB, free: 141 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/1.172, allocations: 0.8619 MB / 0.7806 GB, free: 140.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0005499/1.173, allocations: 57.7 kB / 0.7807 GB, free: 140.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007444/1.173, allocations: 0.7033 MB / 0.7814 GB, free: 139.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001012/1.174, allocations: 0.6305 MB / 0.782 GB, free: 138.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001555/1.176, allocations: 363.2 kB / 0.7823 GB, free: 138.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.676e-05/1.176, allocations: 309.1 kB / 0.7826 GB, free: 138.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007028/1.183, allocations: 1.187 MB / 0.7838 GB, free: 136.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007642/1.191, allocations: 1.359 MB / 0.7851 GB, free: 135.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01482/1.206, allocations: 2.493 MB / 0.7876 GB, free: 133 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/1.206, allocations: 0 / 0.7876 GB, free: 133 MB / 0.5762 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.01775/1.224, allocations: 2.952 MB / 0.7904 GB, free: 130 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.812e-05/1.224, allocations: 4 kB / 0.7904 GB, free: 130 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/1.224, allocations: 7.984 kB / 0.7904 GB, free: 130 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009913/1.225, allocations: 88.78 kB / 0.7905 GB, free: 129.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007038/1.232, allocations: 0.5656 MB / 0.7911 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003146/1.235, allocations: 1.639 MB / 0.7927 GB, free: 127.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005477/1.24, allocations: 338.2 kB / 0.793 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007183/1.241, allocations: 91.89 kB / 0.7931 GB, free: 127.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (215): * Single equations (assignments): 214 * 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.001891/1.243, allocations: 410.2 kB / 0.7935 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/1.244, allocations: 146.2 kB / 0.7936 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01974/1.264, allocations: 3.487 MB / 0.797 GB, free: 123.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.577e-05/1.264, allocations: 20 kB / 0.797 GB, free: 123.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/1.264, allocations: 0 / 0.797 GB, free: 123.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.606e-05/1.264, allocations: 11.95 kB / 0.7971 GB, free: 123 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/1.287, allocations: 5.748 MB / 0.8027 GB, free: 117.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/1.287, allocations: 0 / 0.8027 GB, free: 117.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006376/1.293, allocations: 0.55 MB / 0.8032 GB, free: 116.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007697/1.294, allocations: 72.78 kB / 0.8033 GB, free: 116.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004935/1.295, allocations: 71.92 kB / 0.8033 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002655/1.297, allocations: 1.663 MB / 0.805 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.297, allocations: 0 / 0.805 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01728/1.315, allocations: 3.051 MB / 0.808 GB, free: 111.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/1.316, allocations: 0.5063 MB / 0.8084 GB, free: 111.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008551/1.317, allocations: 43.89 kB / 0.8085 GB, free: 111.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005144/1.322, allocations: 243.7 kB / 0.8087 GB, free: 110.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005014/1.323, allocations: 133.8 kB / 0.8088 GB, free: 110.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004694/1.323, allocations: 87.86 kB / 0.8089 GB, free: 110.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001597/1.325, allocations: 0.6388 MB / 0.8096 GB, free: 110 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.11e-07/1.325, allocations: 0 / 0.8096 GB, free: 110 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00289/1.328, allocations: 0.5984 MB / 0.8101 GB, free: 109.5 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (210): * Single equations (assignments): 207 * 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.002714/1.331, allocations: 0.6442 MB / 0.8108 GB, free: 109.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0146/1.345, allocations: 3.454 MB / 0.8141 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.585e-06/1.345, allocations: 0 / 0.8141 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004808/1.35, allocations: 1.65 MB / 0.8158 GB, free: 104 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/1.353, allocations: 344 kB / 0.8161 GB, free: 103.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/1.363, allocations: 4.941 MB / 0.8209 GB, free: 98.68 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/1.364, allocations: 1.369 MB / 0.8222 GB, free: 97.27 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002037/1.366, allocations: 267.2 kB / 0.8225 GB, free: 97.01 MB / 0.5762 GB Notification: Performance of SimCode: time 1.462e-06/1.366, allocations: 4 kB / 0.8225 GB, free: 97.01 MB / 0.5762 GB Notification: Performance of Templates: time 0.04702/1.413, allocations: 38.76 MB / 0.8603 GB, free: 58.25 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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.DiffusePerezCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezFunctions.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.DiffusePerezCalcHelperMain.o] Error 1