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.001721/0.001721, allocations: 110 kB / 16.41 MB, free: 6.453 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.002055/0.002055, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.438/1.438, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8629/0.8629, allocations: 135.2 MB / 426.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 62.97 kB / 0.5863 GB, free: 21.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1557, allocations: 80.94 MB / 0.6653 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.007259/0.1629, allocations: 4.877 MB / 0.6701 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5007/0.6637, allocations: 151.2 MB / 0.8177 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009788/0.6646, allocations: 28 kB / 0.8178 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008561/0.6655, allocations: 336.4 kB / 0.8181 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00175/0.6672, allocations: 0.49 MB / 0.8186 GB, free: 7 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002064/0.6693, allocations: 0.821 MB / 0.8194 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001578/0.6709, allocations: 1.349 MB / 0.8207 GB, free: 6.293 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008274/0.6717, allocations: 0.5588 MB / 0.8212 GB, free: 6.09 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005644/0.6723, allocations: 492 kB / 0.8217 GB, free: 5.926 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005303/0.6728, allocations: 0.5115 MB / 0.8222 GB, free: 5.66 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.6729, allocations: 118.9 kB / 0.8223 GB, free: 5.66 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008654/0.6738, allocations: 485.2 kB / 0.8228 GB, free: 5.484 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002992/0.6741, allocations: 309.9 kB / 0.8231 GB, free: 5.242 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005256/0.6746, allocations: 0.6012 MB / 0.8237 GB, free: 4.77 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002094/0.6767, allocations: 1.759 MB / 0.8254 GB, free: 3.473 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.6767, allocations: 4 kB / 0.8254 GB, free: 3.469 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.252e-06/0.6767, allocations: 0 / 0.8254 GB, free: 3.469 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.562e-05/0.6767, allocations: 2.062 kB / 0.8254 GB, free: 3.469 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.002499/0.6792, allocations: 1.618 MB / 0.827 GB, free: 2.172 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.6793, allocations: 12.58 kB / 0.827 GB, free: 2.168 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008855/0.6802, allocations: 210.2 kB / 0.8272 GB, free: 2.066 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.6815, allocations: 0.8863 MB / 0.828 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.402e-05/0.6816, allocations: 72.88 kB / 0.8281 GB, free: 1.316 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.6817, allocations: 86.5 kB / 0.8282 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.6833, allocations: 0.969 MB / 0.8291 GB, free: 0.6758 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.6833, allocations: 2.875 kB / 0.8291 GB, free: 0.6758 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.653e-05/0.6834, allocations: 46.09 kB / 0.8292 GB, free: 0.6406 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.6834, allocations: 22.97 kB / 0.8292 GB, free: 0.6406 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/0.6851, allocations: 1.115 MB / 0.8303 GB, free: 116 kB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.6891, allocations: 2.666 MB / 0.8329 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.6903, allocations: 0.6637 MB / 0.8335 GB, free: 13.74 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004484/0.6908, allocations: 247.3 kB / 0.8338 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.661e-05/0.6909, allocations: 39.94 kB / 0.8338 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007204/0.6916, allocations: 409.7 kB / 0.8342 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=69): time 3.006e-06/0.6916, allocations: 0 / 0.8342 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=69): time 0.002844/0.6944, allocations: 1.085 MB / 0.8353 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.6946, allocations: 191.8 kB / 0.8355 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.6956, allocations: 0.7548 MB / 0.8362 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.218e-05/0.6957, allocations: 38.89 kB / 0.8362 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004464/0.6961, allocations: 0.4895 MB / 0.8367 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/0.6963, allocations: 244.9 kB / 0.8369 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/0.6965, allocations: 146.9 kB / 0.8371 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000169/0.6967, allocations: 331.1 kB / 0.8374 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004508/0.6972, allocations: 233.6 kB / 0.8376 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005506/0.6977, allocations: 324 kB / 0.8379 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009918/0.6987, allocations: 0.5399 MB / 0.8385 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.6987, allocations: 0 / 0.8385 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001731/0.7004, allocations: 0.7842 MB / 0.8392 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.7005, allocations: 4.875 kB / 0.8392 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.7005, allocations: 2.531 kB / 0.8392 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005835/0.7011, allocations: 84.58 kB / 0.8393 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/0.7016, allocations: 135.7 kB / 0.8394 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.7039, allocations: 1.648 MB / 0.841 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006389/0.7045, allocations: 77.09 kB / 0.8411 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-05/0.7046, allocations: 31.84 kB / 0.8411 GB, free: 8.211 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.000499/0.7051, allocations: 280.9 kB / 0.8414 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.7052, allocations: 102.6 kB / 0.8415 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00215/0.7074, allocations: 0.9713 MB / 0.8425 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.7074, allocations: 7.125 kB / 0.8425 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.7074, allocations: 3.031 kB / 0.8425 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.7074, allocations: 7.734 kB / 0.8425 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.7085, allocations: 0.936 MB / 0.8434 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.7085, allocations: 0 / 0.8434 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005083/0.709, allocations: 137 kB / 0.8435 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004168/0.7094, allocations: 68.23 kB / 0.8436 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.269e-05/0.7095, allocations: 23.92 kB / 0.8436 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00208/0.7116, allocations: 1.677 MB / 0.8452 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.7116, allocations: 0 / 0.8452 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.7134, allocations: 0.8518 MB / 0.8461 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003886/0.7137, allocations: 276.5 kB / 0.8463 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.7139, allocations: 20.66 kB / 0.8464 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004958/0.7144, allocations: 52.86 kB / 0.8464 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.7145, allocations: 57.03 kB / 0.8465 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.998e-05/0.7146, allocations: 29.92 kB / 0.8465 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007063/0.7153, allocations: 0.5293 MB / 0.847 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/0.7153, allocations: 0 / 0.847 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000823/0.7161, allocations: 307.7 kB / 0.8473 GB, free: 3.766 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.001833/0.7179, allocations: 0.5997 MB / 0.8479 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001585/0.7195, allocations: 0.7116 MB / 0.8486 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.7195, allocations: 8 kB / 0.8486 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000865/0.7204, allocations: 464.1 kB / 0.849 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.722, allocations: 460.9 kB / 0.8495 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00425/0.7262, allocations: 1.969 MB / 0.8514 GB, free: 56 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007961/0.727, allocations: 1.074 MB / 0.8525 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/0.7273, allocations: 123.3 kB / 0.8526 GB, free: 14.83 MB / 0.6231 GB Notification: Performance of SimCode: time 7.71e-07/0.7273, allocations: 0 / 0.8526 GB, free: 14.83 MB / 0.6231 GB Notification: Performance of Templates: time 0.02889/0.7562, allocations: 20.92 MB / 0.873 GB, free: 9.914 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