Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006141/0.006141, allocations: 101.4 kB / 15.88 MB, free: 5.871 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.001148/0.001148, allocations: 191.5 kB / 16.79 MB, free: 5.816 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.396/1.396, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9355/0.9355, allocations: 135.1 MB / 425.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 64.5 kB / 0.5053 GB, free: 5.727 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.164, allocations: 80.93 MB / 0.5843 GB, free: 4.969 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.007032/0.171, allocations: 4.916 MB / 0.5891 GB, free: 24 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5132/0.6843, allocations: 148.5 MB / 0.7341 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001333/0.6857, allocations: 18.25 kB / 0.7341 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001026/0.6868, allocations: 150.6 kB / 0.7343 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002635/0.6894, allocations: 488.8 kB / 0.7348 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002901/0.6923, allocations: 0.8183 MB / 0.7356 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002656/0.695, allocations: 1.443 MB / 0.737 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002071/0.6971, allocations: 1.106 MB / 0.738 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001332/0.6984, allocations: 0.5935 MB / 0.7386 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.6998, allocations: 0.6856 MB / 0.7393 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004896/0.7003, allocations: 105.7 kB / 0.7394 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.7016, allocations: 451.7 kB / 0.7398 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000404/0.702, allocations: 352.5 kB / 0.7402 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0008303/0.7029, allocations: 0.7317 MB / 0.7409 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001869/0.7048, allocations: 1.73 MB / 0.7426 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.7048, allocations: 4 kB / 0.7426 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.102e-06/0.7048, allocations: 1.375 kB / 0.7426 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.017e-05/0.7048, allocations: 0 / 0.7426 GB, free: 8.648 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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.003571/0.7084, allocations: 1.824 MB / 0.7444 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.7084, allocations: 9.562 kB / 0.7444 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001073/0.7095, allocations: 243.8 kB / 0.7446 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.7109, allocations: 0.8986 MB / 0.7455 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.711, allocations: 139.6 kB / 0.7456 GB, free: 6.297 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.7112, allocations: 142 kB / 0.7457 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002555/0.7138, allocations: 1.462 MB / 0.7472 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.893e-05/0.7138, allocations: 2.25 kB / 0.7472 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/0.7139, allocations: 61 kB / 0.7472 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.273e-05/0.714, allocations: 36.84 kB / 0.7473 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002526/0.7165, allocations: 1.497 MB / 0.7487 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00751/0.724, allocations: 3.937 MB / 0.7526 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.7257, allocations: 0.9013 MB / 0.7535 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006191/0.7263, allocations: 367.7 kB / 0.7538 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.983e-05/0.7264, allocations: 41.08 kB / 0.7538 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001096/0.7275, allocations: 0.5404 MB / 0.7544 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=93): time 5.54e-06/0.7275, allocations: 0 / 0.7544 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93): time 0.00356/0.7311, allocations: 1.38 MB / 0.7557 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.7312, allocations: 198.2 kB / 0.7559 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.7323, allocations: 0.7668 MB / 0.7567 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.214e-05/0.7324, allocations: 41.7 kB / 0.7567 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004919/0.7329, allocations: 0.5697 MB / 0.7573 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.7332, allocations: 311.5 kB / 0.7575 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002951/0.7335, allocations: 194.5 kB / 0.7577 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.7336, allocations: 341.9 kB / 0.7581 GB, free: 11 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006096/0.7343, allocations: 329.8 kB / 0.7584 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007329/0.735, allocations: 439.9 kB / 0.7588 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.7364, allocations: 0.7627 MB / 0.7595 GB, free: 9.453 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.7364, allocations: 4 kB / 0.7595 GB, free: 9.449 MB / 0.5762 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002277/0.7387, allocations: 1.02 MB / 0.7605 GB, free: 8.418 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.7387, allocations: 6.344 kB / 0.7605 GB, free: 8.414 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.7387, allocations: 4 kB / 0.7605 GB, free: 8.41 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006606/0.7394, allocations: 89.42 kB / 0.7606 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008573/0.7403, allocations: 195.7 kB / 0.7608 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002386/0.7427, allocations: 1.54 MB / 0.7623 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009455/0.7436, allocations: 95.08 kB / 0.7624 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.961e-05/0.7437, allocations: 47.95 kB / 0.7625 GB, free: 6.312 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (111): * Single equations (assignments): 110 * 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.0006981/0.7444, allocations: 325.7 kB / 0.7628 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001967/0.7446, allocations: 98.72 kB / 0.7629 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002958/0.7476, allocations: 1.292 MB / 0.7641 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.7476, allocations: 8 kB / 0.7641 GB, free: 4.578 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.7476, allocations: 0 / 0.7641 GB, free: 4.578 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.7476, allocations: 3.984 kB / 0.7641 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004077/0.7517, allocations: 2.495 MB / 0.7666 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.7517, allocations: 0.5625 kB / 0.7666 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007349/0.7525, allocations: 183.7 kB / 0.7668 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005332/0.753, allocations: 84.77 kB / 0.7668 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.956e-05/0.7531, allocations: 27.98 kB / 0.7669 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002066/0.7552, allocations: 1.58 MB / 0.7684 GB, free: 8 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.7552, allocations: 0 / 0.7684 GB, free: 8 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.7575, allocations: 1.113 MB / 0.7695 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004537/0.758, allocations: 307.5 kB / 0.7698 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.7582, allocations: 31.88 kB / 0.7698 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007122/0.7589, allocations: 59.94 kB / 0.7699 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.7591, allocations: 72.89 kB / 0.7699 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.7592, allocations: 39.97 kB / 0.77 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008387/0.76, allocations: 0.5615 MB / 0.7705 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7601, allocations: 0 / 0.7705 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001183/0.7612, allocations: 402.5 kB / 0.7709 GB, free: 13.41 MB / 0.5919 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 (107): * Single equations (assignments): 104 * 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.001432/0.7627, allocations: 0.5938 MB / 0.7715 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002003/0.7647, allocations: 0.96 MB / 0.7724 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.7647, allocations: 7.938 kB / 0.7724 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.7657, allocations: 0.5705 MB / 0.773 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.767, allocations: 288.8 kB / 0.7733 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00533/0.7723, allocations: 3.036 MB / 0.7762 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008173/0.7732, allocations: 1.171 MB / 0.7774 GB, free: 6.93 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004091/0.7736, allocations: 135.4 kB / 0.7775 GB, free: 6.801 MB / 0.5919 GB Notification: Performance of SimCode: time 6.11e-07/0.7736, allocations: 3.938 kB / 0.7775 GB, free: 6.797 MB / 0.5919 GB Notification: Performance of Templates: time 0.04191/0.8155, allocations: 23.88 MB / 0.8008 GB, free: 14.96 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.DirectTiltedSurfaceCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceFunctions.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.DirectTiltedSurfaceCalcHelperMain.o] Error 1