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.00112/0.00112, allocations: 105.4 kB / 16.4 MB, free: 6.5 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.001189/0.001189, allocations: 192.1 kB / 17.34 MB, free: 5.766 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.211/1.211, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7375/0.7375, allocations: 135.1 MB / 426.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 64.95 kB / 0.5862 GB, free: 21.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1302, allocations: 80.93 MB / 0.6653 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006188/0.1364, allocations: 4.869 MB / 0.67 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4453/0.5818, allocations: 150.8 MB / 0.8172 GB, free: 7.805 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000823/0.5826, allocations: 23 kB / 0.8173 GB, free: 7.797 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000891/0.5836, allocations: 336.8 kB / 0.8176 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001537/0.5851, allocations: 496.6 kB / 0.8181 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001655/0.5868, allocations: 0.8257 MB / 0.8189 GB, free: 7.051 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001119/0.5879, allocations: 1.353 MB / 0.8202 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008559/0.5888, allocations: 0.8148 MB / 0.821 GB, free: 6.387 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004462/0.5892, allocations: 483.8 kB / 0.8214 GB, free: 6.227 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004538/0.5897, allocations: 0.5076 MB / 0.8219 GB, free: 5.98 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.5898, allocations: 119.1 kB / 0.8221 GB, free: 5.98 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007456/0.5906, allocations: 489.8 kB / 0.8225 GB, free: 5.863 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002517/0.5909, allocations: 315.1 kB / 0.8228 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004207/0.5913, allocations: 0.5895 MB / 0.8234 GB, free: 5.156 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.5928, allocations: 1.759 MB / 0.8251 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.5928, allocations: 0 / 0.8251 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5928, allocations: 0 / 0.8251 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.287e-05/0.5928, allocations: 0 / 0.8251 GB, free: 3.863 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.002016/0.5948, allocations: 1.565 MB / 0.8266 GB, free: 2.621 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.5949, allocations: 14.8 kB / 0.8267 GB, free: 2.617 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008353/0.5957, allocations: 212.8 kB / 0.8269 GB, free: 2.512 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.5968, allocations: 0.8705 MB / 0.8277 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.558e-05/0.5969, allocations: 71.06 kB / 0.8278 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-05/0.597, allocations: 88.5 kB / 0.8279 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.5984, allocations: 0.9758 MB / 0.8288 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.5984, allocations: 0 / 0.8288 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.433e-05/0.5985, allocations: 41.31 kB / 0.8289 GB, free: 1.102 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.5985, allocations: 23 kB / 0.8289 GB, free: 1.102 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.6001, allocations: 1.126 MB / 0.83 GB, free: 0.5625 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003487/0.6036, allocations: 2.646 MB / 0.8326 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.6047, allocations: 0.7102 MB / 0.8333 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004217/0.6051, allocations: 263.2 kB / 0.8335 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 6.845e-05/0.6052, allocations: 36.16 kB / 0.8335 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006507/0.6059, allocations: 420.3 kB / 0.8339 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=69): time 1.854e-06/0.6059, allocations: 0 / 0.8339 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=69): time 0.002568/0.6085, allocations: 1.073 MB / 0.835 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.56e-05/0.6086, allocations: 188.2 kB / 0.8352 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008021/0.6094, allocations: 0.7594 MB / 0.8359 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.048e-05/0.6094, allocations: 40.67 kB / 0.8359 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/0.6098, allocations: 486.8 kB / 0.8364 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.6099, allocations: 232.3 kB / 0.8366 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.6102, allocations: 152.9 kB / 0.8368 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.6103, allocations: 326.3 kB / 0.8371 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004263/0.6107, allocations: 237.7 kB / 0.8373 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005006/0.6113, allocations: 321.3 kB / 0.8376 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008969/0.6122, allocations: 0.535 MB / 0.8381 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6122, allocations: 3.828 kB / 0.8381 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00162/0.6138, allocations: 0.7833 MB / 0.8389 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.6138, allocations: 9.281 kB / 0.8389 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.6138, allocations: 3.75 kB / 0.8389 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005377/0.6144, allocations: 85.34 kB / 0.839 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005238/0.6149, allocations: 141.5 kB / 0.8391 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/0.6168, allocations: 1.638 MB / 0.8407 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005757/0.6174, allocations: 76.92 kB / 0.8408 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.588e-05/0.6175, allocations: 32.41 kB / 0.8408 GB, free: 8.676 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.0004045/0.6179, allocations: 278 kB / 0.8411 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.6181, allocations: 100.1 kB / 0.8412 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001979/0.62, allocations: 0.9733 MB / 0.8422 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.6201, allocations: 7.688 kB / 0.8422 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.6201, allocations: 4 kB / 0.8422 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.6201, allocations: 3.984 kB / 0.8422 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.6211, allocations: 0.9394 MB / 0.8431 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.6211, allocations: 0 / 0.8431 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/0.6216, allocations: 135.1 kB / 0.8432 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004096/0.622, allocations: 73.94 kB / 0.8433 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.166e-05/0.6221, allocations: 18.08 kB / 0.8433 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.6238, allocations: 1.666 MB / 0.8449 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.6238, allocations: 0 / 0.8449 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.6255, allocations: 0.8485 MB / 0.8458 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003293/0.6258, allocations: 271.1 kB / 0.846 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.6259, allocations: 12.62 kB / 0.846 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000496/0.6264, allocations: 53.8 kB / 0.8461 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.6265, allocations: 68.72 kB / 0.8461 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.664e-05/0.6266, allocations: 31.44 kB / 0.8462 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006224/0.6272, allocations: 0.5236 MB / 0.8467 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.433e-06/0.6272, allocations: 0 / 0.8467 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0007763/0.628, allocations: 316.4 kB / 0.847 GB, free: 4.242 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.001253/0.6293, allocations: 0.5835 MB / 0.8476 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001439/0.6307, allocations: 0.7404 MB / 0.8483 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.6308, allocations: 4 kB / 0.8483 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008037/0.6316, allocations: 488.4 kB / 0.8488 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001485/0.6331, allocations: 463.4 kB / 0.8492 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00392/0.637, allocations: 1.943 MB / 0.8511 GB, free: 308 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006858/0.6377, allocations: 1.07 MB / 0.8521 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/0.638, allocations: 115.4 kB / 0.8522 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of SimCode: time 2.71e-07/0.638, allocations: 0 / 0.8522 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of Templates: time 0.02478/0.6628, allocations: 20.76 MB / 0.8725 GB, free: 10.33 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