Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Sources.Examples.Outside_CpData.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.Outside_CpData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.Outside_CpData") translateModel(IDEAS.Fluid.Sources.Examples.Outside_CpData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.Outside_CpData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 104.6 kB / 16.41 MB, free: 6.5 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.001444/0.001444, allocations: 189.7 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8376/0.8376, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 62.88 kB / 0.582 GB, free: 23.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1682/0.1695, allocations: 80.21 MB / 0.6603 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.Outside_CpData): time 0.5834/0.7529, allocations: 166.9 MB / 0.8233 GB, free: 5.852 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02449/0.7775, allocations: 17.09 MB / 0.84 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.779, allocations: 32.09 kB / 0.8401 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002034/0.7811, allocations: 0.5262 MB / 0.8406 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005151/0.7863, allocations: 1.645 MB / 0.8422 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004805/0.7911, allocations: 1.383 MB / 0.8435 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003475/0.7946, allocations: 2.528 MB / 0.846 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003284/0.7979, allocations: 1.957 MB / 0.8479 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004441/0.8023, allocations: 1.367 MB / 0.8492 GB, free: 1.949 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001985/0.8043, allocations: 1.019 MB / 0.8502 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0008028/0.8052, allocations: 213.1 kB / 0.8504 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003826/0.809, allocations: 1.548 MB / 0.852 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0009875/0.81, allocations: 0.7603 MB / 0.8527 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002222/0.8122, allocations: 1.125 MB / 0.8538 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006327/0.8186, allocations: 3.402 MB / 0.8571 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.8186, allocations: 0 / 0.8571 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.913e-06/0.8186, allocations: 0 / 0.8571 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001268/0.8188, allocations: 0 / 0.8571 GB, free: 12.45 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.00633/0.8251, allocations: 2.615 MB / 0.8597 GB, free: 9.77 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.8252, allocations: 8.031 kB / 0.8597 GB, free: 9.762 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004032/0.8292, allocations: 0.5512 MB / 0.8602 GB, free: 9.207 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003115/0.8323, allocations: 1.595 MB / 0.8618 GB, free: 7.559 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.8325, allocations: 123.3 kB / 0.8619 GB, free: 7.438 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003951/0.8329, allocations: 167.9 kB / 0.8621 GB, free: 7.273 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004145/0.8371, allocations: 1.877 MB / 0.8639 GB, free: 5.344 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.598e-05/0.8371, allocations: 0 / 0.8639 GB, free: 5.344 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002316/0.8374, allocations: 79.88 kB / 0.864 GB, free: 5.266 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.883e-05/0.8374, allocations: 40 kB / 0.864 GB, free: 5.227 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003746/0.8412, allocations: 2.038 MB / 0.866 GB, free: 3.184 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.009961/0.8511, allocations: 5.504 MB / 0.8714 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003294/0.8545, allocations: 1.992 MB / 0.8733 GB, free: 11.34 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.8558, allocations: 0.7374 MB / 0.874 GB, free: 10.6 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005872/0.8564, allocations: 425.7 kB / 0.8744 GB, free: 10.11 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001639/0.8581, allocations: 0.9387 MB / 0.8754 GB, free: 9.156 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=137): time 3.656e-06/0.8581, allocations: 0 / 0.8754 GB, free: 9.156 MB / 0.6387 GB Notification: Performance of matching and sorting (n=137): time 0.00653/0.8646, allocations: 2.836 MB / 0.8781 GB, free: 6.203 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.8648, allocations: 193.2 kB / 0.8783 GB, free: 5.973 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002731/0.8675, allocations: 1.738 MB / 0.88 GB, free: 4.223 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0002372/0.8678, allocations: 57.7 kB / 0.8801 GB, free: 4.16 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007489/0.8685, allocations: 0.8034 MB / 0.8808 GB, free: 3.344 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004996/0.869, allocations: 469.1 kB / 0.8813 GB, free: 2.879 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004452/0.8695, allocations: 238.8 kB / 0.8815 GB, free: 2.641 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.8696, allocations: 357.9 kB / 0.8819 GB, free: 2.285 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00111/0.8708, allocations: 0.5569 MB / 0.8824 GB, free: 1.727 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.8721, allocations: 0.7662 MB / 0.8832 GB, free: 0.9062 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002324/0.8744, allocations: 1.275 MB / 0.8844 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.8744, allocations: 4 kB / 0.8844 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003941/0.8784, allocations: 1.725 MB / 0.8861 GB, free: 13.87 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.8784, allocations: 8.094 kB / 0.8861 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.8785, allocations: 0 / 0.8861 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.8796, allocations: 212.1 kB / 0.8863 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.8812, allocations: 327.5 kB / 0.8866 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006442/0.8876, allocations: 7.302 MB / 0.8937 GB, free: 5.312 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.8893, allocations: 150.9 kB / 0.8939 GB, free: 5.164 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002524/0.8896, allocations: 55.95 kB / 0.8939 GB, free: 5.109 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (140): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001172/0.8908, allocations: 473.4 kB / 0.8944 GB, free: 4.637 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006035/0.8914, allocations: 173.9 kB / 0.8946 GB, free: 4.465 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005023/0.8964, allocations: 2.03 MB / 0.8965 GB, free: 2.402 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/0.8964, allocations: 16 kB / 0.8966 GB, free: 2.387 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.8965, allocations: 4 kB / 0.8966 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.8965, allocations: 7.969 kB / 0.8966 GB, free: 2.375 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008187/0.9047, allocations: 3.797 MB / 0.9003 GB, free: 14.5 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.9047, allocations: 0 / 0.9003 GB, free: 14.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/0.9062, allocations: 307.6 kB / 0.9006 GB, free: 14.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009493/0.9072, allocations: 208.1 kB / 0.9008 GB, free: 13.98 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.9073, allocations: 43.91 kB / 0.9008 GB, free: 13.93 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006631/0.914, allocations: 7.347 MB / 0.908 GB, free: 5.875 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.914, allocations: 0 / 0.908 GB, free: 5.875 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004587/0.9186, allocations: 1.887 MB / 0.9098 GB, free: 3.953 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/0.9196, allocations: 458.3 kB / 0.9103 GB, free: 3.484 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004077/0.9201, allocations: 31.98 kB / 0.9103 GB, free: 3.453 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/0.9216, allocations: 92.77 kB / 0.9104 GB, free: 3.367 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002533/0.9218, allocations: 97.17 kB / 0.9105 GB, free: 3.273 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001951/0.9221, allocations: 67.94 kB / 0.9105 GB, free: 3.207 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002114/0.9242, allocations: 1.248 MB / 0.9118 GB, free: 1.961 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.2e-07/0.9242, allocations: 0 / 0.9118 GB, free: 1.961 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00213/0.9263, allocations: 0.6352 MB / 0.9124 GB, free: 1.324 MB / 0.67 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 (140): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00199/0.9283, allocations: 0.7555 MB / 0.9131 GB, free: 0.7852 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003735/0.9321, allocations: 2 MB / 0.9151 GB, free: 14.72 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.443e-06/0.9321, allocations: 0.7969 kB / 0.9151 GB, free: 14.72 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002213/0.9343, allocations: 1.372 MB / 0.9164 GB, free: 13.29 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.9369, allocations: 0.5146 MB / 0.9169 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00762/0.9446, allocations: 3.627 MB / 0.9205 GB, free: 9.137 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/0.9463, allocations: 1.463 MB / 0.9219 GB, free: 7.645 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007563/0.947, allocations: 183.3 kB / 0.9221 GB, free: 7.465 MB / 0.6856 GB Notification: Performance of SimCode: time 1.333e-06/0.947, allocations: 7.938 kB / 0.9221 GB, free: 7.457 MB / 0.6856 GB Notification: Performance of Templates: time 0.07405/1.021, allocations: 64.54 MB / 0.9851 GB, free: 6.984 MB / 0.7481 GB make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.Outside_CpData.makefile make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.Outside_CpData.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.Outside_CpDataCalcHelperMain.o OMCppIDEAS_IDEAS.Fluid.Sources.Examples.Outside_CpDataCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.Fluid.Sources.Examples.Outside_CpDataCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.Fluid.Sources.Examples.Outside_CpDataFunctions.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.Outside_CpDataCalcHelperMain.o] Error 1