Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation.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.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation") translateModel(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 112.6 kB / 16.41 MB, free: 6.492 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.001257/0.001257, allocations: 183 kB / 17.34 MB, free: 5.762 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.268/1.268, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.747/0.747, allocations: 135.1 MB / 426.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 62.12 kB / 0.5863 GB, free: 21.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1318, allocations: 80.93 MB / 0.6653 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006043/0.1379, allocations: 4.877 MB / 0.67 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4639/0.6018, allocations: 150.7 MB / 0.8172 GB, free: 7.785 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008388/0.6027, allocations: 30.69 kB / 0.8173 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007347/0.6035, allocations: 335 kB / 0.8176 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0015/0.605, allocations: 0.4936 MB / 0.8181 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001772/0.6068, allocations: 0.817 MB / 0.8189 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001139/0.6079, allocations: 1.357 MB / 0.8202 GB, free: 6.668 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009034/0.6088, allocations: 0.811 MB / 0.821 GB, free: 6.383 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005046/0.6094, allocations: 494.1 kB / 0.8215 GB, free: 6.215 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004232/0.6098, allocations: 0.5006 MB / 0.822 GB, free: 5.977 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.6099, allocations: 118 kB / 0.8221 GB, free: 5.977 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007302/0.6106, allocations: 490.1 kB / 0.8225 GB, free: 5.832 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002468/0.6109, allocations: 308.3 kB / 0.8228 GB, free: 5.59 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004265/0.6113, allocations: 0.5988 MB / 0.8234 GB, free: 5.125 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.613, allocations: 1.759 MB / 0.8251 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.613, allocations: 0 / 0.8251 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.553e-06/0.613, allocations: 0 / 0.8251 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.866e-05/0.613, allocations: 4 kB / 0.8251 GB, free: 3.828 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.002175/0.6152, allocations: 1.568 MB / 0.8267 GB, free: 2.582 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.6152, allocations: 9.328 kB / 0.8267 GB, free: 2.582 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008581/0.6161, allocations: 204.7 kB / 0.8269 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.6173, allocations: 0.8824 MB / 0.8277 GB, free: 1.773 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.6173, allocations: 67.38 kB / 0.8278 GB, free: 1.742 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.6175, allocations: 96.47 kB / 0.8279 GB, free: 1.707 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.6189, allocations: 0.9695 MB / 0.8288 GB, free: 1.094 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.619, allocations: 3.984 kB / 0.8288 GB, free: 1.09 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.93e-05/0.619, allocations: 41.78 kB / 0.8289 GB, free: 1.059 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.6191, allocations: 22.59 kB / 0.8289 GB, free: 1.059 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.6206, allocations: 1.118 MB / 0.83 GB, free: 0.5234 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003521/0.6242, allocations: 2.651 MB / 0.8326 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.6253, allocations: 0.7006 MB / 0.8333 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.6257, allocations: 271.5 kB / 0.8335 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 6.638e-05/0.6258, allocations: 33.23 kB / 0.8336 GB, free: 14 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006611/0.6265, allocations: 418.4 kB / 0.834 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=69): time 2.464e-06/0.6265, allocations: 0 / 0.834 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of matching and sorting (n=69): time 0.002575/0.6291, allocations: 1.078 MB / 0.835 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.635e-05/0.6292, allocations: 192 kB / 0.8352 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008158/0.63, allocations: 0.7553 MB / 0.8359 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.327e-05/0.6301, allocations: 38.45 kB / 0.836 GB, free: 12.44 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.6304, allocations: 492.7 kB / 0.8364 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.6306, allocations: 228 kB / 0.8367 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.6308, allocations: 148.9 kB / 0.8368 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.6309, allocations: 331.2 kB / 0.8371 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004222/0.6313, allocations: 239.2 kB / 0.8373 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005009/0.6318, allocations: 314.4 kB / 0.8376 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008975/0.6327, allocations: 0.5432 MB / 0.8382 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6328, allocations: 2.719 kB / 0.8382 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001639/0.6344, allocations: 0.7727 MB / 0.8389 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.6344, allocations: 8.812 kB / 0.8389 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.6344, allocations: 2.781 kB / 0.8389 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005457/0.635, allocations: 84.11 kB / 0.839 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005277/0.6355, allocations: 141.4 kB / 0.8392 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.6375, allocations: 1.645 MB / 0.8408 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005958/0.6381, allocations: 75.58 kB / 0.8408 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.493e-05/0.6381, allocations: 36.86 kB / 0.8409 GB, free: 8.645 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (80): * Single equations (assignments): 79 * 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.00041/0.6386, allocations: 281.2 kB / 0.8411 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.6387, allocations: 103.6 kB / 0.8412 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/0.6407, allocations: 0.9687 MB / 0.8422 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.6407, allocations: 7 kB / 0.8422 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.6407, allocations: 2.906 kB / 0.8422 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.6407, allocations: 3.984 kB / 0.8422 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009407/0.6417, allocations: 0.9325 MB / 0.8431 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.6417, allocations: 2.625 kB / 0.8431 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004863/0.6422, allocations: 139.6 kB / 0.8432 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004289/0.6426, allocations: 71.94 kB / 0.8433 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.397e-05/0.6427, allocations: 23.8 kB / 0.8433 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001761/0.6444, allocations: 1.666 MB / 0.845 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.6445, allocations: 0 / 0.845 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.6461, allocations: 0.8439 MB / 0.8458 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/0.6464, allocations: 275 kB / 0.846 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.6465, allocations: 17.34 kB / 0.8461 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005028/0.647, allocations: 50.34 kB / 0.8461 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.6472, allocations: 52.86 kB / 0.8462 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.996e-05/0.6472, allocations: 32.17 kB / 0.8462 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005826/0.6478, allocations: 0.527 MB / 0.8467 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6478, allocations: 0 / 0.8467 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0007206/0.6485, allocations: 319 kB / 0.847 GB, free: 4.223 MB / 0.6075 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * 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.001213/0.6498, allocations: 0.5974 MB / 0.8476 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001414/0.6512, allocations: 0.7406 MB / 0.8483 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.6512, allocations: 0 / 0.8483 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007803/0.652, allocations: 496.2 kB / 0.8488 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.6535, allocations: 451.3 kB / 0.8492 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003695/0.6572, allocations: 1.942 MB / 0.8511 GB, free: 224 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005914/0.6578, allocations: 1.074 MB / 0.8522 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/0.658, allocations: 111.4 kB / 0.8523 GB, free: 15 MB / 0.6231 GB Notification: Performance of SimCode: time 2.215e-06/0.658, allocations: 0 / 0.8523 GB, free: 15 MB / 0.6231 GB Notification: Performance of Templates: time 0.03588/0.6939, allocations: 20.89 MB / 0.8727 GB, free: 10.12 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation.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.Utilities.IO.SignalExchange.Examples.WeatherStationCalcHelperMain.o OMCppIDEAS_dev_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStationCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStationCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStationFunctions.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.Utilities.IO.SignalExchange.Examples.WeatherStationCalcHelperMain.o] Error 1