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.001223/0.001223, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.001363/0.001363, allocations: 189.6 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7972/0.7972, allocations: 135.1 MB / 426.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 62.91 kB / 0.5863 GB, free: 21.63 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1637, allocations: 80.92 MB / 0.6653 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5608/0.7245, allocations: 175.8 MB / 0.837 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01764/0.7422, allocations: 12.64 MB / 0.8493 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00218/0.7445, allocations: 31.91 kB / 0.8493 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002179/0.7467, allocations: 445 kB / 0.8498 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.003825/0.7506, allocations: 0.9306 MB / 0.8507 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.00527/0.7559, allocations: 1.821 MB / 0.8525 GB, free: 12.44 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.003572/0.7595, allocations: 2.288 MB / 0.8547 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002853/0.7623, allocations: 1.581 MB / 0.8562 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004531/0.7669, allocations: 1.371 MB / 0.8576 GB, free: 9.234 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001643/0.7685, allocations: 0.8036 MB / 0.8584 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0005448/0.7691, allocations: 161.1 kB / 0.8585 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003387/0.7725, allocations: 1.422 MB / 0.8599 GB, free: 7.945 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006735/0.7732, allocations: 462.6 kB / 0.8603 GB, free: 7.492 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001426/0.7746, allocations: 0.8046 MB / 0.8611 GB, free: 6.684 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.004977/0.7796, allocations: 2.636 MB / 0.8637 GB, free: 4.043 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.7797, allocations: 0 / 0.8637 GB, free: 4.043 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.535e-06/0.7797, allocations: 0 / 0.8637 GB, free: 4.043 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.084e-05/0.7798, allocations: 0 / 0.8637 GB, free: 4.043 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.004353/0.7841, allocations: 1.899 MB / 0.8656 GB, free: 2.086 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.7842, allocations: 13.11 kB / 0.8656 GB, free: 2.074 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002891/0.7871, allocations: 401.6 kB / 0.866 GB, free: 1.68 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.789, allocations: 0.9879 MB / 0.8669 GB, free: 0.6484 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.836e-05/0.7891, allocations: 94.62 kB / 0.867 GB, free: 0.5547 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/0.7893, allocations: 124 kB / 0.8671 GB, free: 444 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002867/0.7922, allocations: 1.46 MB / 0.8685 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.7922, allocations: 4 kB / 0.8686 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/0.7924, allocations: 56 kB / 0.8686 GB, free: 14.83 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.7924, allocations: 32 kB / 0.8686 GB, free: 14.8 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002628/0.7951, allocations: 1.539 MB / 0.8701 GB, free: 13.25 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.007766/0.8029, allocations: 4.88 MB / 0.8749 GB, free: 8.117 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002546/0.8054, allocations: 1.43 MB / 0.8763 GB, free: 6.609 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007865/0.8062, allocations: 452.6 kB / 0.8767 GB, free: 6.168 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007591/0.807, allocations: 425.4 kB / 0.8771 GB, free: 5.676 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.8081, allocations: 0.6139 MB / 0.8777 GB, free: 5.043 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=98): time 3.026e-06/0.8082, allocations: 0 / 0.8777 GB, free: 5.043 MB / 0.6387 GB Notification: Performance of matching and sorting (n=98): time 0.00413/0.8123, allocations: 1.532 MB / 0.8792 GB, free: 3.484 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.8124, allocations: 192.9 kB / 0.8794 GB, free: 3.254 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/0.8137, allocations: 0.8542 MB / 0.8803 GB, free: 2.375 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.8138, allocations: 41.7 kB / 0.8803 GB, free: 2.328 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004836/0.8143, allocations: 0.5778 MB / 0.8809 GB, free: 1.742 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002829/0.8146, allocations: 327.2 kB / 0.8812 GB, free: 1.418 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003125/0.8149, allocations: 202.5 kB / 0.8814 GB, free: 1.215 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.815, allocations: 345.9 kB / 0.8817 GB, free: 0.8711 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007158/0.8158, allocations: 357.8 kB / 0.882 GB, free: 0.5195 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008775/0.8167, allocations: 0.5325 MB / 0.8826 GB, free: 15.94 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.8182, allocations: 0.9019 MB / 0.8834 GB, free: 15 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.8182, allocations: 4 kB / 0.8834 GB, free: 14.99 MB / 0.6544 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002551/0.8208, allocations: 1.153 MB / 0.8846 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.8208, allocations: 8 kB / 0.8846 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.8208, allocations: 7.938 kB / 0.8846 GB, free: 13.81 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006129/0.8214, allocations: 84.92 kB / 0.8847 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.8225, allocations: 231.7 kB / 0.8849 GB, free: 13.5 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/0.8246, allocations: 1.657 MB / 0.8865 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.8257, allocations: 118.9 kB / 0.8866 GB, free: 11.58 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.407e-05/0.8258, allocations: 43.97 kB / 0.8867 GB, free: 11.54 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.000613/0.8264, allocations: 337.5 kB / 0.887 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.8266, allocations: 114.6 kB / 0.8871 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002798/0.8294, allocations: 1.327 MB / 0.8884 GB, free: 9.75 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.8294, allocations: 15.94 kB / 0.8884 GB, free: 9.734 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.8295, allocations: 4 kB / 0.8884 GB, free: 9.73 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.8295, allocations: 3.984 kB / 0.8884 GB, free: 9.727 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.004235/0.8337, allocations: 2.695 MB / 0.891 GB, free: 6.945 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.8337, allocations: 0 / 0.891 GB, free: 6.945 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009309/0.8347, allocations: 215.7 kB / 0.8912 GB, free: 6.734 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004391/0.8351, allocations: 76.78 kB / 0.8913 GB, free: 6.656 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.385e-05/0.8352, allocations: 27.92 kB / 0.8913 GB, free: 6.629 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001861/0.8371, allocations: 1.677 MB / 0.893 GB, free: 4.801 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.8371, allocations: 0 / 0.893 GB, free: 4.801 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002397/0.8395, allocations: 1.228 MB / 0.8942 GB, free: 3.551 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005216/0.84, allocations: 331.3 kB / 0.8945 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.8402, allocations: 31.98 kB / 0.8945 GB, free: 3.176 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008212/0.841, allocations: 66.12 kB / 0.8946 GB, free: 3.113 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.8412, allocations: 76.89 kB / 0.8947 GB, free: 3.039 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.683e-05/0.8413, allocations: 47.97 kB / 0.8947 GB, free: 2.992 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007743/0.8421, allocations: 0.5902 MB / 0.8953 GB, free: 2.391 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8421, allocations: 7.938 kB / 0.8953 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001228/0.8433, allocations: 462.9 kB / 0.8957 GB, free: 1.93 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.001615/0.8449, allocations: 0.6867 MB / 0.8964 GB, free: 1.422 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002159/0.8471, allocations: 1.078 MB / 0.8975 GB, free: 340 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.8471, allocations: 3.906 kB / 0.8975 GB, free: 336 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.8482, allocations: 0.6251 MB / 0.8981 GB, free: 15.69 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/0.8503, allocations: 0.5146 MB / 0.8986 GB, free: 15.19 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004684/0.855, allocations: 2.384 MB / 0.9009 GB, free: 12.78 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007041/0.8557, allocations: 1.17 MB / 0.902 GB, free: 11.57 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005154/0.8563, allocations: 151.4 kB / 0.9022 GB, free: 11.43 MB / 0.67 GB Notification: Performance of SimCode: time 8.62e-07/0.8563, allocations: 4 kB / 0.9022 GB, free: 11.42 MB / 0.67 GB Notification: Performance of Templates: time 0.0384/0.8947, allocations: 27.14 MB / 0.9287 GB, free: 372 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