Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation") translateModel(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.00145/0.001451, allocations: 107.1 kB / 16.41 MB, free: 6.008 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.00168/0.00168, allocations: 185.5 kB / 17.34 MB, free: 5.629 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.616/1.616, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7888/0.7888, allocations: 132.2 MB / 423.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 60.55 kB / 0.582 GB, free: 23.81 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1388, allocations: 80.2 MB / 0.6603 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006818/0.1457, allocations: 4.876 MB / 0.6651 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5494/0.6951, allocations: 150.7 MB / 0.8123 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.6961, allocations: 22.44 kB / 0.8123 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007325/0.6969, allocations: 338.8 kB / 0.8126 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001418/0.6983, allocations: 0.5 MB / 0.8131 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001605/0.7, allocations: 0.8232 MB / 0.8139 GB, free: 11.44 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001343/0.7013, allocations: 1.35 MB / 0.8152 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009572/0.7023, allocations: 0.8065 MB / 0.816 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006454/0.7029, allocations: 493 kB / 0.8165 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004708/0.7034, allocations: 0.5085 MB / 0.817 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.7035, allocations: 118.4 kB / 0.8171 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008237/0.7044, allocations: 484.7 kB / 0.8176 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.7046, allocations: 310.6 kB / 0.8178 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004442/0.7051, allocations: 0.5949 MB / 0.8184 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0019/0.707, allocations: 1.762 MB / 0.8202 GB, free: 9.32 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.707, allocations: 0 / 0.8202 GB, free: 9.32 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.434e-06/0.707, allocations: 4 kB / 0.8202 GB, free: 9.316 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.859e-05/0.7071, allocations: 0 / 0.8202 GB, free: 9.316 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.002414/0.7095, allocations: 1.569 MB / 0.8217 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.7095, allocations: 11.41 kB / 0.8217 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009004/0.7104, allocations: 210.4 kB / 0.8219 GB, free: 7.98 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/0.7117, allocations: 0.8713 MB / 0.8227 GB, free: 7.297 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.248e-05/0.7117, allocations: 71.91 kB / 0.8228 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.7119, allocations: 92.38 kB / 0.8229 GB, free: 7.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.7135, allocations: 0.9711 MB / 0.8239 GB, free: 6.613 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.7135, allocations: 5.125 kB / 0.8239 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.488e-05/0.7136, allocations: 41.88 kB / 0.8239 GB, free: 6.578 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.7136, allocations: 22.78 kB / 0.8239 GB, free: 6.578 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.7152, allocations: 1.115 MB / 0.825 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003992/0.7192, allocations: 2.653 MB / 0.8276 GB, free: 4.047 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.7205, allocations: 0.7081 MB / 0.8283 GB, free: 3.695 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004844/0.721, allocations: 268.8 kB / 0.8285 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.553e-05/0.721, allocations: 31.61 kB / 0.8286 GB, free: 3.543 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007447/0.7218, allocations: 414.7 kB / 0.829 GB, free: 3.281 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=69): time 2.365e-06/0.7218, allocations: 3.938 kB / 0.829 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of matching and sorting (n=69): time 0.002874/0.7247, allocations: 1.074 MB / 0.83 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.7248, allocations: 187.9 kB / 0.8302 GB, free: 2.465 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009883/0.7258, allocations: 0.7596 MB / 0.8309 GB, free: 2.035 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7e-05/0.7259, allocations: 36.33 kB / 0.831 GB, free: 1.996 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004073/0.7263, allocations: 494.8 kB / 0.8315 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.7265, allocations: 226.3 kB / 0.8317 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/0.7267, allocations: 152.5 kB / 0.8318 GB, free: 1.281 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.7269, allocations: 335.7 kB / 0.8321 GB, free: 0.9531 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004477/0.7273, allocations: 235.4 kB / 0.8324 GB, free: 0.8398 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000534/0.7279, allocations: 314.3 kB / 0.8327 GB, free: 0.6562 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.7289, allocations: 0.5434 MB / 0.8332 GB, free: 368 kB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.7289, allocations: 3.375 kB / 0.8332 GB, free: 368 kB / 0.5919 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001812/0.7307, allocations: 0.7804 MB / 0.834 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.7307, allocations: 4.812 kB / 0.834 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.7308, allocations: 2.594 kB / 0.834 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005758/0.7313, allocations: 87.58 kB / 0.834 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005599/0.7319, allocations: 137.6 kB / 0.8342 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.734, allocations: 1.646 MB / 0.8358 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006817/0.7347, allocations: 82.27 kB / 0.8359 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.666e-05/0.7348, allocations: 32.11 kB / 0.8359 GB, free: 14.2 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.0005093/0.7353, allocations: 282.4 kB / 0.8362 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.7355, allocations: 99.61 kB / 0.8363 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002228/0.7378, allocations: 0.9669 MB / 0.8372 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.7378, allocations: 7.812 kB / 0.8372 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.7378, allocations: 0 / 0.8372 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.7378, allocations: 6.266 kB / 0.8372 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.739, allocations: 0.9309 MB / 0.8381 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.739, allocations: 4 kB / 0.8381 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005198/0.7395, allocations: 137.4 kB / 0.8383 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004352/0.74, allocations: 67.94 kB / 0.8383 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.662e-05/0.7401, allocations: 27.55 kB / 0.8384 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001927/0.742, allocations: 1.665 MB / 0.84 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.742, allocations: 3.938 kB / 0.84 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.7438, allocations: 0.8454 MB / 0.8408 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000385/0.7442, allocations: 275.5 kB / 0.8411 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.7444, allocations: 14.75 kB / 0.8411 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005668/0.745, allocations: 48.77 kB / 0.8411 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.7451, allocations: 60.22 kB / 0.8412 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-05/0.7452, allocations: 32.45 kB / 0.8412 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007077/0.7459, allocations: 0.5311 MB / 0.8417 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7459, allocations: 0 / 0.8417 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008326/0.7467, allocations: 311.3 kB / 0.842 GB, free: 9.801 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.001337/0.7481, allocations: 0.596 MB / 0.8426 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00155/0.7496, allocations: 0.74 MB / 0.8433 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.7496, allocations: 0 / 0.8433 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008203/0.7505, allocations: 487.8 kB / 0.8438 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/0.7521, allocations: 459 kB / 0.8442 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004255/0.7564, allocations: 1.946 MB / 0.8461 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007194/0.7571, allocations: 1.078 MB / 0.8472 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003121/0.7574, allocations: 115.4 kB / 0.8473 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of SimCode: time 3.71e-07/0.7575, allocations: 0 / 0.8473 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of Templates: time 0.02774/0.7852, allocations: 20.88 MB / 0.8677 GB, free: 0.8242 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile make -j1 -f IDEAS_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/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.Utilities.IO.SignalExchange.Examples.WeatherStationCalcHelperMain.o OMCppIDEAS_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStationCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStationCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStationFunctions.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.Utilities.IO.SignalExchange.Examples.WeatherStationCalcHelperMain.o] Error 1