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.001629/0.001629, allocations: 100.1 kB / 15.88 MB, free: 12 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.002167/0.002167, allocations: 199.5 kB / 16.79 MB, free: 6.828 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.433/1.433, allocations: 222.9 MB / 240.5 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9487/0.9487, allocations: 135.1 MB / 425.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 60.28 kB / 0.5053 GB, free: 5.719 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1471, allocations: 80.92 MB / 0.5843 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006238/0.1534, allocations: 4.862 MB / 0.5891 GB, free: 76 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.387/0.5404, allocations: 148.4 MB / 0.734 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008962/0.5414, allocations: 26.41 kB / 0.7341 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008275/0.5423, allocations: 279.4 kB / 0.7343 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001512/0.5438, allocations: 401.6 kB / 0.7347 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001771/0.5456, allocations: 0.7199 MB / 0.7354 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001537/0.5471, allocations: 1.256 MB / 0.7366 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.5482, allocations: 0.7833 MB / 0.7374 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006377/0.5488, allocations: 423 kB / 0.7378 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005082/0.5493, allocations: 486.7 kB / 0.7383 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.5495, allocations: 59.28 kB / 0.7383 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008117/0.5503, allocations: 403.6 kB / 0.7387 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002387/0.5506, allocations: 241.9 kB / 0.7389 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000447/0.551, allocations: 0.5362 MB / 0.7395 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.5523, allocations: 1.311 MB / 0.7408 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.5523, allocations: 0 / 0.7408 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5523, allocations: 0 / 0.7408 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.064e-05/0.5524, allocations: 0 / 0.7408 GB, free: 9.906 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.002452/0.5548, allocations: 1.571 MB / 0.7423 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.5549, allocations: 9.625 kB / 0.7423 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009341/0.5558, allocations: 211.6 kB / 0.7425 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.5569, allocations: 0.8556 MB / 0.7433 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.708e-05/0.557, allocations: 68.91 kB / 0.7434 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.5571, allocations: 91.94 kB / 0.7435 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.5588, allocations: 0.9683 MB / 0.7444 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.5588, allocations: 4 kB / 0.7444 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.2e-05/0.5589, allocations: 38.94 kB / 0.7445 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.5589, allocations: 24.41 kB / 0.7445 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.5606, allocations: 1.119 MB / 0.7456 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003961/0.5645, allocations: 2.693 MB / 0.7482 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.5657, allocations: 0.7046 MB / 0.7489 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004383/0.5662, allocations: 267.7 kB / 0.7492 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.289e-05/0.5663, allocations: 30.48 kB / 0.7492 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007865/0.5671, allocations: 428.7 kB / 0.7496 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=69): time 2.384e-06/0.5671, allocations: 0 / 0.7496 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69): time 0.002933/0.57, allocations: 1.077 MB / 0.7507 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.5701, allocations: 196.5 kB / 0.7508 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009854/0.5711, allocations: 0.7475 MB / 0.7516 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7e-05/0.5712, allocations: 37.7 kB / 0.7516 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003893/0.5716, allocations: 492 kB / 0.7521 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.5718, allocations: 236.6 kB / 0.7523 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/0.5721, allocations: 142.2 kB / 0.7524 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.5722, allocations: 334 kB / 0.7528 GB, free: 464 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004613/0.5726, allocations: 237.2 kB / 0.753 GB, free: 228 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005546/0.5732, allocations: 315.4 kB / 0.7533 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009967/0.5742, allocations: 0.544 MB / 0.7538 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5742, allocations: 0 / 0.7538 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001889/0.5761, allocations: 0.778 MB / 0.7546 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.5762, allocations: 8 kB / 0.7546 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.5762, allocations: 0 / 0.7546 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000623/0.5768, allocations: 84.86 kB / 0.7547 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00059/0.5774, allocations: 139.8 kB / 0.7548 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002171/0.5796, allocations: 1.536 MB / 0.7563 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007637/0.5804, allocations: 75.44 kB / 0.7564 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.558e-05/0.5804, allocations: 31.97 kB / 0.7564 GB, free: 12.55 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.0005085/0.581, allocations: 277.7 kB / 0.7567 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000191/0.5811, allocations: 94.88 kB / 0.7568 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00223/0.5834, allocations: 0.9759 MB / 0.7577 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.5834, allocations: 15.94 kB / 0.7577 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.5834, allocations: 0 / 0.7577 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.5834, allocations: 3.984 kB / 0.7577 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.5846, allocations: 0.9239 MB / 0.7586 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.5846, allocations: 7.938 kB / 0.7586 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005606/0.5851, allocations: 135.8 kB / 0.7588 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005386/0.5857, allocations: 80.53 kB / 0.7588 GB, free: 9.988 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.266e-05/0.5857, allocations: 23.98 kB / 0.7589 GB, free: 9.965 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.5876, allocations: 1.561 MB / 0.7604 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.5876, allocations: 0.8125 kB / 0.7604 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.5895, allocations: 0.845 MB / 0.7612 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.5899, allocations: 267.7 kB / 0.7615 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.59, allocations: 16 kB / 0.7615 GB, free: 7.109 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.5906, allocations: 61.75 kB / 0.7615 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.5907, allocations: 56.92 kB / 0.7616 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.183e-05/0.5908, allocations: 30.05 kB / 0.7616 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006773/0.5914, allocations: 0.5263 MB / 0.7621 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.31e-07/0.5914, allocations: 0 / 0.7621 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00085/0.5923, allocations: 311.1 kB / 0.7624 GB, free: 6.137 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.001338/0.5936, allocations: 0.5994 MB / 0.763 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001536/0.5952, allocations: 0.7386 MB / 0.7637 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.5952, allocations: 192 / 0.7637 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008295/0.5961, allocations: 484.8 kB / 0.7642 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00155/0.5976, allocations: 407.9 kB / 0.7646 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004257/0.6019, allocations: 2.427 MB / 0.767 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006188/0.6025, allocations: 1.076 MB / 0.768 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003494/0.6029, allocations: 115.4 kB / 0.7681 GB, free: 460 kB / 0.5762 GB Notification: Performance of SimCode: time 7.92e-07/0.6029, allocations: 0 / 0.7681 GB, free: 460 kB / 0.5762 GB Notification: Performance of Templates: time 0.02621/0.6291, allocations: 20.76 MB / 0.7884 GB, free: 11.73 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