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.001093/0.001093, allocations: 102.2 kB / 15.98 MB, free: 6.352 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.001244/0.001244, allocations: 196.8 kB / 16.91 MB, free: 6.191 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.436/1.436, allocations: 222.9 MB / 240.6 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.046/1.046, allocations: 135.1 MB / 425.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 61.09 kB / 0.5055 GB, free: 5.613 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.201, allocations: 80.92 MB / 0.5845 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.008148/0.2092, allocations: 4.927 MB / 0.5893 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5661/0.7753, allocations: 148.6 MB / 0.7344 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001284/0.7766, allocations: 18.09 kB / 0.7344 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009922/0.7777, allocations: 152.1 kB / 0.7346 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002639/0.7803, allocations: 0.4888 MB / 0.735 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002937/0.7833, allocations: 0.8406 MB / 0.7359 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002693/0.786, allocations: 1.546 MB / 0.7374 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.788, allocations: 1.147 MB / 0.7385 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00144/0.7894, allocations: 0.6848 MB / 0.7392 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001512/0.791, allocations: 0.7392 MB / 0.7399 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0007555/0.7917, allocations: 197.8 kB / 0.7401 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.7936, allocations: 0.5158 MB / 0.7406 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0007642/0.7943, allocations: 443 kB / 0.741 GB, free: 9.977 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001684/0.796, allocations: 0.81 MB / 0.7418 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003017/0.7991, allocations: 1.761 MB / 0.7435 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.7991, allocations: 2.906 kB / 0.7435 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.375e-06/0.7991, allocations: 0 / 0.7435 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.101e-05/0.7992, allocations: 0 / 0.7435 GB, free: 8.609 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.003911/0.8031, allocations: 1.823 MB / 0.7453 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.8032, allocations: 13.94 kB / 0.7453 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.8042, allocations: 236.9 kB / 0.7455 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.8057, allocations: 0.8949 MB / 0.7464 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.8058, allocations: 145.4 kB / 0.7465 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.806, allocations: 143.5 kB / 0.7467 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002502/0.8085, allocations: 1.463 MB / 0.7481 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.8085, allocations: 0 / 0.7481 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.8087, allocations: 61.78 kB / 0.7482 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.282e-05/0.8087, allocations: 39.08 kB / 0.7482 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00233/0.8111, allocations: 1.493 MB / 0.7497 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006362/0.8174, allocations: 3.929 MB / 0.7535 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.8189, allocations: 0.9093 MB / 0.7544 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005861/0.8195, allocations: 371.7 kB / 0.7547 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.31e-05/0.8196, allocations: 40.84 kB / 0.7548 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.8207, allocations: 0.5461 MB / 0.7553 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=93): time 2.826e-06/0.8207, allocations: 0 / 0.7553 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93): time 0.003533/0.8243, allocations: 1.372 MB / 0.7567 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.8244, allocations: 196.9 kB / 0.7568 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.8257, allocations: 0.7628 MB / 0.7576 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.8258, allocations: 41.7 kB / 0.7576 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005416/0.8263, allocations: 0.5736 MB / 0.7582 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002971/0.8266, allocations: 307.5 kB / 0.7585 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003261/0.827, allocations: 204.3 kB / 0.7587 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.8271, allocations: 341.9 kB / 0.759 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006897/0.8278, allocations: 325.8 kB / 0.7593 GB, free: 9.906 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000873/0.8287, allocations: 439.9 kB / 0.7597 GB, free: 9.457 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.8303, allocations: 0.7627 MB / 0.7605 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.8303, allocations: 0 / 0.7605 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002636/0.8329, allocations: 1.028 MB / 0.7615 GB, free: 7.645 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.833, allocations: 8.125 kB / 0.7615 GB, free: 7.637 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.833, allocations: 4 kB / 0.7615 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006551/0.8337, allocations: 92.69 kB / 0.7616 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008751/0.8345, allocations: 191.7 kB / 0.7618 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002552/0.8371, allocations: 1.639 MB / 0.7634 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.8381, allocations: 99.11 kB / 0.7635 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.8383, allocations: 49.08 kB / 0.7635 GB, free: 5.422 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.0007777/0.8391, allocations: 325.6 kB / 0.7638 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003294/0.8394, allocations: 98.78 kB / 0.7639 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003232/0.8426, allocations: 1.288 MB / 0.7652 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.8427, allocations: 12 kB / 0.7652 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.8427, allocations: 3.938 kB / 0.7652 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.8427, allocations: 3.984 kB / 0.7652 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005391/0.8481, allocations: 2.505 MB / 0.7676 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/0.8481, allocations: 0 / 0.7676 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008097/0.8489, allocations: 187.7 kB / 0.7678 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004812/0.8494, allocations: 64.8 kB / 0.7679 GB, free: 0.8594 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.65e-05/0.8496, allocations: 31.97 kB / 0.7679 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00222/0.8518, allocations: 1.674 MB / 0.7695 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.8518, allocations: 0 / 0.7695 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.8544, allocations: 1.113 MB / 0.7706 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000691/0.8551, allocations: 315.5 kB / 0.7709 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002946/0.8554, allocations: 23.94 kB / 0.7709 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00091/0.8563, allocations: 62.44 kB / 0.771 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/0.8565, allocations: 72.89 kB / 0.7711 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.8566, allocations: 39.98 kB / 0.7711 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001063/0.8577, allocations: 0.565 MB / 0.7717 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.01e-07/0.8577, allocations: 0 / 0.7717 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001555/0.8593, allocations: 402.5 kB / 0.7721 GB, free: 12.4 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.001874/0.8612, allocations: 0.5842 MB / 0.7726 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00342/0.8646, allocations: 1.213 MB / 0.7738 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.8646, allocations: 3.938 kB / 0.7738 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.8659, allocations: 0.5824 MB / 0.7744 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.8677, allocations: 309.3 kB / 0.7747 GB, free: 9.93 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006842/0.8746, allocations: 3.033 MB / 0.7776 GB, free: 6.871 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/0.876, allocations: 1.165 MB / 0.7788 GB, free: 5.68 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007007/0.8767, allocations: 135.4 kB / 0.7789 GB, free: 5.551 MB / 0.5919 GB Notification: Performance of SimCode: time 1.954e-06/0.8767, allocations: 4 kB / 0.7789 GB, free: 5.547 MB / 0.5919 GB Notification: Performance of Templates: time 0.03874/0.9155, allocations: 23.9 MB / 0.8022 GB, free: 13.69 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