Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 104.9 kB / 16.27 MB, free: 5.867 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.001306/0.001306, allocations: 186.8 kB / 17.2 MB, free: 5.508 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.3/1.3, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7959/0.7959, allocations: 135.2 MB / 426.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002943/0.002943, allocations: 67.89 kB / 0.506 GB, free: 8.383 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3594, allocations: 80.91 MB / 0.5851 GB, free: 25.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.495/0.8545, allocations: 175.8 MB / 0.7567 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01324/0.8677, allocations: 12.64 MB / 0.7691 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001186/0.869, allocations: 32.94 kB / 0.7691 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.8701, allocations: 437.8 kB / 0.7695 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002446/0.8725, allocations: 0.9289 MB / 0.7704 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004349/0.8769, allocations: 1.812 MB / 0.7722 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002505/0.8794, allocations: 2.272 MB / 0.7744 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001743/0.8812, allocations: 1.598 MB / 0.776 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003567/0.8847, allocations: 1.348 MB / 0.7773 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001129/0.8859, allocations: 0.8127 MB / 0.7781 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002444/0.8861, allocations: 160.5 kB / 0.7782 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00256/0.8887, allocations: 1.379 MB / 0.7796 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003722/0.8891, allocations: 469.8 kB / 0.78 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007912/0.8899, allocations: 0.8076 MB / 0.7808 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003053/0.893, allocations: 2.579 MB / 0.7833 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.893, allocations: 0 / 0.7833 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.412e-06/0.893, allocations: 1.031 kB / 0.7833 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.131e-05/0.893, allocations: 0 / 0.7833 GB, free: 0.8867 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: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.002605/0.8956, allocations: 1.901 MB / 0.7852 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.8957, allocations: 10.58 kB / 0.7852 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002381/0.898, allocations: 397.4 kB / 0.7856 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001265/0.8993, allocations: 0.9579 MB / 0.7865 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.245e-05/0.8994, allocations: 98.53 kB / 0.7866 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.8995, allocations: 124.3 kB / 0.7867 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002037/0.9016, allocations: 1.465 MB / 0.7882 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.9016, allocations: 0 / 0.7882 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.9017, allocations: 55.16 kB / 0.7882 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.332e-05/0.9018, allocations: 35.75 kB / 0.7882 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002065/0.9038, allocations: 1.538 MB / 0.7897 GB, free: 15.24 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005896/0.9097, allocations: 4.929 MB / 0.7946 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002135/0.9119, allocations: 1.412 MB / 0.7959 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006872/0.9126, allocations: 453.8 kB / 0.7964 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000729/0.9133, allocations: 427.5 kB / 0.7968 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009816/0.9143, allocations: 0.6173 MB / 0.7974 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=98): time 2.685e-06/0.9143, allocations: 2.625 kB / 0.7974 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of matching and sorting (n=98): time 0.003643/0.918, allocations: 1.529 MB / 0.7989 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.9181, allocations: 199.9 kB / 0.7991 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.9192, allocations: 0.8484 MB / 0.7999 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.9193, allocations: 46.75 kB / 0.7999 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004636/0.9198, allocations: 0.5676 MB / 0.8005 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003338/0.9201, allocations: 336.1 kB / 0.8008 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002776/0.9204, allocations: 199.8 kB / 0.801 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.9206, allocations: 338.6 kB / 0.8013 GB, free: 10.74 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006171/0.9212, allocations: 371.4 kB / 0.8017 GB, free: 10.74 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007751/0.922, allocations: 0.5276 MB / 0.8022 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.9234, allocations: 0.9032 MB / 0.8031 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.9234, allocations: 2.344 kB / 0.8031 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002415/0.9258, allocations: 1.15 MB / 0.8042 GB, free: 10.35 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.9259, allocations: 10.5 kB / 0.8042 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.9259, allocations: 2.531 kB / 0.8042 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005586/0.9265, allocations: 90.59 kB / 0.8043 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009409/0.9274, allocations: 239.1 kB / 0.8045 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002276/0.9297, allocations: 1.647 MB / 0.8061 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009825/0.9307, allocations: 124.3 kB / 0.8063 GB, free: 8.902 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.137e-05/0.9308, allocations: 46.94 kB / 0.8063 GB, free: 8.898 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (119): * Single equations (assignments): 118 * 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.0005835/0.9314, allocations: 333.6 kB / 0.8066 GB, free: 8.781 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.9316, allocations: 114.5 kB / 0.8067 GB, free: 8.723 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/0.9342, allocations: 1.33 MB / 0.808 GB, free: 8.613 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.9343, allocations: 14.95 kB / 0.808 GB, free: 8.609 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.9343, allocations: 2.438 kB / 0.8081 GB, free: 8.609 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.9343, allocations: 3.797 kB / 0.8081 GB, free: 8.609 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/0.9383, allocations: 2.698 MB / 0.8107 GB, free: 8.105 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.9383, allocations: 4 kB / 0.8107 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000864/0.9392, allocations: 210.5 kB / 0.8109 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004218/0.9396, allocations: 81 kB / 0.811 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.097e-05/0.9397, allocations: 28.09 kB / 0.811 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/0.9416, allocations: 1.675 MB / 0.8126 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.9416, allocations: 0 / 0.8126 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.944, allocations: 1.226 MB / 0.8138 GB, free: 6.168 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005944/0.9447, allocations: 336.7 kB / 0.8142 GB, free: 5.934 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.9448, allocations: 23.27 kB / 0.8142 GB, free: 5.918 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007998/0.9456, allocations: 72.59 kB / 0.8142 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.9458, allocations: 77.81 kB / 0.8143 GB, free: 5.891 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.393e-05/0.9459, allocations: 47.05 kB / 0.8144 GB, free: 5.883 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007978/0.9467, allocations: 0.5891 MB / 0.8149 GB, free: 5.625 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9467, allocations: 0 / 0.8149 GB, free: 5.625 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001207/0.9479, allocations: 461.8 kB / 0.8154 GB, free: 5.504 MB / 0.5919 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * 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.002031/0.95, allocations: 0.7041 MB / 0.8161 GB, free: 5.289 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003093/0.9531, allocations: 1.364 MB / 0.8174 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.9531, allocations: 0 / 0.8174 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.9542, allocations: 0.6378 MB / 0.818 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/0.9564, allocations: 0.5116 MB / 0.8185 GB, free: 4.434 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00477/0.9611, allocations: 2.41 MB / 0.8209 GB, free: 3.172 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007527/0.9619, allocations: 1.174 MB / 0.822 GB, free: 2.262 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004556/0.9624, allocations: 151.5 kB / 0.8222 GB, free: 2.219 MB / 0.5919 GB Notification: Performance of SimCode: time 6.51e-07/0.9624, allocations: 0 / 0.8222 GB, free: 2.219 MB / 0.5919 GB Notification: Performance of Templates: time 0.03654/0.9989, allocations: 26.81 MB / 0.8483 GB, free: 8.547 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.o OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataFunctions.cpp:8: /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.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.o] Error 1