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.0009551/0.0009551, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 182.3 kB / 16.92 MB, free: 6.922 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.325/1.325, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8827/0.8827, allocations: 135.3 MB / 427.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003029, allocations: 8 kB / 0.5082 GB, free: 4.773 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1418, allocations: 82.31 MB / 0.5886 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.005303/0.1472, allocations: 4.418 MB / 0.5929 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4057/0.5529, allocations: 146.8 MB / 0.7363 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006708/0.5536, allocations: 26.5 kB / 0.7363 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007123/0.5544, allocations: 281.5 kB / 0.7366 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.5558, allocations: 412.5 kB / 0.737 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001901/0.5577, allocations: 0.7057 MB / 0.7377 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001524/0.5592, allocations: 1.255 MB / 0.7389 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001088/0.5603, allocations: 0.7754 MB / 0.7397 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005558/0.5609, allocations: 333.3 kB / 0.74 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004551/0.5613, allocations: 378 kB / 0.7404 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.143e-05/0.5614, allocations: 27.19 kB / 0.7404 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008288/0.5623, allocations: 365.5 kB / 0.7407 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.5625, allocations: 191.7 kB / 0.7409 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004021/0.5629, allocations: 0.4891 MB / 0.7414 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001278/0.5642, allocations: 1.274 MB / 0.7426 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.5642, allocations: 0 / 0.7426 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5642, allocations: 1.688 kB / 0.7426 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.692e-05/0.5642, allocations: 0 / 0.7426 GB, free: 11.16 MB / 0.5606 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.002087/0.5663, allocations: 1.32 MB / 0.7439 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.5664, allocations: 9.625 kB / 0.7439 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009152/0.5673, allocations: 218.6 kB / 0.7441 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.5685, allocations: 0.863 MB / 0.745 GB, free: 9.395 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.551e-05/0.5686, allocations: 71.91 kB / 0.7451 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.5687, allocations: 88.28 kB / 0.7451 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.5704, allocations: 0.9753 MB / 0.7461 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.5704, allocations: 1.375 kB / 0.7461 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.479e-05/0.5705, allocations: 37.62 kB / 0.7461 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.5705, allocations: 22.81 kB / 0.7461 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.5722, allocations: 1.132 MB / 0.7473 GB, free: 8.148 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003878/0.5761, allocations: 2.722 MB / 0.7499 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.5773, allocations: 0.7108 MB / 0.7506 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004527/0.5778, allocations: 273 kB / 0.7509 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.551e-05/0.5779, allocations: 30.91 kB / 0.7509 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007364/0.5786, allocations: 424.6 kB / 0.7513 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=69): time 2.515e-06/0.5786, allocations: 6.312 kB / 0.7513 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69): time 0.00278/0.5814, allocations: 1.09 MB / 0.7524 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.742e-05/0.5815, allocations: 192.5 kB / 0.7526 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009753/0.5825, allocations: 0.7553 MB / 0.7533 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.369e-05/0.5826, allocations: 45.69 kB / 0.7533 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003819/0.583, allocations: 484 kB / 0.7538 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.5832, allocations: 236.7 kB / 0.754 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.672e-05/0.5833, allocations: 57.69 kB / 0.7541 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.5834, allocations: 330 kB / 0.7544 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004733/0.5839, allocations: 237.2 kB / 0.7546 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005526/0.5844, allocations: 331.3 kB / 0.7549 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009738/0.5854, allocations: 0.543 MB / 0.7555 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.5854, allocations: 4 kB / 0.7555 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001739/0.5872, allocations: 0.7858 MB / 0.7562 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.5872, allocations: 4 kB / 0.7562 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.5872, allocations: 0 / 0.7562 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005889/0.5878, allocations: 84.86 kB / 0.7563 GB, free: 432 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005936/0.5884, allocations: 139.8 kB / 0.7565 GB, free: 292 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001982/0.5904, allocations: 1.548 MB / 0.758 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.5911, allocations: 96.14 kB / 0.7581 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.962e-05/0.5912, allocations: 35.97 kB / 0.7581 GB, free: 14.47 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.0004493/0.5916, allocations: 273.7 kB / 0.7584 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.5918, allocations: 94.78 kB / 0.7584 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/0.594, allocations: 0.9808 MB / 0.7594 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.594, allocations: 12 kB / 0.7594 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.594, allocations: 0 / 0.7594 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.594, allocations: 4.078 kB / 0.7594 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.5951, allocations: 0.9386 MB / 0.7603 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.5951, allocations: 0 / 0.7603 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/0.5957, allocations: 135.8 kB / 0.7605 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005392/0.5962, allocations: 84.77 kB / 0.7605 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.502e-05/0.5963, allocations: 23.92 kB / 0.7606 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001757/0.5981, allocations: 1.556 MB / 0.7621 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5981, allocations: 0 / 0.7621 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.5998, allocations: 0.8529 MB / 0.7629 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003694/0.6002, allocations: 283.5 kB / 0.7632 GB, free: 9.008 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.6003, allocations: 16 kB / 0.7632 GB, free: 8.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005464/0.6009, allocations: 71.88 kB / 0.7633 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.601, allocations: 56.92 kB / 0.7633 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.673e-05/0.6011, allocations: 27.98 kB / 0.7634 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006588/0.6017, allocations: 0.5302 MB / 0.7639 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6017, allocations: 0 / 0.7639 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008232/0.6026, allocations: 315 kB / 0.7642 GB, free: 8 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.001284/0.6039, allocations: 0.5904 MB / 0.7647 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001487/0.6054, allocations: 0.7387 MB / 0.7655 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.6054, allocations: 4 kB / 0.7655 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008051/0.6062, allocations: 496.9 kB / 0.7659 GB, free: 6.355 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.6078, allocations: 404.2 kB / 0.7663 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004217/0.612, allocations: 2.491 MB / 0.7688 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006197/0.6127, allocations: 1.074 MB / 0.7698 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002846/0.613, allocations: 107.4 kB / 0.7699 GB, free: 2.238 MB / 0.5762 GB Notification: Performance of SimCode: time 2.094e-06/0.613, allocations: 4 kB / 0.7699 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of Templates: time 0.02529/0.6383, allocations: 20.6 MB / 0.79 GB, free: 13.66 MB / 0.6075 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++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-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