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.0007214/0.0007214, allocations: 98.88 kB / 16.02 MB, free: 76 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.0007527/0.0007527, allocations: 185.5 kB / 16.93 MB, free: 6.703 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.26/1.26, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8942/0.8942, allocations: 135.3 MB / 427.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002981, allocations: 11.98 kB / 0.5082 GB, free: 4.797 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1576, allocations: 82.31 MB / 0.5886 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005841/0.1634, allocations: 4.473 MB / 0.593 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4196/0.5831, allocations: 146.9 MB / 0.7364 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009016/0.584, allocations: 20.56 kB / 0.7364 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006939/0.5847, allocations: 153.6 kB / 0.7366 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001875/0.5866, allocations: 485.6 kB / 0.737 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002223/0.5888, allocations: 0.8122 MB / 0.7378 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001942/0.5908, allocations: 1.437 MB / 0.7392 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001459/0.5923, allocations: 1.078 MB / 0.7403 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008127/0.5931, allocations: 440.9 kB / 0.7407 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005537/0.5936, allocations: 483.2 kB / 0.7412 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.06e-05/0.5937, allocations: 28.19 kB / 0.7412 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008919/0.5946, allocations: 367 kB / 0.7416 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.5949, allocations: 238.2 kB / 0.7418 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004906/0.5954, allocations: 0.6028 MB / 0.7424 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.5968, allocations: 1.695 MB / 0.744 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.5968, allocations: 1.438 kB / 0.744 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.734e-06/0.5969, allocations: 0 / 0.744 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.879e-05/0.5969, allocations: 0 / 0.744 GB, free: 10.14 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.002374/0.5993, allocations: 1.49 MB / 0.7455 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.5993, allocations: 13.62 kB / 0.7455 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009103/0.6002, allocations: 242.8 kB / 0.7457 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.6014, allocations: 0.8993 MB / 0.7466 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.6015, allocations: 138.3 kB / 0.7467 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/0.6017, allocations: 143.1 kB / 0.7469 GB, free: 7.965 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/0.604, allocations: 1.474 MB / 0.7483 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.604, allocations: 0 / 0.7483 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.6042, allocations: 60.73 kB / 0.7484 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.6042, allocations: 40.73 kB / 0.7484 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002167/0.6064, allocations: 1.505 MB / 0.7499 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005531/0.6119, allocations: 3.97 MB / 0.7538 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.6134, allocations: 0.9202 MB / 0.7547 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.614, allocations: 367.6 kB / 0.755 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.179e-05/0.6141, allocations: 40.94 kB / 0.755 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009375/0.615, allocations: 0.5475 MB / 0.7556 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=93): time 2.374e-06/0.6151, allocations: 0 / 0.7556 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=93): time 0.003267/0.6183, allocations: 1.395 MB / 0.7569 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.971e-05/0.6184, allocations: 192.9 kB / 0.7571 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.6195, allocations: 0.7628 MB / 0.7579 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.543e-05/0.6196, allocations: 41.7 kB / 0.7579 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004468/0.62, allocations: 0.5736 MB / 0.7585 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.6203, allocations: 315.5 kB / 0.7588 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.6204, allocations: 77.67 kB / 0.7588 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.6205, allocations: 345.9 kB / 0.7592 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006094/0.6211, allocations: 333.8 kB / 0.7595 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006922/0.6218, allocations: 435.9 kB / 0.7599 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.6231, allocations: 0.7744 MB / 0.7607 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.6231, allocations: 0 / 0.7607 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002135/0.6253, allocations: 1.036 MB / 0.7617 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.6253, allocations: 4 kB / 0.7617 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.6253, allocations: 0 / 0.7617 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005938/0.6259, allocations: 96.75 kB / 0.7618 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008202/0.6268, allocations: 200.6 kB / 0.762 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/0.6287, allocations: 1.532 MB / 0.7635 GB, free: 8.832 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008003/0.6295, allocations: 112.2 kB / 0.7636 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-05/0.6296, allocations: 48.03 kB / 0.7636 GB, free: 8.676 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.0005913/0.6302, allocations: 325.5 kB / 0.7639 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.6304, allocations: 102.7 kB / 0.764 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002745/0.6331, allocations: 1.285 MB / 0.7653 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.6332, allocations: 12 kB / 0.7653 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.6332, allocations: 3.938 kB / 0.7653 GB, free: 6.938 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.6332, allocations: 7.984 kB / 0.7653 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/0.637, allocations: 2.511 MB / 0.7677 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.637, allocations: 0 / 0.7677 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006998/0.6377, allocations: 175.8 kB / 0.7679 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000516/0.6382, allocations: 92.7 kB / 0.768 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.784e-05/0.6383, allocations: 27.98 kB / 0.768 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001715/0.64, allocations: 1.559 MB / 0.7696 GB, free: 2.367 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.64, allocations: 3.984 kB / 0.7696 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.6421, allocations: 1.121 MB / 0.7707 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004438/0.6425, allocations: 343.3 kB / 0.771 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.6427, allocations: 23.94 kB / 0.771 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007119/0.6434, allocations: 79.94 kB / 0.7711 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.6435, allocations: 72.89 kB / 0.7711 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.419e-05/0.6436, allocations: 35.98 kB / 0.7712 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006971/0.6443, allocations: 0.5576 MB / 0.7717 GB, free: 108 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6443, allocations: 0 / 0.7717 GB, free: 108 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001048/0.6454, allocations: 402.5 kB / 0.7721 GB, free: 15.71 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.001312/0.6467, allocations: 0.6076 MB / 0.7727 GB, free: 15.31 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001765/0.6485, allocations: 0.9717 MB / 0.7737 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6485, allocations: 4.062 kB / 0.7737 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009492/0.6494, allocations: 0.5783 MB / 0.7742 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.6507, allocations: 274.4 kB / 0.7745 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004851/0.6556, allocations: 3.095 MB / 0.7775 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006707/0.6563, allocations: 1.171 MB / 0.7786 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000371/0.6566, allocations: 135.4 kB / 0.7788 GB, free: 9.016 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/0.6566, allocations: 0 / 0.7788 GB, free: 9.016 MB / 0.5919 GB Notification: Performance of Templates: time 0.02778/0.6844, allocations: 23.72 MB / 0.8019 GB, free: 1.34 MB / 0.6075 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