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.001248/0.001248, allocations: 103.9 kB / 16.27 MB, free: 6.414 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.001198/0.001198, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.299/1.299, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7971/0.7971, allocations: 135.2 MB / 426.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 59.91 kB / 0.506 GB, free: 8.371 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.344, allocations: 80.93 MB / 0.5851 GB, free: 25.34 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005406/0.3494, allocations: 4.913 MB / 0.5899 GB, free: 21.49 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1668/0.5163, allocations: 150.8 MB / 0.7371 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009065/0.5172, allocations: 19.94 kB / 0.7371 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006377/0.5179, allocations: 190.1 kB / 0.7373 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00178/0.5197, allocations: 0.5577 MB / 0.7379 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002178/0.5219, allocations: 0.9244 MB / 0.7388 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001694/0.5236, allocations: 1.541 MB / 0.7403 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00158/0.5252, allocations: 1.156 MB / 0.7414 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008913/0.5261, allocations: 0.6812 MB / 0.7421 GB, free: 9.191 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008259/0.5269, allocations: 0.7272 MB / 0.7428 GB, free: 8.461 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002351/0.5272, allocations: 192 kB / 0.743 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001033/0.5282, allocations: 0.527 MB / 0.7435 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004335/0.5287, allocations: 442.5 kB / 0.7439 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007835/0.5294, allocations: 0.8084 MB / 0.7447 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002701/0.5322, allocations: 2.255 MB / 0.7469 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.5322, allocations: 0 / 0.7469 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5322, allocations: 0 / 0.7469 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.799e-05/0.5322, allocations: 0 / 0.7469 GB, free: 4.238 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.003002/0.5352, allocations: 1.826 MB / 0.7487 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.5353, allocations: 9.109 kB / 0.7487 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009658/0.5362, allocations: 238.8 kB / 0.7489 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.5375, allocations: 0.9033 MB / 0.7498 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.5377, allocations: 140.6 kB / 0.7499 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.5379, allocations: 144 kB / 0.7501 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2772/0.8151, allocations: 1.46 MB / 0.7515 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.368e-05/0.8151, allocations: 0.625 kB / 0.7515 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.8153, allocations: 61.59 kB / 0.7515 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.112e-05/0.8153, allocations: 37.19 kB / 0.7516 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002647/0.818, allocations: 1.499 MB / 0.753 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006229/0.8242, allocations: 3.929 MB / 0.7569 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001719/0.826, allocations: 0.9124 MB / 0.7578 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007063/0.8267, allocations: 366.1 kB / 0.7581 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001058/0.8268, allocations: 37.69 kB / 0.7582 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.8279, allocations: 0.5508 MB / 0.7587 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=93): time 3.086e-06/0.828, allocations: 0 / 0.7587 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93): time 0.003464/0.8314, allocations: 1.38 MB / 0.76 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.928e-05/0.8315, allocations: 191 kB / 0.7602 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008756/0.8324, allocations: 0.764 MB / 0.761 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.398e-05/0.8325, allocations: 42.98 kB / 0.761 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003611/0.8328, allocations: 0.5746 MB / 0.7616 GB, free: 158.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.833, allocations: 314.2 kB / 0.7619 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002552/0.8333, allocations: 193 kB / 0.7621 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.029e-05/0.8333, allocations: 345.8 kB / 0.7624 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000543/0.8339, allocations: 327.9 kB / 0.7627 GB, free: 158 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006244/0.8345, allocations: 432.5 kB / 0.7631 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.8357, allocations: 0.7659 MB / 0.7639 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.8357, allocations: 3.812 kB / 0.7639 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.00188/0.8376, allocations: 1.021 MB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.8376, allocations: 5.5 kB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.8376, allocations: 3.656 kB / 0.7649 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005713/0.8382, allocations: 88.7 kB / 0.765 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007436/0.839, allocations: 196.6 kB / 0.7651 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.8406, allocations: 1.648 MB / 0.7668 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006971/0.8413, allocations: 113.4 kB / 0.7669 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.466e-05/0.8414, allocations: 44.81 kB / 0.7669 GB, free: 154.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.0004688/0.8419, allocations: 318.2 kB / 0.7672 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.842, allocations: 98.81 kB / 0.7673 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002349/0.8444, allocations: 1.285 MB / 0.7686 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.964e-06/0.8444, allocations: 16.59 kB / 0.7686 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.8444, allocations: 0 / 0.7686 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.8444, allocations: 9.062 kB / 0.7686 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.8478, allocations: 2.5 MB / 0.771 GB, free: 150.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.8478, allocations: 0 / 0.771 GB, free: 150.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000646/0.8484, allocations: 176.7 kB / 0.7712 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004414/0.8489, allocations: 81.44 kB / 0.7713 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.848e-05/0.849, allocations: 23.98 kB / 0.7713 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.8505, allocations: 1.681 MB / 0.7729 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.8505, allocations: 2.578 kB / 0.7729 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.8523, allocations: 1.118 MB / 0.774 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003462/0.8527, allocations: 311.5 kB / 0.7743 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.8528, allocations: 27.16 kB / 0.7743 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006329/0.8534, allocations: 59.94 kB / 0.7744 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.8536, allocations: 72.89 kB / 0.7745 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-05/0.8537, allocations: 43.97 kB / 0.7745 GB, free: 147 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005704/0.8542, allocations: 0.5569 MB / 0.7751 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8542, allocations: 0 / 0.7751 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009003/0.8551, allocations: 401.7 kB / 0.7754 GB, free: 146 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.001714/0.8569, allocations: 0.606 MB / 0.776 GB, free: 145.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002412/0.8593, allocations: 1.202 MB / 0.7772 GB, free: 144.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.8593, allocations: 3.938 kB / 0.7772 GB, free: 144.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007971/0.8601, allocations: 0.586 MB / 0.7778 GB, free: 143.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.8613, allocations: 306.6 kB / 0.7781 GB, free: 143.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.8655, allocations: 2.386 MB / 0.7804 GB, free: 141.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.8659, allocations: 1.161 MB / 0.7815 GB, free: 140 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003234/0.8663, allocations: 143.3 kB / 0.7817 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of SimCode: time 4.6e-07/0.8663, allocations: 4 kB / 0.7817 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.02278/0.889, allocations: 23.91 MB / 0.805 GB, free: 116 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++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-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