Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3") translateModel(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 103.7 kB / 15.98 MB, free: 6.348 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.001218/0.001219, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.364/1.364, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.746/0.746, allocations: 132.2 MB / 422.9 MB, free: 6.773 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 63.89 kB / 0.5019 GB, free: 11.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4074/0.4085, allocations: 80.18 MB / 0.5802 GB, free: 27.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.007002/0.4155, allocations: 6.206 MB / 0.5863 GB, free: 22.51 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1554/0.5709, allocations: 150.9 MB / 0.7337 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001705/0.5727, allocations: 35.81 kB / 0.7337 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009852/0.5737, allocations: 250 kB / 0.7339 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002513/0.5762, allocations: 0.5706 MB / 0.7345 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002935/0.5792, allocations: 1.172 MB / 0.7356 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002737/0.5819, allocations: 2.321 MB / 0.7379 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001403/0.5833, allocations: 1.068 MB / 0.7389 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.5845, allocations: 0.7823 MB / 0.7397 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008484/0.5854, allocations: 0.7894 MB / 0.7405 GB, free: 9.781 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002339/0.5856, allocations: 188 kB / 0.7407 GB, free: 9.598 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001551/0.5872, allocations: 0.9169 MB / 0.7415 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000368/0.5875, allocations: 498.3 kB / 0.742 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007142/0.5883, allocations: 0.8976 MB / 0.7429 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002179/0.5904, allocations: 2.031 MB / 0.7449 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.5905, allocations: 0 / 0.7449 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.192e-06/0.5905, allocations: 4 kB / 0.7449 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.641e-05/0.5905, allocations: 0 / 0.7449 GB, free: 5.25 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: 341 * Number of variables: 341 Notification: Performance of Generate backend data structure: time 0.00346/0.594, allocations: 2.15 MB / 0.747 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.594, allocations: 12.03 kB / 0.747 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/0.5959, allocations: 358.2 kB / 0.7473 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.5975, allocations: 1.2 MB / 0.7485 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.872e-05/0.5976, allocations: 98.69 kB / 0.7486 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.5977, allocations: 132 kB / 0.7487 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.347/0.9447, allocations: 1.519 MB / 0.7502 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.146e-05/0.9448, allocations: 5.188 kB / 0.7502 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001949/0.945, allocations: 62 kB / 0.7503 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.178e-05/0.9451, allocations: 32.88 kB / 0.7503 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004697/0.9498, allocations: 2.039 MB / 0.7523 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007855/0.9576, allocations: 4.438 MB / 0.7566 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003333/0.961, allocations: 1.426 MB / 0.758 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.9621, allocations: 0.5355 MB / 0.7586 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/0.9623, allocations: 61.39 kB / 0.7586 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001533/0.9638, allocations: 0.792 MB / 0.7594 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=136): time 3.827e-06/0.9639, allocations: 1.688 kB / 0.7594 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=136): time 0.005972/0.9698, allocations: 2.11 MB / 0.7614 GB, free: 160 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001767/0.97, allocations: 353.2 kB / 0.7618 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/0.972, allocations: 1.081 MB / 0.7628 GB, free: 159 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002076/0.9722, allocations: 50.05 kB / 0.7629 GB, free: 159 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004488/0.9727, allocations: 0.6106 MB / 0.7635 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/0.973, allocations: 452.8 kB / 0.7639 GB, free: 158 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004395/0.9735, allocations: 283.4 kB / 0.7642 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.343e-05/0.9736, allocations: 355.3 kB / 0.7645 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009615/0.9745, allocations: 478.2 kB / 0.765 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.9757, allocations: 0.6501 MB / 0.7656 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001983/0.9777, allocations: 1.122 MB / 0.7667 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.9777, allocations: 1.781 kB / 0.7667 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003544/0.9812, allocations: 1.519 MB / 0.7682 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.9813, allocations: 7.344 kB / 0.7682 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.579e-05/0.9813, allocations: 2.281 kB / 0.7682 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.9824, allocations: 168.9 kB / 0.7684 GB, free: 155.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.9835, allocations: 292.5 kB / 0.7686 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0033/0.9868, allocations: 3.294 MB / 0.7719 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.9884, allocations: 160.8 kB / 0.772 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.9885, allocations: 67.95 kB / 0.7721 GB, free: 151.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 16 (weaDatInpCon.conTim.canRepeatWeatherFile,weaDatInpCon.conTimMin.canRepeatWeatherFile,weaDatInpCon.conTim.tNext,$PRE.weaDatInpCon.conTim.tNext,weaDatInpCon.conTimMin.tNext,$PRE.weaDatInpCon.conTimMin.tNext,$whenCondition1,$whenCondition2,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 159 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0008/0.9894, allocations: 387.7 kB / 0.7724 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/0.9897, allocations: 154.1 kB / 0.7726 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004075/0.9938, allocations: 1.965 MB / 0.7745 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.9938, allocations: 19.98 kB / 0.7745 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.9938, allocations: 4.094 kB / 0.7745 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.9938, allocations: 15.91 kB / 0.7746 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.9954, allocations: 1.456 MB / 0.776 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.9954, allocations: 0 / 0.776 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009763/0.9964, allocations: 279.6 kB / 0.7762 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008214/0.9972, allocations: 149.5 kB / 0.7764 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.9973, allocations: 47.97 kB / 0.7764 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003201/1.001, allocations: 3.336 MB / 0.7797 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.001, allocations: 0 / 0.7797 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003881/1.004, allocations: 1.634 MB / 0.7813 GB, free: 141.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000735/1.005, allocations: 426.7 kB / 0.7817 GB, free: 141.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/1.005, allocations: 34.2 kB / 0.7817 GB, free: 141.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009866/1.006, allocations: 117.3 kB / 0.7818 GB, free: 141 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002473/1.007, allocations: 113.8 kB / 0.7819 GB, free: 140.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/1.007, allocations: 59.97 kB / 0.782 GB, free: 140.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001036/1.008, allocations: 0.7417 MB / 0.7827 GB, free: 140.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/1.008, allocations: 4 kB / 0.7827 GB, free: 140.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001325/1.009, allocations: 474.8 kB / 0.7832 GB, free: 139.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition4,$whenCondition3,weaDat.conTimMin.tNext,weaDat.conTim.tNext,$whenCondition2,$whenCondition1,weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext) * Number of discrete states: 4 (weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001533/1.011, allocations: 0.645 MB / 0.7838 GB, free: 139.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003863/1.015, allocations: 1.865 MB / 0.7856 GB, free: 137.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/1.015, allocations: 4 kB / 0.7856 GB, free: 137.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001423/1.016, allocations: 0.9575 MB / 0.7866 GB, free: 136.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/1.018, allocations: 0.5374 MB / 0.7871 GB, free: 135.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006411/1.024, allocations: 3.801 MB / 0.7908 GB, free: 132.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/1.025, allocations: 1.281 MB / 0.7921 GB, free: 130.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004969/1.026, allocations: 203.3 kB / 0.7923 GB, free: 130.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.522e-06/1.026, allocations: 0 / 0.7923 GB, free: 130.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.03743/1.063, allocations: 36.95 MB / 0.8283 GB, free: 93.7 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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/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.WeatherData.Examples.ReaderTMY3CalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3Functions.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.WeatherData.Examples.ReaderTMY3CalcHelperMain.o] Error 1