Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001532/0.001532, allocations: 102 kB / 16.27 MB, free: 5.945 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.001836/0.001837, allocations: 190.6 kB / 17.2 MB, free: 5.586 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.372/1.372, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8236/0.8236, allocations: 132.2 MB / 423.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 0.5024 GB, free: 11.65 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3394, allocations: 80.17 MB / 0.5807 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005962/0.3455, allocations: 4.916 MB / 0.5855 GB, free: 23.47 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1625/0.508, allocations: 150.8 MB / 0.7328 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008068/0.5089, allocations: 23.88 kB / 0.7328 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005413/0.5095, allocations: 186.1 kB / 0.733 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001634/0.5111, allocations: 0.558 MB / 0.7335 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002052/0.5132, allocations: 0.9238 MB / 0.7344 GB, free: 332 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001382/0.5146, allocations: 1.541 MB / 0.736 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.5159, allocations: 1.16 MB / 0.7371 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007278/0.5167, allocations: 0.6812 MB / 0.7378 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007083/0.5174, allocations: 0.735 MB / 0.7385 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002238/0.5176, allocations: 188 kB / 0.7386 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009105/0.5186, allocations: 0.5231 MB / 0.7392 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003482/0.5189, allocations: 442.6 kB / 0.7396 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006354/0.5196, allocations: 0.8123 MB / 0.7404 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002086/0.5216, allocations: 2.247 MB / 0.7426 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.5217, allocations: 4 kB / 0.7426 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.815e-06/0.5217, allocations: 3.984 kB / 0.7426 GB, free: 7.938 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.531e-05/0.5217, allocations: 0 / 0.7426 GB, free: 7.938 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.002808/0.5245, allocations: 1.822 MB / 0.7444 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.5246, allocations: 8.031 kB / 0.7444 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001003/0.5256, allocations: 234.8 kB / 0.7446 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.5267, allocations: 0.9033 MB / 0.7455 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.5269, allocations: 140.6 kB / 0.7456 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.5271, allocations: 140 kB / 0.7457 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002285/0.5294, allocations: 1.465 MB / 0.7472 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.5294, allocations: 4 kB / 0.7472 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.5296, allocations: 63.98 kB / 0.7472 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.698e-05/0.5296, allocations: 36 kB / 0.7473 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002402/0.532, allocations: 1.494 MB / 0.7487 GB, free: 1.469 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2572/0.7892, allocations: 3.933 MB / 0.7526 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.7909, allocations: 0.9016 MB / 0.7534 GB, free: 165 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006843/0.7916, allocations: 369.4 kB / 0.7538 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.291e-05/0.7917, allocations: 45.45 kB / 0.7538 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009697/0.7927, allocations: 0.5402 MB / 0.7544 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=93): time 3.286e-06/0.7927, allocations: 4.25 kB / 0.7544 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93): time 0.003639/0.7963, allocations: 1.374 MB / 0.7557 GB, free: 164 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.7964, allocations: 201.3 kB / 0.7559 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.7976, allocations: 0.7659 MB / 0.7567 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7e-05/0.7977, allocations: 42.8 kB / 0.7567 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004192/0.7981, allocations: 0.5749 MB / 0.7573 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.7983, allocations: 309.1 kB / 0.7576 GB, free: 162.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00036/0.7987, allocations: 192.3 kB / 0.7577 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.7988, allocations: 342.3 kB / 0.7581 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007344/0.7995, allocations: 328 kB / 0.7584 GB, free: 162 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008288/0.8004, allocations: 434.4 kB / 0.7588 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.8017, allocations: 0.7615 MB / 0.7595 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.8018, allocations: 5.844 kB / 0.7595 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002254/0.804, allocations: 1.028 MB / 0.7605 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.804, allocations: 7.344 kB / 0.7606 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.8041, allocations: 4.969 kB / 0.7606 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000625/0.8047, allocations: 84.02 kB / 0.7606 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008157/0.8055, allocations: 195.2 kB / 0.7608 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.8073, allocations: 1.65 MB / 0.7624 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007775/0.8081, allocations: 114.5 kB / 0.7625 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.018e-05/0.8082, allocations: 47.11 kB / 0.7626 GB, free: 159 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.0004907/0.8087, allocations: 318.5 kB / 0.7629 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.8089, allocations: 99.41 kB / 0.763 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002889/0.8118, allocations: 1.296 MB / 0.7643 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.8118, allocations: 10.84 kB / 0.7643 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.8118, allocations: 0 / 0.7643 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.8118, allocations: 5.578 kB / 0.7643 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003724/0.8155, allocations: 2.492 MB / 0.7667 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.8156, allocations: 0 / 0.7667 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006767/0.8162, allocations: 184.8 kB / 0.7669 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004217/0.8167, allocations: 70.11 kB / 0.7669 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.533e-05/0.8167, allocations: 31.69 kB / 0.767 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.8182, allocations: 1.678 MB / 0.7686 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.8183, allocations: 0 / 0.7686 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.8202, allocations: 1.115 MB / 0.7697 GB, free: 154 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003124/0.8205, allocations: 317.6 kB / 0.77 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.8207, allocations: 25.16 kB / 0.77 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006921/0.8214, allocations: 62.53 kB / 0.7701 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.8215, allocations: 77.3 kB / 0.7702 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.316e-05/0.8216, allocations: 36.7 kB / 0.7702 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006006/0.8222, allocations: 0.5611 MB / 0.7707 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.81e-07/0.8222, allocations: 0 / 0.7707 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008859/0.8231, allocations: 406.7 kB / 0.7711 GB, free: 152.7 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.001265/0.8244, allocations: 0.595 MB / 0.7717 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002497/0.8269, allocations: 1.205 MB / 0.7729 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.8269, allocations: 0 / 0.7729 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008481/0.8277, allocations: 0.586 MB / 0.7735 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.8289, allocations: 305.9 kB / 0.7738 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.833, allocations: 2.388 MB / 0.7761 GB, free: 148 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.8335, allocations: 1.169 MB / 0.7772 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003208/0.8338, allocations: 139.4 kB / 0.7774 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of SimCode: time 6.02e-07/0.8338, allocations: 0 / 0.7774 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.02167/0.8555, allocations: 23.89 MB / 0.8007 GB, free: 122.8 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile clang++ -std=c++17 -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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.o] Error 1