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.001377/0.001377, allocations: 110.9 kB / 16.41 MB, free: 6.465 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.001435/0.001435, allocations: 189.7 kB / 17.34 MB, free: 5.711 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.476/1.476, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8561/0.8561, allocations: 135.2 MB / 426.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 71.78 kB / 0.5863 GB, free: 21.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1843, allocations: 80.93 MB / 0.6654 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.6638/0.8481, allocations: 176.3 MB / 0.8375 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02086/0.869, allocations: 12.66 MB / 0.8499 GB, free: 14.47 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.8708, allocations: 32.28 kB / 0.8499 GB, free: 14.46 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.8725, allocations: 454 kB / 0.8503 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.003965/0.8764, allocations: 0.9599 MB / 0.8513 GB, free: 13.34 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005756/0.8822, allocations: 1.838 MB / 0.8531 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004011/0.8862, allocations: 2.272 MB / 0.8553 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002319/0.8885, allocations: 1.31 MB / 0.8566 GB, free: 9.676 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004907/0.8934, allocations: 1.399 MB / 0.8579 GB, free: 8.855 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001587/0.895, allocations: 0.8052 MB / 0.8587 GB, free: 8.305 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002872/0.8953, allocations: 160 kB / 0.8589 GB, free: 8.305 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003225/0.8985, allocations: 1.416 MB / 0.8602 GB, free: 7.605 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0005519/0.8991, allocations: 476.2 kB / 0.8607 GB, free: 7.184 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.9002, allocations: 0.793 MB / 0.8615 GB, free: 6.387 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005238/0.9054, allocations: 2.65 MB / 0.8641 GB, free: 3.734 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.9054, allocations: 0 / 0.8641 GB, free: 3.734 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9054, allocations: 0 / 0.8641 GB, free: 3.734 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.992e-05/0.9055, allocations: 3.938 kB / 0.8641 GB, free: 3.73 MB / 0.6231 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.003828/0.9093, allocations: 1.959 MB / 0.866 GB, free: 1.711 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.9094, allocations: 13.05 kB / 0.866 GB, free: 1.699 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002678/0.912, allocations: 406.5 kB / 0.8664 GB, free: 1.301 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.9138, allocations: 0.9887 MB / 0.8673 GB, free: 276 kB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.569e-05/0.9139, allocations: 98.62 kB / 0.8674 GB, free: 176 kB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/0.9141, allocations: 128 kB / 0.8676 GB, free: 48 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/0.9169, allocations: 1.46 MB / 0.869 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.9169, allocations: 7.938 kB / 0.869 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.917, allocations: 52 kB / 0.869 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.134e-05/0.9171, allocations: 32 kB / 0.8691 GB, free: 14.41 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002781/0.9198, allocations: 1.54 MB / 0.8706 GB, free: 12.87 MB / 0.6387 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.007849/0.9277, allocations: 4.889 MB / 0.8753 GB, free: 7.723 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/0.9302, allocations: 1.362 MB / 0.8767 GB, free: 6.277 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008117/0.931, allocations: 416.6 kB / 0.8771 GB, free: 5.871 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008328/0.9319, allocations: 421.4 kB / 0.8775 GB, free: 5.383 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.9331, allocations: 0.6216 MB / 0.8781 GB, free: 4.746 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=98): time 3.376e-06/0.9331, allocations: 0 / 0.8781 GB, free: 4.746 MB / 0.6387 GB Notification: Performance of matching and sorting (n=98): time 0.00425/0.9373, allocations: 1.532 MB / 0.8796 GB, free: 3.184 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001993/0.9375, allocations: 204.8 kB / 0.8798 GB, free: 2.941 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/0.939, allocations: 0.8504 MB / 0.8806 GB, free: 2.066 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.9391, allocations: 45.7 kB / 0.8807 GB, free: 2.016 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005884/0.9397, allocations: 0.579 MB / 0.8812 GB, free: 1.43 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000347/0.94, allocations: 345 kB / 0.8815 GB, free: 1.09 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003507/0.9404, allocations: 198.6 kB / 0.8817 GB, free: 0.8906 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.9406, allocations: 345.9 kB / 0.8821 GB, free: 0.5469 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007768/0.9413, allocations: 365.8 kB / 0.8824 GB, free: 192 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009911/0.9423, allocations: 0.5298 MB / 0.8829 GB, free: 15.61 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001841/0.9442, allocations: 0.9019 MB / 0.8838 GB, free: 14.67 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.9442, allocations: 0 / 0.8838 GB, free: 14.67 MB / 0.6544 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.00288/0.9471, allocations: 1.157 MB / 0.8849 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.9471, allocations: 4 kB / 0.8849 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.9471, allocations: 7.938 kB / 0.885 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005971/0.9477, allocations: 92.92 kB / 0.885 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.9487, allocations: 235.7 kB / 0.8853 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.9511, allocations: 1.646 MB / 0.8869 GB, free: 11.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.9521, allocations: 113.1 kB / 0.887 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.9522, allocations: 51.97 kB / 0.887 GB, free: 11.21 MB / 0.6544 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.0007185/0.953, allocations: 347.5 kB / 0.8874 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/0.9532, allocations: 123.2 kB / 0.8875 GB, free: 10.74 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/0.9564, allocations: 1.322 MB / 0.8888 GB, free: 9.41 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.9564, allocations: 15.94 kB / 0.8888 GB, free: 9.395 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.9564, allocations: 3.938 kB / 0.8888 GB, free: 9.391 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.9564, allocations: 3.984 kB / 0.8888 GB, free: 9.387 MB / 0.6544 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.004796/0.9612, allocations: 2.695 MB / 0.8914 GB, free: 6.605 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.9612, allocations: 0 / 0.8914 GB, free: 6.605 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000945/0.9621, allocations: 207.8 kB / 0.8916 GB, free: 6.402 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004477/0.9626, allocations: 80.72 kB / 0.8917 GB, free: 6.32 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.569e-05/0.9627, allocations: 31.92 kB / 0.8917 GB, free: 6.289 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002092/0.9647, allocations: 1.682 MB / 0.8934 GB, free: 4.457 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.9647, allocations: 0 / 0.8934 GB, free: 4.457 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/0.9676, allocations: 1.237 MB / 0.8946 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006371/0.9682, allocations: 343.9 kB / 0.8949 GB, free: 2.844 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.9684, allocations: 24 kB / 0.8949 GB, free: 2.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008044/0.9692, allocations: 67.92 kB / 0.895 GB, free: 2.754 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.9694, allocations: 68.91 kB / 0.8951 GB, free: 2.688 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.9695, allocations: 47.95 kB / 0.8951 GB, free: 2.641 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0009098/0.9704, allocations: 0.5902 MB / 0.8957 GB, free: 2.039 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9704, allocations: 8 kB / 0.8957 GB, free: 2.031 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001339/0.9717, allocations: 462.8 kB / 0.8961 GB, free: 1.578 MB / 0.6544 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.002278/0.974, allocations: 0.7034 MB / 0.8968 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00259/0.9766, allocations: 1.027 MB / 0.8978 GB, free: 20 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/0.9766, allocations: 7.938 kB / 0.8978 GB, free: 12 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.9779, allocations: 0.5938 MB / 0.8984 GB, free: 15.41 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/0.9806, allocations: 0.5187 MB / 0.8989 GB, free: 14.91 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005424/0.986, allocations: 2.411 MB / 0.9013 GB, free: 12.46 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009157/0.9869, allocations: 1.174 MB / 0.9024 GB, free: 11.25 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005736/0.9875, allocations: 151.3 kB / 0.9026 GB, free: 11.1 MB / 0.67 GB Notification: Performance of SimCode: time 6.81e-07/0.9875, allocations: 0 / 0.9026 GB, free: 11.1 MB / 0.67 GB Notification: Performance of Templates: time 0.04231/1.03, allocations: 27.02 MB / 0.929 GB, free: 172 kB / 0.6856 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