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.001216/0.001217, allocations: 103.2 kB / 16.27 MB, free: 6 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.001099/0.001099, allocations: 194.2 kB / 17.2 MB, free: 5.609 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8131/0.8131, allocations: 132.2 MB / 423.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001385, allocations: 67.89 kB / 0.5024 GB, free: 11.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3276, allocations: 80.19 MB / 0.5807 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.00597/0.3336, allocations: 4.865 MB / 0.5855 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.159/0.4927, allocations: 150.7 MB / 0.7327 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.4937, allocations: 27.88 kB / 0.7327 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008534/0.4946, allocations: 337.5 kB / 0.733 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001781/0.4965, allocations: 496.5 kB / 0.7335 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001896/0.4984, allocations: 0.8118 MB / 0.7343 GB, free: 500 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001392/0.4998, allocations: 1.341 MB / 0.7356 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.5009, allocations: 0.8176 MB / 0.7364 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006076/0.5015, allocations: 486 kB / 0.7369 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000516/0.502, allocations: 0.5014 MB / 0.7374 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.5022, allocations: 120 kB / 0.7375 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008426/0.503, allocations: 459.5 kB / 0.7379 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002713/0.5033, allocations: 311 kB / 0.7382 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000492/0.5038, allocations: 0.5904 MB / 0.7388 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001814/0.5056, allocations: 1.717 MB / 0.7405 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.5056, allocations: 0 / 0.7405 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5057, allocations: 0 / 0.7405 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.006e-05/0.5057, allocations: 0 / 0.7405 GB, free: 10.12 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.002328/0.508, allocations: 1.567 MB / 0.742 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.5081, allocations: 8.031 kB / 0.742 GB, free: 8.492 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009435/0.509, allocations: 207.2 kB / 0.7422 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.5102, allocations: 0.8595 MB / 0.7431 GB, free: 7.387 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.261e-05/0.5102, allocations: 66 kB / 0.7431 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.5104, allocations: 92 kB / 0.7432 GB, free: 7.23 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.512, allocations: 0.973 MB / 0.7442 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.512, allocations: 0 / 0.7442 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-05/0.5121, allocations: 44 kB / 0.7442 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.5121, allocations: 20 kB / 0.7442 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.5139, allocations: 1.116 MB / 0.7453 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003981/0.5179, allocations: 2.702 MB / 0.7479 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.5192, allocations: 0.702 MB / 0.7486 GB, free: 1.555 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004949/0.5197, allocations: 278.4 kB / 0.7489 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.6e-05/0.5198, allocations: 28.58 kB / 0.7489 GB, free: 1.25 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007643/0.5205, allocations: 413.8 kB / 0.7493 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=69): time 3.106e-06/0.5206, allocations: 0 / 0.7493 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69): time 0.2496/0.7702, allocations: 1.079 MB / 0.7504 GB, free: 167.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.7703, allocations: 192.9 kB / 0.7506 GB, free: 167 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.7715, allocations: 0.7531 MB / 0.7513 GB, free: 166.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.699e-05/0.7716, allocations: 41.33 kB / 0.7513 GB, free: 166.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.7719, allocations: 494.5 kB / 0.7518 GB, free: 166.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/0.7721, allocations: 225 kB / 0.752 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002376/0.7723, allocations: 146.1 kB / 0.7522 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.253e-05/0.7724, allocations: 328.7 kB / 0.7525 GB, free: 166 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/0.7729, allocations: 237.5 kB / 0.7527 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005987/0.7735, allocations: 323.6 kB / 0.753 GB, free: 165.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.7746, allocations: 0.5356 MB / 0.7535 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.7746, allocations: 4.438 kB / 0.7535 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001946/0.7765, allocations: 0.7792 MB / 0.7543 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.7766, allocations: 6.031 kB / 0.7543 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.7766, allocations: 0.9688 kB / 0.7543 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006374/0.7772, allocations: 86.88 kB / 0.7544 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006317/0.7779, allocations: 142 kB / 0.7545 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/0.7798, allocations: 1.645 MB / 0.7561 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006663/0.7805, allocations: 76.84 kB / 0.7562 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.43e-05/0.7806, allocations: 32.94 kB / 0.7562 GB, free: 163.6 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.0004291/0.781, allocations: 277.9 kB / 0.7565 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.7812, allocations: 96.84 kB / 0.7566 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/0.7835, allocations: 0.9799 MB / 0.7575 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.7836, allocations: 8.125 kB / 0.7575 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.7836, allocations: 2.906 kB / 0.7576 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.7836, allocations: 4.203 kB / 0.7576 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.7847, allocations: 0.9293 MB / 0.7585 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.7847, allocations: 0.625 kB / 0.7585 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006018/0.7853, allocations: 137.3 kB / 0.7586 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004751/0.7858, allocations: 76.16 kB / 0.7587 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.838e-05/0.7859, allocations: 23.48 kB / 0.7587 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.7875, allocations: 1.676 MB / 0.7603 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7876, allocations: 3.938 kB / 0.7603 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.7894, allocations: 0.8397 MB / 0.7612 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/0.7897, allocations: 272.7 kB / 0.7614 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.7898, allocations: 13.03 kB / 0.7614 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005231/0.7903, allocations: 54.19 kB / 0.7615 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.7904, allocations: 60.86 kB / 0.7615 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-05/0.7905, allocations: 29.78 kB / 0.7616 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006378/0.7912, allocations: 0.5296 MB / 0.7621 GB, free: 159.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7912, allocations: 0 / 0.7621 GB, free: 159.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008253/0.792, allocations: 315 kB / 0.7624 GB, free: 159.7 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.00128/0.7933, allocations: 0.5954 MB / 0.763 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00202/0.7953, allocations: 0.9194 MB / 0.7639 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.7953, allocations: 2.562 kB / 0.7639 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008026/0.7961, allocations: 482 kB / 0.7643 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/0.7977, allocations: 457 kB / 0.7648 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003806/0.8016, allocations: 1.981 MB / 0.7667 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/0.802, allocations: 1.072 MB / 0.7677 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002594/0.8022, allocations: 115.2 kB / 0.7678 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of SimCode: time 4.11e-07/0.8023, allocations: 3.625 kB / 0.7679 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.01997/0.8222, allocations: 20.76 MB / 0.7881 GB, free: 136.5 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++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