Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-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.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3") translateModel(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0007524/0.0007526, allocations: 92.16 kB / 16.02 MB, free: 80 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.0007958/0.0007959, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.312/1.312, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9404/0.9404, allocations: 135.3 MB / 427.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003334, allocations: 9 kB / 0.5082 GB, free: 4.777 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1453, allocations: 82.3 MB / 0.5886 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.006277/0.1516, allocations: 5.711 MB / 0.5942 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4317/0.5834, allocations: 149.2 MB / 0.7399 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001528/0.585, allocations: 31.81 kB / 0.74 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.5861, allocations: 246.8 kB / 0.7402 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002824/0.5889, allocations: 0.5431 MB / 0.7407 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003294/0.5922, allocations: 1.154 MB / 0.7419 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002805/0.595, allocations: 2.156 MB / 0.744 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001348/0.5964, allocations: 1.026 MB / 0.745 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009678/0.5974, allocations: 0.5534 MB / 0.7455 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008562/0.5982, allocations: 0.6194 MB / 0.7461 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001413/0.5984, allocations: 41.97 kB / 0.7461 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.6001, allocations: 0.7697 MB / 0.7469 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000337/0.6005, allocations: 323 kB / 0.7472 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0007/0.6012, allocations: 0.7344 MB / 0.7479 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001937/0.6031, allocations: 1.949 MB / 0.7498 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.6031, allocations: 0 / 0.7498 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.764e-06/0.6031, allocations: 2.812 kB / 0.7498 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.802e-05/0.6032, allocations: 4 kB / 0.7498 GB, free: 5.543 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: 341 * Number of variables: 341 Notification: Performance of Generate backend data structure: time 0.002904/0.6061, allocations: 1.79 MB / 0.7516 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.6061, allocations: 9 kB / 0.7516 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00176/0.6079, allocations: 385.7 kB / 0.752 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.6094, allocations: 1.189 MB / 0.7531 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.429e-05/0.6095, allocations: 100.2 kB / 0.7532 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.6097, allocations: 127 kB / 0.7533 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002473/0.6122, allocations: 1.538 MB / 0.7548 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.6122, allocations: 0 / 0.7548 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.6123, allocations: 60 kB / 0.7549 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.713e-05/0.6124, allocations: 32 kB / 0.7549 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003191/0.6156, allocations: 2.059 MB / 0.7569 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006789/0.6224, allocations: 4.503 MB / 0.7613 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002723/0.6251, allocations: 1.444 MB / 0.7627 GB, free: 9.672 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009986/0.6261, allocations: 0.5398 MB / 0.7633 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001134/0.6263, allocations: 65.17 kB / 0.7633 GB, free: 9.062 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001439/0.6277, allocations: 0.796 MB / 0.7641 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=136): time 2.765e-06/0.6277, allocations: 0 / 0.7641 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of matching and sorting (n=136): time 0.005686/0.6334, allocations: 2.139 MB / 0.7662 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001555/0.6336, allocations: 351.3 kB / 0.7665 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.635, allocations: 1.075 MB / 0.7676 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.6351, allocations: 49.7 kB / 0.7676 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005078/0.6356, allocations: 0.6144 MB / 0.7682 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003633/0.636, allocations: 457.4 kB / 0.7687 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.6361, allocations: 105.7 kB / 0.7688 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.6363, allocations: 365.9 kB / 0.7691 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.6373, allocations: 482.3 kB / 0.7696 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.6385, allocations: 0.6652 MB / 0.7702 GB, free: 1.766 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002146/0.6406, allocations: 1.132 MB / 0.7713 GB, free: 0.6094 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.6407, allocations: 0 / 0.7713 GB, free: 0.6094 MB / 0.5762 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003683/0.6443, allocations: 1.535 MB / 0.7728 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.6444, allocations: 8 kB / 0.7728 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.6444, allocations: 7.938 kB / 0.7728 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.6455, allocations: 165.8 kB / 0.773 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.6467, allocations: 295.6 kB / 0.7733 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004493/0.6512, allocations: 3.075 MB / 0.7763 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/0.6527, allocations: 179.7 kB / 0.7765 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.6528, allocations: 71.94 kB / 0.7765 GB, free: 10.99 MB / 0.5919 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.0007696/0.6536, allocations: 379.8 kB / 0.7769 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/0.6538, allocations: 154.2 kB / 0.777 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004602/0.6585, allocations: 1.988 MB / 0.779 GB, free: 8.461 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.6585, allocations: 20 kB / 0.779 GB, free: 8.441 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.6585, allocations: 3.984 kB / 0.779 GB, free: 8.438 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.6585, allocations: 7.969 kB / 0.779 GB, free: 8.43 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001829/0.6604, allocations: 1.464 MB / 0.7804 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.6604, allocations: 8 kB / 0.7804 GB, free: 6.914 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.6615, allocations: 275.7 kB / 0.7807 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.6625, allocations: 173.5 kB / 0.7809 GB, free: 6.469 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.113e-05/0.6626, allocations: 39.97 kB / 0.7809 GB, free: 6.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003563/0.6661, allocations: 3.119 MB / 0.784 GB, free: 3.031 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6661, allocations: 0 / 0.784 GB, free: 3.031 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003542/0.6697, allocations: 1.646 MB / 0.7856 GB, free: 1.363 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000641/0.6703, allocations: 454.5 kB / 0.786 GB, free: 0.8984 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/0.6705, allocations: 31.98 kB / 0.786 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.6716, allocations: 135.9 kB / 0.7862 GB, free: 0.7344 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.6718, allocations: 117.8 kB / 0.7863 GB, free: 0.6172 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.6719, allocations: 63.95 kB / 0.7863 GB, free: 0.5547 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001012/0.6729, allocations: 0.7417 MB / 0.7871 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.673, allocations: 0 / 0.7871 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001184/0.6741, allocations: 478.9 kB / 0.7875 GB, free: 15.34 MB / 0.6075 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.001386/0.6755, allocations: 0.6378 MB / 0.7881 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003055/0.6786, allocations: 1.526 MB / 0.7896 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.445e-06/0.6786, allocations: 7.938 kB / 0.7896 GB, free: 13.35 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.6803, allocations: 0.9537 MB / 0.7906 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/0.6824, allocations: 0.4979 MB / 0.7911 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007174/0.6896, allocations: 3.912 MB / 0.7949 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008359/0.6905, allocations: 1.274 MB / 0.7961 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005329/0.691, allocations: 207.3 kB / 0.7963 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of SimCode: time 5.81e-07/0.691, allocations: 0 / 0.7963 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of Templates: time 0.04367/0.7347, allocations: 36.74 MB / 0.8322 GB, free: 1.75 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.makefile make -j1 -f IDEAS_dev_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-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.WeatherData.Examples.ReaderTMY3CalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3Functions.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.WeatherData.Examples.ReaderTMY3CalcHelperMain.o] Error 1