Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpData_Specification.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.Outside_CpData_Specification,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpData_Specification") translateModel(IDEAS.Fluid.Sources.Examples.Outside_CpData_Specification,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpData_Specification") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 98.64 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 183.7 kB / 16.92 MB, free: 6.918 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.377/1.377, allocations: 223.3 MB / 241 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9152/0.9152, allocations: 135.3 MB / 427.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003355, allocations: 8.234 kB / 0.5082 GB, free: 4.738 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1798, allocations: 82.32 MB / 0.5886 GB, free: 2.59 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.Outside_CpData_Specification): time 0.4594/0.6392, allocations: 149.5 MB / 0.7346 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01727/0.6565, allocations: 10.27 MB / 0.7446 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00129/0.6579, allocations: 23.41 kB / 0.7446 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.6591, allocations: 210.8 kB / 0.7448 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003997/0.6631, allocations: 0.7552 MB / 0.7456 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003758/0.6669, allocations: 0.9125 MB / 0.7465 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0029/0.6698, allocations: 1.508 MB / 0.7479 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002157/0.672, allocations: 0.9952 MB / 0.7489 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002527/0.6745, allocations: 0.4978 MB / 0.7494 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009888/0.6755, allocations: 446 kB / 0.7498 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002485/0.6758, allocations: 27.25 kB / 0.7499 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002772/0.6786, allocations: 0.9296 MB / 0.7508 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000454/0.679, allocations: 230.5 kB / 0.751 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.6801, allocations: 0.505 MB / 0.7515 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002654/0.6827, allocations: 1.472 MB / 0.7529 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.6827, allocations: 0 / 0.7529 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.635e-06/0.6827, allocations: 0 / 0.7529 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.637e-05/0.6828, allocations: 0 / 0.7529 GB, free: 3.246 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.00317/0.686, allocations: 1.368 MB / 0.7542 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.6861, allocations: 8.844 kB / 0.7543 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001931/0.688, allocations: 275.6 kB / 0.7545 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/0.6897, allocations: 0.839 MB / 0.7553 GB, free: 1.363 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-05/0.6898, allocations: 69.62 kB / 0.7554 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002019/0.69, allocations: 86.81 kB / 0.7555 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/0.6924, allocations: 1.055 MB / 0.7565 GB, free: 296 kB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.6924, allocations: 0 / 0.7565 GB, free: 296 kB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.6926, allocations: 40 kB / 0.7566 GB, free: 256 kB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.567e-05/0.6926, allocations: 24 kB / 0.7566 GB, free: 232 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00238/0.695, allocations: 1.288 MB / 0.7578 GB, free: 14.93 MB / 0.5762 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.005779/0.7008, allocations: 3.109 MB / 0.7609 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/0.7027, allocations: 1.03 MB / 0.7619 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000778/0.7035, allocations: 399.7 kB / 0.7623 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002763/0.7038, allocations: 134 kB / 0.7624 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.705, allocations: 0.5617 MB / 0.7629 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=86): time 4.408e-06/0.705, allocations: 3.984 kB / 0.7629 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of matching and sorting (n=86): time 0.00423/0.7092, allocations: 1.538 MB / 0.7644 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.7093, allocations: 188.9 kB / 0.7646 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.7105, allocations: 0.7702 MB / 0.7654 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.7106, allocations: 45.64 kB / 0.7654 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003914/0.711, allocations: 440.4 kB / 0.7658 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002655/0.7113, allocations: 283.8 kB / 0.7661 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.7114, allocations: 73.69 kB / 0.7662 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.7115, allocations: 341.9 kB / 0.7665 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006993/0.7122, allocations: 329.8 kB / 0.7668 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008016/0.713, allocations: 449.6 kB / 0.7672 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.7145, allocations: 0.7491 MB / 0.768 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.7145, allocations: 0 / 0.768 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00263/0.7172, allocations: 1.025 MB / 0.769 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.7172, allocations: 12 kB / 0.769 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.7172, allocations: 0 / 0.769 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007958/0.718, allocations: 117.5 kB / 0.7691 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009071/0.719, allocations: 195.8 kB / 0.7693 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003215/0.7222, allocations: 2.856 MB / 0.7721 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.7232, allocations: 106.1 kB / 0.7722 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.7233, allocations: 47.97 kB / 0.7722 GB, free: 15.59 MB / 0.5919 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 (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000628/0.724, allocations: 289.6 kB / 0.7725 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002585/0.7242, allocations: 90.88 kB / 0.7726 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002993/0.7272, allocations: 1.24 MB / 0.7738 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.7273, allocations: 12 kB / 0.7738 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.7273, allocations: 0 / 0.7738 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.7273, allocations: 12.06 kB / 0.7738 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004382/0.7317, allocations: 2.259 MB / 0.776 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.7317, allocations: 0 / 0.776 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008094/0.7325, allocations: 191.8 kB / 0.7762 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006661/0.7332, allocations: 117.5 kB / 0.7763 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.221e-05/0.7333, allocations: 27.98 kB / 0.7763 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002977/0.7363, allocations: 2.875 MB / 0.7792 GB, free: 8.121 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.7363, allocations: 3.938 kB / 0.7792 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002739/0.7391, allocations: 1.161 MB / 0.7803 GB, free: 6.934 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006137/0.7397, allocations: 311.5 kB / 0.7806 GB, free: 6.609 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002242/0.7399, allocations: 16 kB / 0.7806 GB, free: 6.594 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009084/0.7408, allocations: 91.86 kB / 0.7807 GB, free: 6.504 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.741, allocations: 72.89 kB / 0.7808 GB, free: 6.434 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.7411, allocations: 35.98 kB / 0.7808 GB, free: 6.398 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0009009/0.742, allocations: 0.542 MB / 0.7813 GB, free: 5.863 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7421, allocations: 0 / 0.7813 GB, free: 5.863 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001545/0.7436, allocations: 415.2 kB / 0.7817 GB, free: 5.457 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 (95): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.002398/0.746, allocations: 0.7043 MB / 0.7824 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002727/0.7488, allocations: 1.084 MB / 0.7835 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.7488, allocations: 3.938 kB / 0.7835 GB, free: 3.859 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.7501, allocations: 0.7021 MB / 0.7842 GB, free: 3.133 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.752, allocations: 321.5 kB / 0.7845 GB, free: 2.824 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005389/0.7574, allocations: 2.572 MB / 0.787 GB, free: 236 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008464/0.7582, allocations: 1.075 MB / 0.788 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004165/0.7587, allocations: 127.4 kB / 0.7881 GB, free: 15 MB / 0.6075 GB Notification: Performance of SimCode: time 6.72e-07/0.7587, allocations: 0 / 0.7881 GB, free: 15 MB / 0.6075 GB Notification: Performance of Templates: time 0.03839/0.7971, allocations: 25.45 MB / 0.813 GB, free: 5.605 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpData_Specification.makefile make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpData_Specification.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.Outside_CpData_SpecificationCalcHelperMain.o OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpData_SpecificationCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpData_SpecificationCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpData_SpecificationFunctions.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.Outside_CpData_SpecificationCalcHelperMain.o] Error 1