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.001051/0.001051, allocations: 105 kB / 15.98 MB, free: 6.352 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.001057/0.001057, allocations: 195.6 kB / 16.91 MB, free: 6.188 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.256/1.256, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7501/0.7501, allocations: 132.2 MB / 422.9 MB, free: 6.812 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 59.91 kB / 0.5019 GB, free: 12.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3381, allocations: 80.19 MB / 0.5802 GB, free: 27.49 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.005393/0.3435, allocations: 4.875 MB / 0.585 GB, free: 23.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1427/0.4862, allocations: 148.5 MB / 0.73 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.4873, allocations: 23.88 kB / 0.73 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008001/0.4881, allocations: 290.2 kB / 0.7303 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001642/0.4898, allocations: 428.7 kB / 0.7307 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.4916, allocations: 0.735 MB / 0.7314 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001342/0.493, allocations: 1.344 MB / 0.7327 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009611/0.4939, allocations: 0.8252 MB / 0.7335 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005487/0.4945, allocations: 486 kB / 0.734 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004498/0.4949, allocations: 0.5053 MB / 0.7345 GB, free: 44 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.4951, allocations: 120 kB / 0.7346 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000738/0.4958, allocations: 463.5 kB / 0.7351 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002318/0.4961, allocations: 303 kB / 0.7353 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004151/0.4965, allocations: 0.5982 MB / 0.7359 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.4978, allocations: 1.329 MB / 0.7372 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4979, allocations: 4 kB / 0.7372 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.482e-06/0.4979, allocations: 0 / 0.7372 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.322e-05/0.4979, allocations: 0 / 0.7372 GB, free: 13.24 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: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.002148/0.5, allocations: 1.559 MB / 0.7388 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.5001, allocations: 8.031 kB / 0.7388 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008897/0.501, allocations: 211.1 kB / 0.739 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.5021, allocations: 0.8594 MB / 0.7398 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.237e-05/0.5021, allocations: 70 kB / 0.7399 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.5022, allocations: 88 kB / 0.74 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.5037, allocations: 0.973 MB / 0.7409 GB, free: 9.34 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.5038, allocations: 0 / 0.7409 GB, free: 9.34 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-05/0.5039, allocations: 36 kB / 0.7409 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.422e-05/0.5039, allocations: 24 kB / 0.741 GB, free: 9.281 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.5055, allocations: 1.124 MB / 0.7421 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003611/0.5091, allocations: 2.698 MB / 0.7447 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.5103, allocations: 0.698 MB / 0.7454 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004292/0.5107, allocations: 274.4 kB / 0.7456 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.245e-05/0.5108, allocations: 32.59 kB / 0.7457 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006848/0.5115, allocations: 409.8 kB / 0.7461 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=69): time 2.084e-06/0.5115, allocations: 0 / 0.7461 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69): time 0.002792/0.5143, allocations: 1.081 MB / 0.7471 GB, free: 2.848 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/0.5144, allocations: 192.5 kB / 0.7473 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008412/0.5153, allocations: 0.7553 MB / 0.748 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/0.5153, allocations: 41.7 kB / 0.7481 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003359/0.5157, allocations: 491.9 kB / 0.7485 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.5159, allocations: 232.7 kB / 0.7488 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/0.5161, allocations: 142.2 kB / 0.7489 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.5162, allocations: 333.9 kB / 0.7492 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.5166, allocations: 229.2 kB / 0.7494 GB, free: 400 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005211/0.5171, allocations: 319.3 kB / 0.7497 GB, free: 68 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2738/0.791, allocations: 0.5374 MB / 0.7503 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.7911, allocations: 5.984 kB / 0.7503 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002191/0.7933, allocations: 0.7811 MB / 0.751 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.7933, allocations: 9.172 kB / 0.751 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.7933, allocations: 0.5312 kB / 0.751 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006686/0.794, allocations: 86.14 kB / 0.7511 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000627/0.7946, allocations: 138 kB / 0.7513 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.7965, allocations: 1.644 MB / 0.7529 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007124/0.7972, allocations: 81.3 kB / 0.7529 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.026e-05/0.7973, allocations: 32.5 kB / 0.753 GB, free: 164.7 MB / 0.5762 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.0004658/0.7978, allocations: 281.9 kB / 0.7532 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.798, allocations: 95.62 kB / 0.7533 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.8004, allocations: 0.9697 MB / 0.7543 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.8004, allocations: 8.219 kB / 0.7543 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.8004, allocations: 3.938 kB / 0.7543 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.8004, allocations: 4.719 kB / 0.7543 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.8018, allocations: 0.9342 MB / 0.7552 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.8018, allocations: 2.688 kB / 0.7552 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006096/0.8024, allocations: 135.2 kB / 0.7553 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004649/0.8029, allocations: 72.5 kB / 0.7554 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/0.803, allocations: 23.64 kB / 0.7554 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.8046, allocations: 1.669 MB / 0.7571 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.8046, allocations: 0.9375 kB / 0.7571 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.8067, allocations: 0.8486 MB / 0.7579 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003637/0.8071, allocations: 269.9 kB / 0.7582 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.8072, allocations: 18.06 kB / 0.7582 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005376/0.8077, allocations: 48.22 kB / 0.7582 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.8079, allocations: 60.41 kB / 0.7583 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.008e-05/0.808, allocations: 38.27 kB / 0.7583 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008667/0.8089, allocations: 0.5275 MB / 0.7588 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8089, allocations: 0 / 0.7588 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001044/0.8099, allocations: 308.9 kB / 0.7591 GB, free: 161.2 MB / 0.5762 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.001302/0.8112, allocations: 0.5998 MB / 0.7597 GB, free: 161 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002013/0.8133, allocations: 0.9252 MB / 0.7606 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.8133, allocations: 1.812 kB / 0.7606 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008032/0.8141, allocations: 479 kB / 0.7611 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.8156, allocations: 435.8 kB / 0.7615 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004033/0.8197, allocations: 2.446 MB / 0.7639 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005291/0.8202, allocations: 1.077 MB / 0.7649 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/0.8206, allocations: 112 kB / 0.765 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/0.8206, allocations: 0 / 0.765 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.02183/0.8424, allocations: 20.76 MB / 0.7853 GB, free: 138.8 MB / 0.5762 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++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/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