Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001449/0.001455, allocations: 106.7 kB / 16.41 MB, free: 6.508 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.001374/0.001374, allocations: 187 kB / 17.34 MB, free: 5.742 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.368/1.368, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7768/0.7768, allocations: 132.2 MB / 423.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 62.97 kB / 0.582 GB, free: 23.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.166, allocations: 80.21 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.6591/0.8251, allocations: 175.8 MB / 0.832 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01906/0.8442, allocations: 12.64 MB / 0.8444 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001817/0.846, allocations: 31.56 kB / 0.8444 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.8479, allocations: 455.7 kB / 0.8448 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004262/0.8523, allocations: 0.9539 MB / 0.8457 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005963/0.8583, allocations: 1.833 MB / 0.8475 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003605/0.8619, allocations: 2.282 MB / 0.8498 GB, free: 0.7695 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00284/0.8647, allocations: 1.587 MB / 0.8513 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004403/0.8692, allocations: 1.405 MB / 0.8527 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001533/0.8707, allocations: 0.8104 MB / 0.8535 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0005244/0.8712, allocations: 158.7 kB / 0.8536 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003523/0.8748, allocations: 1.412 MB / 0.855 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.00082/0.8756, allocations: 469.5 kB / 0.8555 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.00162/0.8773, allocations: 0.7986 MB / 0.8562 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005388/0.8826, allocations: 2.637 MB / 0.8588 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.8827, allocations: 0 / 0.8588 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.645e-06/0.8827, allocations: 0 / 0.8588 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.542e-05/0.8828, allocations: 4 kB / 0.8588 GB, free: 10.64 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.004517/0.8873, allocations: 1.895 MB / 0.8607 GB, free: 8.691 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.8873, allocations: 12.03 kB / 0.8607 GB, free: 8.68 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002937/0.8903, allocations: 397.6 kB / 0.8611 GB, free: 8.289 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002028/0.8923, allocations: 0.9957 MB / 0.862 GB, free: 7.25 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.457e-05/0.8924, allocations: 94.62 kB / 0.8621 GB, free: 7.156 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002713/0.8927, allocations: 128 kB / 0.8622 GB, free: 7.031 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003109/0.8958, allocations: 1.456 MB / 0.8637 GB, free: 5.496 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.01e-05/0.8959, allocations: 7.922 kB / 0.8637 GB, free: 5.488 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001556/0.8961, allocations: 56 kB / 0.8637 GB, free: 5.434 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/0.8961, allocations: 32 kB / 0.8638 GB, free: 5.402 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002817/0.8989, allocations: 1.532 MB / 0.8653 GB, free: 3.863 MB / 0.6231 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.007622/0.9066, allocations: 4.873 MB / 0.87 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002567/0.9091, allocations: 1.433 MB / 0.8714 GB, free: 13.22 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008227/0.91, allocations: 451.6 kB / 0.8718 GB, free: 12.77 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007466/0.9108, allocations: 429.3 kB / 0.8723 GB, free: 12.28 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001224/0.912, allocations: 0.6139 MB / 0.8728 GB, free: 11.65 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=98): time 4.95e-06/0.912, allocations: 0 / 0.8728 GB, free: 11.65 MB / 0.6387 GB Notification: Performance of matching and sorting (n=98): time 0.004137/0.9162, allocations: 1.539 MB / 0.8744 GB, free: 10.08 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.9163, allocations: 188.9 kB / 0.8745 GB, free: 9.855 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.9176, allocations: 0.862 MB / 0.8754 GB, free: 8.969 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.9177, allocations: 45.7 kB / 0.8754 GB, free: 8.918 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004892/0.9182, allocations: 0.5623 MB / 0.876 GB, free: 8.348 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002834/0.9185, allocations: 327.2 kB / 0.8763 GB, free: 8.023 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003198/0.9189, allocations: 210.3 kB / 0.8765 GB, free: 7.812 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.919, allocations: 345.9 kB / 0.8768 GB, free: 7.469 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007477/0.9198, allocations: 365.8 kB / 0.8772 GB, free: 7.109 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009188/0.9207, allocations: 0.5208 MB / 0.8777 GB, free: 6.535 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001662/0.9224, allocations: 0.9058 MB / 0.8786 GB, free: 5.586 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.9224, allocations: 3.938 kB / 0.8786 GB, free: 5.582 MB / 0.6387 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002689/0.9251, allocations: 1.153 MB / 0.8797 GB, free: 4.422 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.9251, allocations: 8 kB / 0.8797 GB, free: 4.414 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.9251, allocations: 7.938 kB / 0.8797 GB, free: 4.406 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006158/0.9258, allocations: 84.84 kB / 0.8798 GB, free: 4.32 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.9268, allocations: 243.6 kB / 0.88 GB, free: 4.082 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/0.9291, allocations: 1.635 MB / 0.8816 GB, free: 2.301 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.9302, allocations: 126.9 kB / 0.8817 GB, free: 2.176 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.9303, allocations: 47.97 kB / 0.8818 GB, free: 2.129 MB / 0.6387 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.0007393/0.9311, allocations: 338.3 kB / 0.8821 GB, free: 1.789 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003294/0.9314, allocations: 114.7 kB / 0.8822 GB, free: 1.676 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003075/0.9345, allocations: 1.324 MB / 0.8835 GB, free: 356 kB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.9345, allocations: 11.94 kB / 0.8835 GB, free: 344 kB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.9345, allocations: 4 kB / 0.8835 GB, free: 340 kB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.9345, allocations: 7.969 kB / 0.8835 GB, free: 332 kB / 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 postOpt removeSimpleEquations (simulation): time 0.004784/0.9393, allocations: 2.684 MB / 0.8861 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.9394, allocations: 0 / 0.8861 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009856/0.9404, allocations: 215.7 kB / 0.8863 GB, free: 13.34 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004627/0.9408, allocations: 72.8 kB / 0.8864 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.371e-05/0.9409, allocations: 27.97 kB / 0.8864 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.9428, allocations: 1.685 MB / 0.8881 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.9428, allocations: 0 / 0.8881 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/0.9455, allocations: 1.224 MB / 0.8893 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006612/0.9462, allocations: 343.2 kB / 0.8896 GB, free: 9.809 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.9464, allocations: 20 kB / 0.8896 GB, free: 9.789 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009606/0.9474, allocations: 69.97 kB / 0.8897 GB, free: 9.723 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.9476, allocations: 72.89 kB / 0.8898 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/0.9477, allocations: 51.91 kB / 0.8898 GB, free: 9.602 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001035/0.9488, allocations: 0.5902 MB / 0.8904 GB, free: 9 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2e-07/0.9488, allocations: 0 / 0.8904 GB, free: 9 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001494/0.9503, allocations: 466.9 kB / 0.8908 GB, free: 8.543 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.001869/0.9522, allocations: 0.6959 MB / 0.8915 GB, free: 8.066 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002429/0.9546, allocations: 1.082 MB / 0.8926 GB, free: 6.969 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.9546, allocations: 0 / 0.8926 GB, free: 6.969 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.9558, allocations: 0.6251 MB / 0.8932 GB, free: 6.332 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.9583, allocations: 0.52 MB / 0.8937 GB, free: 5.848 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005476/0.9638, allocations: 2.367 MB / 0.896 GB, free: 3.445 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008911/0.9647, allocations: 1.178 MB / 0.8972 GB, free: 2.234 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005304/0.9653, allocations: 151.4 kB / 0.8973 GB, free: 2.086 MB / 0.6544 GB Notification: Performance of SimCode: time 8.41e-07/0.9653, allocations: 0 / 0.8973 GB, free: 2.086 MB / 0.6544 GB Notification: Performance of Templates: time 0.0399/1.005, allocations: 26.95 MB / 0.9236 GB, free: 7.219 MB / 0.6856 GB make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile make -j1 -f IDEAS_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/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.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.o OMCppIDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataFunctions.cpp:8: /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.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.o] Error 1