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.001659/0.001659, allocations: 109.4 kB / 15.99 MB, free: 6.344 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.002308/0.002308, allocations: 196.2 kB / 16.91 MB, free: 6.176 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.36/1.36, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.801/0.801, allocations: 135.1 MB / 425.9 MB, free: 4.266 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 67.91 kB / 0.5055 GB, free: 8.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4274/0.4289, allocations: 80.91 MB / 0.5845 GB, free: 25.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5217/0.9507, allocations: 173.4 MB / 0.7539 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01451/0.9652, allocations: 12.48 MB / 0.7661 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001486/0.9668, allocations: 31.47 kB / 0.7661 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.9681, allocations: 375.4 kB / 0.7665 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003057/0.9711, allocations: 0.8421 MB / 0.7673 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004753/0.9759, allocations: 1.663 MB / 0.7689 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00334/0.9793, allocations: 2.28 MB / 0.7711 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002391/0.9817, allocations: 1.584 MB / 0.7727 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00462/0.9863, allocations: 1.34 MB / 0.774 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.9878, allocations: 0.8306 MB / 0.7748 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003182/0.9881, allocations: 162.8 kB / 0.775 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002867/0.991, allocations: 1.421 MB / 0.7763 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004354/0.9915, allocations: 473.3 kB / 0.7768 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009293/0.9924, allocations: 0.7916 MB / 0.7776 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002647/0.9951, allocations: 1.956 MB / 0.7795 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.9951, allocations: 0 / 0.7795 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.064e-06/0.9951, allocations: 0 / 0.7795 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.682e-05/0.9951, allocations: 0.9062 kB / 0.7795 GB, free: 1.188 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.003026/0.9981, allocations: 1.901 MB / 0.7813 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.9982, allocations: 12.84 kB / 0.7813 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002516/1.001, allocations: 396.7 kB / 0.7817 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/1.002, allocations: 0.9559 MB / 0.7827 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.495e-05/1.002, allocations: 98.47 kB / 0.7828 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/1.002, allocations: 129.9 kB / 0.7829 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/1.005, allocations: 1.458 MB / 0.7843 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/1.005, allocations: 0 / 0.7843 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/1.005, allocations: 58.78 kB / 0.7844 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-05/1.005, allocations: 32.22 kB / 0.7844 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002273/1.007, allocations: 1.541 MB / 0.7859 GB, free: 15.56 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.006468/1.014, allocations: 4.911 MB / 0.7907 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/1.016, allocations: 1.421 MB / 0.7921 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006966/1.017, allocations: 454 kB / 0.7925 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007481/1.017, allocations: 426.3 kB / 0.7929 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001061/1.018, allocations: 0.6206 MB / 0.7935 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=98): time 2.404e-06/1.018, allocations: 0 / 0.7935 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of matching and sorting (n=98): time 0.003827/1.022, allocations: 1.531 MB / 0.795 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/1.022, allocations: 192 kB / 0.7952 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/1.023, allocations: 0.8542 MB / 0.796 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001325/1.024, allocations: 44.64 kB / 0.7961 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/1.024, allocations: 0.5703 MB / 0.7966 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000264/1.024, allocations: 337.5 kB / 0.797 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/1.025, allocations: 197.1 kB / 0.7971 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001248/1.025, allocations: 350.5 kB / 0.7975 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006626/1.025, allocations: 360.3 kB / 0.7978 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007801/1.026, allocations: 0.5296 MB / 0.7983 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/1.028, allocations: 0.9012 MB / 0.7992 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/1.028, allocations: 2.219 kB / 0.7992 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002513/1.03, allocations: 1.157 MB / 0.8003 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/1.03, allocations: 8.875 kB / 0.8004 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/1.03, allocations: 4.188 kB / 0.8004 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006072/1.031, allocations: 90.48 kB / 0.8004 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/1.032, allocations: 240.4 kB / 0.8007 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00224/1.034, allocations: 1.64 MB / 0.8023 GB, free: 9.277 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/1.036, allocations: 139.9 kB / 0.8024 GB, free: 9.223 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.581e-05/1.036, allocations: 46.84 kB / 0.8025 GB, free: 9.223 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.0006914/1.036, allocations: 335.6 kB / 0.8028 GB, free: 9.102 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/1.037, allocations: 116.8 kB / 0.8029 GB, free: 9.043 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002935/1.04, allocations: 1.328 MB / 0.8042 GB, free: 8.926 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/1.04, allocations: 10.75 kB / 0.8042 GB, free: 8.926 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/1.04, allocations: 5.484 kB / 0.8042 GB, free: 8.922 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/1.04, allocations: 5.438 kB / 0.8042 GB, free: 8.922 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.004468/1.044, allocations: 2.702 MB / 0.8068 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/1.044, allocations: 1.781 kB / 0.8068 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009396/1.045, allocations: 212.8 kB / 0.807 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004452/1.045, allocations: 76.02 kB / 0.8071 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.286e-05/1.046, allocations: 29.77 kB / 0.8071 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/1.047, allocations: 1.687 MB / 0.8088 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/1.047, allocations: 0.9375 kB / 0.8088 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/1.05, allocations: 1.223 MB / 0.81 GB, free: 6.781 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005536/1.05, allocations: 335.6 kB / 0.8103 GB, free: 6.613 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/1.051, allocations: 22.31 kB / 0.8103 GB, free: 6.613 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009011/1.052, allocations: 88.45 kB / 0.8104 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/1.052, allocations: 72 kB / 0.8105 GB, free: 6.605 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.722e-05/1.052, allocations: 47.03 kB / 0.8105 GB, free: 6.605 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008069/1.053, allocations: 0.5869 MB / 0.8111 GB, free: 6.496 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/1.053, allocations: 0.8125 kB / 0.8111 GB, free: 6.496 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001367/1.054, allocations: 462.1 kB / 0.8115 GB, free: 6.418 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.001639/1.056, allocations: 0.708 MB / 0.8122 GB, free: 6.223 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00322/1.059, allocations: 1.357 MB / 0.8136 GB, free: 5.977 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.059, allocations: 3.469 kB / 0.8136 GB, free: 5.977 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/1.06, allocations: 0.6357 MB / 0.8142 GB, free: 5.719 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/1.062, allocations: 0.5151 MB / 0.8147 GB, free: 5.559 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/1.068, allocations: 2.969 MB / 0.8176 GB, free: 3.828 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000762/1.068, allocations: 1.172 MB / 0.8187 GB, free: 3.082 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005495/1.069, allocations: 150.1 kB / 0.8189 GB, free: 3.062 MB / 0.5919 GB Notification: Performance of SimCode: time 1.403e-06/1.069, allocations: 0 / 0.8189 GB, free: 3.062 MB / 0.5919 GB Notification: Performance of Templates: time 0.03662/1.106, allocations: 26.82 MB / 0.8451 GB, free: 10.68 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++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.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