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.001502/0.001502, allocations: 109.4 kB / 15.99 MB, free: 6.344 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.001524/0.001524, allocations: 196.2 kB / 16.91 MB, free: 6.176 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.309/1.309, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7982/0.7982, allocations: 135.2 MB / 425.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 67.89 kB / 0.5055 GB, free: 8.652 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3305, allocations: 80.92 MB / 0.5846 GB, free: 25.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.004898/0.3354, allocations: 4.913 MB / 0.5894 GB, free: 21.44 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1548/0.4903, allocations: 148.6 MB / 0.7344 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008008/0.4911, allocations: 19.88 kB / 0.7345 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005589/0.4917, allocations: 150.8 kB / 0.7346 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001532/0.4932, allocations: 0.4895 MB / 0.7351 GB, free: 100 kB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001859/0.4951, allocations: 0.8344 MB / 0.7359 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001453/0.4966, allocations: 1.541 MB / 0.7374 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.4979, allocations: 1.16 MB / 0.7385 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008761/0.4988, allocations: 0.685 MB / 0.7392 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007194/0.4996, allocations: 0.7388 MB / 0.7399 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.4998, allocations: 188 kB / 0.7401 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008549/0.5006, allocations: 0.5153 MB / 0.7406 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003607/0.501, allocations: 450.5 kB / 0.741 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006631/0.5017, allocations: 0.8006 MB / 0.7418 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.5034, allocations: 1.774 MB / 0.7435 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.5034, allocations: 0 / 0.7435 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5034, allocations: 0 / 0.7435 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.659e-05/0.5035, allocations: 0 / 0.7435 GB, free: 7.371 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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.002921/0.5064, allocations: 1.818 MB / 0.7453 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.5064, allocations: 9.109 kB / 0.7453 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000954/0.5074, allocations: 242.8 kB / 0.7456 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.5086, allocations: 0.8994 MB / 0.7464 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.5087, allocations: 136.7 kB / 0.7466 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.5089, allocations: 144 kB / 0.7467 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/0.5113, allocations: 1.461 MB / 0.7481 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.5113, allocations: 0 / 0.7481 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001211/0.5115, allocations: 64 kB / 0.7482 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/0.5115, allocations: 40 kB / 0.7482 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/0.5139, allocations: 1.498 MB / 0.7497 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2463/0.7601, allocations: 3.923 MB / 0.7535 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.7617, allocations: 0.9131 MB / 0.7544 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005822/0.7623, allocations: 365.7 kB / 0.7548 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.444e-05/0.7624, allocations: 39.09 kB / 0.7548 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.7634, allocations: 0.5483 MB / 0.7553 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=93): time 2.464e-06/0.7634, allocations: 2.688 kB / 0.7553 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93): time 0.003307/0.7668, allocations: 1.379 MB / 0.7567 GB, free: 162 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.7668, allocations: 195.5 kB / 0.7569 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.7679, allocations: 0.7607 MB / 0.7576 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.522e-05/0.768, allocations: 42.92 kB / 0.7577 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.7683, allocations: 0.5766 MB / 0.7582 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001919/0.7685, allocations: 308.8 kB / 0.7585 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/0.7688, allocations: 191 kB / 0.7587 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.132e-05/0.7689, allocations: 344.6 kB / 0.759 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000645/0.7695, allocations: 321.6 kB / 0.7593 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007188/0.7703, allocations: 442.7 kB / 0.7598 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.7715, allocations: 0.7709 MB / 0.7605 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.7715, allocations: 1.344 kB / 0.7605 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001986/0.7735, allocations: 1.028 MB / 0.7615 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.7735, allocations: 5.156 kB / 0.7615 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.7735, allocations: 1.438 kB / 0.7615 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000577/0.7741, allocations: 89.31 kB / 0.7616 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007894/0.7749, allocations: 198.2 kB / 0.7618 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.7766, allocations: 1.648 MB / 0.7634 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007458/0.7774, allocations: 104 kB / 0.7635 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-05/0.7774, allocations: 42.62 kB / 0.7635 GB, free: 156.9 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.0004921/0.7779, allocations: 313.5 kB / 0.7638 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.7781, allocations: 99.53 kB / 0.7639 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002453/0.7806, allocations: 1.301 MB / 0.7652 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.7806, allocations: 10.88 kB / 0.7652 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.7806, allocations: 0.9062 kB / 0.7652 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.7806, allocations: 7.969 kB / 0.7652 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003121/0.7838, allocations: 2.499 MB / 0.7677 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.7838, allocations: 4 kB / 0.7677 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006234/0.7844, allocations: 175.8 kB / 0.7678 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004031/0.7848, allocations: 76.91 kB / 0.7679 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.316e-05/0.7849, allocations: 23.98 kB / 0.7679 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.7863, allocations: 1.679 MB / 0.7696 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.7863, allocations: 1.312 kB / 0.7696 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.788, allocations: 1.112 MB / 0.7707 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.7883, allocations: 307.5 kB / 0.771 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.7884, allocations: 35.78 kB / 0.771 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006506/0.7891, allocations: 65.88 kB / 0.7711 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.7892, allocations: 76.83 kB / 0.7711 GB, free: 150.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.695e-05/0.7893, allocations: 39.97 kB / 0.7712 GB, free: 150.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000531/0.7898, allocations: 0.5576 MB / 0.7717 GB, free: 149.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7898, allocations: 0 / 0.7717 GB, free: 149.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008562/0.7907, allocations: 399.6 kB / 0.7721 GB, free: 149.1 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 (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.001694/0.7924, allocations: 0.6049 MB / 0.7727 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002326/0.7947, allocations: 1.193 MB / 0.7738 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.7947, allocations: 0 / 0.7738 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007548/0.7955, allocations: 0.5929 MB / 0.7744 GB, free: 147 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.7966, allocations: 304.9 kB / 0.7747 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.8003, allocations: 3.03 MB / 0.7777 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004061/0.8007, allocations: 1.165 MB / 0.7788 GB, free: 142.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003053/0.801, allocations: 135.4 kB / 0.7789 GB, free: 142.4 MB / 0.5762 GB Notification: Performance of SimCode: time 3.7e-07/0.801, allocations: 0 / 0.7789 GB, free: 142.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.01918/0.8202, allocations: 23.91 MB / 0.8023 GB, free: 118.5 MB / 0.5762 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