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.001208/0.001209, allocations: 107.5 kB / 16.41 MB, free: 6.492 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.001276/0.001276, allocations: 192.1 kB / 17.34 MB, free: 5.762 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8263/0.8263, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 62.66 kB / 0.582 GB, free: 23.67 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1625, allocations: 80.22 MB / 0.6603 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.Outside_CpData): time 0.6586/0.8212, allocations: 166.9 MB / 0.8233 GB, free: 5.816 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02065/0.8418, allocations: 17.1 MB / 0.84 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.8438, allocations: 31.84 kB / 0.8401 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.8455, allocations: 0.5313 MB / 0.8406 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005097/0.8506, allocations: 1.677 MB / 0.8422 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003891/0.8545, allocations: 1.389 MB / 0.8436 GB, free: 5.465 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003458/0.858, allocations: 2.531 MB / 0.8461 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0027/0.8607, allocations: 1.948 MB / 0.848 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00387/0.8646, allocations: 1.402 MB / 0.8493 GB, free: 1.871 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001543/0.8662, allocations: 1.023 MB / 0.8503 GB, free: 1.168 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0003709/0.8666, allocations: 208.2 kB / 0.8505 GB, free: 1.168 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.8698, allocations: 1.545 MB / 0.852 GB, free: 436 kB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0007431/0.8706, allocations: 0.7637 MB / 0.8528 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001449/0.872, allocations: 1.121 MB / 0.8539 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005381/0.8774, allocations: 3.403 MB / 0.8572 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.8775, allocations: 0 / 0.8572 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8775, allocations: 0 / 0.8572 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 6.094e-05/0.8776, allocations: 0 / 0.8572 GB, free: 12.32 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.004571/0.8821, allocations: 2.619 MB / 0.8598 GB, free: 9.641 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.8822, allocations: 8.031 kB / 0.8598 GB, free: 9.633 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00367/0.8859, allocations: 0.5473 MB / 0.8603 GB, free: 9.082 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002813/0.8887, allocations: 1.595 MB / 0.8619 GB, free: 7.434 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.8888, allocations: 127.3 kB / 0.862 GB, free: 7.309 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.8891, allocations: 167.9 kB / 0.8621 GB, free: 7.145 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003497/0.8926, allocations: 1.877 MB / 0.864 GB, free: 5.215 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.8926, allocations: 0 / 0.864 GB, free: 5.215 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001629/0.8928, allocations: 75.92 kB / 0.864 GB, free: 5.141 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-05/0.8928, allocations: 43.94 kB / 0.8641 GB, free: 5.098 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003498/0.8963, allocations: 2.038 MB / 0.8661 GB, free: 3.055 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.009413/0.9058, allocations: 5.496 MB / 0.8714 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002953/0.9087, allocations: 1.996 MB / 0.8734 GB, free: 11.22 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.9099, allocations: 0.7374 MB / 0.8741 GB, free: 10.48 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005643/0.9105, allocations: 433.7 kB / 0.8745 GB, free: 9.98 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001591/0.9121, allocations: 0.9309 MB / 0.8754 GB, free: 9.031 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=137): time 3.036e-06/0.9121, allocations: 0 / 0.8754 GB, free: 9.031 MB / 0.6387 GB Notification: Performance of matching and sorting (n=137): time 0.00628/0.9184, allocations: 2.833 MB / 0.8782 GB, free: 6.082 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.9185, allocations: 197.2 kB / 0.8784 GB, free: 5.848 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002234/0.9208, allocations: 1.734 MB / 0.8801 GB, free: 4.102 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001545/0.9209, allocations: 61.64 kB / 0.8801 GB, free: 4.035 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006632/0.9216, allocations: 0.8073 MB / 0.8809 GB, free: 3.215 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004365/0.922, allocations: 461.2 kB / 0.8814 GB, free: 2.758 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003815/0.9224, allocations: 238.8 kB / 0.8816 GB, free: 2.52 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.9226, allocations: 357.9 kB / 0.8819 GB, free: 2.164 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.9237, allocations: 0.5647 MB / 0.8825 GB, free: 1.598 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.925, allocations: 0.761 MB / 0.8832 GB, free: 0.7852 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002266/0.9273, allocations: 1.278 MB / 0.8845 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.9273, allocations: 4 kB / 0.8845 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00393/0.9313, allocations: 1.729 MB / 0.8862 GB, free: 13.74 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.9313, allocations: 7.984 kB / 0.8862 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.9313, allocations: 4.094 kB / 0.8862 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.9324, allocations: 212.1 kB / 0.8864 GB, free: 13.51 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/0.9339, allocations: 319.5 kB / 0.8867 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00673/0.9407, allocations: 7.306 MB / 0.8938 GB, free: 5.184 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.9423, allocations: 148.2 kB / 0.894 GB, free: 5.039 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.9425, allocations: 51.97 kB / 0.894 GB, free: 4.988 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.001199/0.9437, allocations: 477.4 kB / 0.8945 GB, free: 4.512 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005411/0.9442, allocations: 173.9 kB / 0.8946 GB, free: 4.34 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004577/0.9488, allocations: 2.026 MB / 0.8966 GB, free: 2.281 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.9488, allocations: 15.94 kB / 0.8966 GB, free: 2.266 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.9488, allocations: 4 kB / 0.8966 GB, free: 2.262 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.9489, allocations: 7.969 kB / 0.8966 GB, free: 2.254 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008306/0.9572, allocations: 3.797 MB / 0.9003 GB, free: 14.38 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.9572, allocations: 8 kB / 0.9004 GB, free: 14.37 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.9586, allocations: 311.6 kB / 0.9007 GB, free: 14.06 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009255/0.9596, allocations: 204.1 kB / 0.9008 GB, free: 13.85 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.9597, allocations: 43.91 kB / 0.9009 GB, free: 13.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006526/0.9662, allocations: 7.343 MB / 0.9081 GB, free: 5.75 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.9663, allocations: 0 / 0.9081 GB, free: 5.75 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004521/0.9708, allocations: 1.894 MB / 0.9099 GB, free: 3.82 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.9719, allocations: 454.3 kB / 0.9103 GB, free: 3.355 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004222/0.9723, allocations: 28 kB / 0.9104 GB, free: 3.328 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.9738, allocations: 89.8 kB / 0.9105 GB, free: 3.242 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002535/0.9741, allocations: 105.2 kB / 0.9106 GB, free: 3.141 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/0.9742, allocations: 63.95 kB / 0.9106 GB, free: 3.078 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002295/0.9765, allocations: 1.252 MB / 0.9118 GB, free: 1.828 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.8e-07/0.9766, allocations: 0 / 0.9118 GB, free: 1.828 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00217/0.9787, allocations: 0.6313 MB / 0.9125 GB, free: 1.195 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.00228/0.981, allocations: 0.7449 MB / 0.9132 GB, free: 0.668 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003801/0.9848, allocations: 2 MB / 0.9151 GB, free: 14.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.9849, allocations: 8.734 kB / 0.9151 GB, free: 14.59 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002156/0.987, allocations: 1.372 MB / 0.9165 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00283/0.9899, allocations: 0.5121 MB / 0.917 GB, free: 12.68 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007958/0.9978, allocations: 3.638 MB / 0.9205 GB, free: 9.008 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/0.9994, allocations: 1.462 MB / 0.922 GB, free: 7.516 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000733/1, allocations: 183.3 kB / 0.9221 GB, free: 7.336 MB / 0.6856 GB Notification: Performance of SimCode: time 6.71e-07/1, allocations: 7.938 kB / 0.9221 GB, free: 7.328 MB / 0.6856 GB Notification: Performance of Templates: time 0.08028/1.08, allocations: 64.26 MB / 0.9849 GB, free: 7.137 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