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.001649/0.001649, allocations: 101.6 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.001469/0.001469, allocations: 191.2 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.329/1.329, 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.8151/0.8151, allocations: 135.2 MB / 426.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001887, allocations: 59.89 kB / 0.506 GB, free: 8.312 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.324, allocations: 80.91 MB / 0.585 GB, free: 25.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.00629/0.3304, allocations: 6.224 MB / 0.5911 GB, free: 20.22 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.167/0.4974, allocations: 153.2 MB / 0.7407 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/0.4988, allocations: 31.81 kB / 0.7408 GB, free: 10.49 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.5, allocations: 313.1 kB / 0.7411 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002695/0.5027, allocations: 0.6583 MB / 0.7417 GB, free: 9.523 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003801/0.5065, allocations: 1.289 MB / 0.743 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003374/0.5099, allocations: 2.298 MB / 0.7452 GB, free: 5.941 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.5118, allocations: 1.083 MB / 0.7463 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.5132, allocations: 0.7669 MB / 0.747 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009802/0.5142, allocations: 0.7953 MB / 0.7478 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002996/0.5145, allocations: 184 kB / 0.748 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001916/0.5164, allocations: 0.9169 MB / 0.7489 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005325/0.517, allocations: 498.4 kB / 0.7493 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009841/0.518, allocations: 0.8898 MB / 0.7502 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.2971/0.815, allocations: 2.635 MB / 0.7528 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.8151, allocations: 1.438 kB / 0.7528 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.482e-06/0.8151, allocations: 0 / 0.7528 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.307e-05/0.8151, allocations: 0.5 kB / 0.7528 GB, free: 7.664 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.003215/0.8183, allocations: 2.162 MB / 0.7549 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.8184, allocations: 10.72 kB / 0.7549 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001747/0.8201, allocations: 357.6 kB / 0.7553 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.8216, allocations: 1.194 MB / 0.7564 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.468e-05/0.8217, allocations: 103.8 kB / 0.7565 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.8218, allocations: 126.4 kB / 0.7566 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002316/0.8241, allocations: 1.524 MB / 0.7581 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.8242, allocations: 2.906 kB / 0.7581 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.8243, allocations: 58.94 kB / 0.7582 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.8243, allocations: 32.59 kB / 0.7582 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003278/0.8276, allocations: 2.042 MB / 0.7602 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006791/0.8344, allocations: 4.442 MB / 0.7646 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002756/0.8372, allocations: 1.429 MB / 0.7659 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009062/0.8381, allocations: 0.5313 MB / 0.7665 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.946e-05/0.8382, allocations: 61.88 kB / 0.7665 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001431/0.8397, allocations: 0.799 MB / 0.7673 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=136): time 3.937e-06/0.8397, allocations: 4.812 kB / 0.7673 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of matching and sorting (n=136): time 0.005589/0.8453, allocations: 2.104 MB / 0.7694 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.8454, allocations: 356.9 kB / 0.7697 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.8467, allocations: 1.072 MB / 0.7708 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.8469, allocations: 54.48 kB / 0.7708 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003717/0.8472, allocations: 0.6115 MB / 0.7714 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002636/0.8475, allocations: 445.8 kB / 0.7718 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003578/0.8479, allocations: 287.7 kB / 0.7721 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.029e-05/0.8479, allocations: 354.8 kB / 0.7724 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008816/0.8488, allocations: 473.6 kB / 0.7729 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.8499, allocations: 0.6537 MB / 0.7735 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001844/0.8517, allocations: 1.118 MB / 0.7746 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.8517, allocations: 5 kB / 0.7746 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003452/0.8552, allocations: 1.522 MB / 0.7761 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.8552, allocations: 4.875 kB / 0.7761 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.8552, allocations: 6.812 kB / 0.7761 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.8563, allocations: 170 kB / 0.7763 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.8573, allocations: 289.9 kB / 0.7766 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/0.8607, allocations: 3.288 MB / 0.7798 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.8621, allocations: 164.7 kB / 0.7799 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.8622, allocations: 66.55 kB / 0.78 GB, free: 15.3 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.0007228/0.863, allocations: 383.6 kB / 0.7804 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002912/0.8633, allocations: 148.8 kB / 0.7805 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004152/0.8674, allocations: 1.973 MB / 0.7824 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.8674, allocations: 17.44 kB / 0.7824 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.8675, allocations: 4.812 kB / 0.7824 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.8675, allocations: 16.17 kB / 0.7825 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.8692, allocations: 1.469 MB / 0.7839 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.8692, allocations: 0 / 0.7839 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009743/0.8702, allocations: 274 kB / 0.7842 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008002/0.871, allocations: 148.4 kB / 0.7843 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-05/0.8711, allocations: 45.59 kB / 0.7843 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003734/0.8748, allocations: 3.347 MB / 0.7876 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.8748, allocations: 7.062 kB / 0.7876 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003487/0.8783, allocations: 1.623 MB / 0.7892 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006813/0.879, allocations: 430.1 kB / 0.7896 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.8793, allocations: 35.91 kB / 0.7896 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009658/0.8802, allocations: 109.4 kB / 0.7898 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/0.8804, allocations: 114.5 kB / 0.7899 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.789e-05/0.8806, allocations: 59.72 kB / 0.7899 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008996/0.8815, allocations: 0.7439 MB / 0.7906 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3e-07/0.8815, allocations: 0 / 0.7906 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00121/0.8827, allocations: 479.9 kB / 0.7911 GB, free: 11.28 MB / 0.5919 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.0019/0.8846, allocations: 0.6378 MB / 0.7917 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003925/0.8885, allocations: 1.871 MB / 0.7936 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.8885, allocations: 4 kB / 0.7936 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.8901, allocations: 0.9539 MB / 0.7945 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.8923, allocations: 0.5535 MB / 0.795 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006573/0.8989, allocations: 3.126 MB / 0.7981 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008142/0.8997, allocations: 1.282 MB / 0.7993 GB, free: 8.805 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005966/0.9003, allocations: 208.2 kB / 0.7995 GB, free: 8.797 MB / 0.5919 GB Notification: Performance of SimCode: time 8.42e-07/0.9003, allocations: 2.594 kB / 0.7995 GB, free: 8.797 MB / 0.5919 GB Notification: Performance of Templates: time 0.04772/0.948, allocations: 36.95 MB / 0.8356 GB, free: 12.62 MB / 0.6231 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++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.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