Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpLowRise.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_CpLowRise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpLowRise") translateModel(IDEAS.Fluid.Sources.Examples.Outside_CpLowRise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpLowRise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 100.1 kB / 15.88 MB, free: 12 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.001401/0.001401, allocations: 196 kB / 16.79 MB, free: 6.809 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.43/1.43, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.927/0.927, allocations: 135.1 MB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 56.53 kB / 0.5053 GB, free: 5.781 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1917, allocations: 80.94 MB / 0.5844 GB, free: 5.008 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.Outside_CpLowRise): time 0.5246/0.7164, allocations: 164.5 MB / 0.745 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02243/0.7388, allocations: 16.87 MB / 0.7614 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001901/0.7408, allocations: 27.81 kB / 0.7615 GB, free: 8.086 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.7426, allocations: 433.4 kB / 0.7619 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004495/0.7471, allocations: 1.323 MB / 0.7632 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003137/0.7502, allocations: 1.132 MB / 0.7643 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003411/0.7536, allocations: 2.526 MB / 0.7667 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002503/0.7562, allocations: 1.76 MB / 0.7685 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005045/0.7612, allocations: 1.118 MB / 0.7696 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.7627, allocations: 0.871 MB / 0.7704 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002987/0.763, allocations: 108 kB / 0.7705 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003459/0.7665, allocations: 1.462 MB / 0.7719 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004773/0.767, allocations: 458.3 kB / 0.7724 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.768, allocations: 0.8586 MB / 0.7732 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0029/0.7709, allocations: 2.156 MB / 0.7753 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.771, allocations: 0 / 0.7753 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of FrontEnd: time 9.02e-07/0.771, allocations: 0 / 0.7753 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.972e-05/0.771, allocations: 0 / 0.7753 GB, free: 9.891 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 421 * Number of variables: 421 Notification: Performance of Generate backend data structure: time 0.003982/0.775, allocations: 2.146 MB / 0.7774 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.433e-05/0.7751, allocations: 8.031 kB / 0.7774 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004001/0.7791, allocations: 0.5011 MB / 0.7779 GB, free: 7.176 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00209/0.7812, allocations: 1.047 MB / 0.7789 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.7813, allocations: 123.3 kB / 0.7791 GB, free: 5.965 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002419/0.7816, allocations: 164 kB / 0.7792 GB, free: 5.805 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003398/0.785, allocations: 1.78 MB / 0.7809 GB, free: 3.973 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.785, allocations: 0 / 0.7809 GB, free: 3.973 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001522/0.7852, allocations: 68 kB / 0.781 GB, free: 3.906 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.815e-05/0.7852, allocations: 40 kB / 0.7811 GB, free: 3.867 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003275/0.7885, allocations: 1.831 MB / 0.7828 GB, free: 2.031 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.00811/0.7966, allocations: 5.036 MB / 0.7878 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002866/0.7995, allocations: 1.664 MB / 0.7894 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/0.8007, allocations: 0.628 MB / 0.79 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009554/0.8016, allocations: 0.8 MB / 0.7908 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001569/0.8032, allocations: 0.8223 MB / 0.7916 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=137): time 3.146e-06/0.8032, allocations: 7.938 kB / 0.7916 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of matching and sorting (n=137): time 0.00623/0.8095, allocations: 2.427 MB / 0.794 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.8097, allocations: 193.2 kB / 0.7941 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.8109, allocations: 0.7945 MB / 0.7949 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.8111, allocations: 57.64 kB / 0.795 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005693/0.8117, allocations: 0.6211 MB / 0.7956 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004346/0.8121, allocations: 461.3 kB / 0.796 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003908/0.8125, allocations: 238.8 kB / 0.7962 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.8127, allocations: 357.9 kB / 0.7966 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000993/0.8137, allocations: 458.4 kB / 0.797 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.8148, allocations: 0.6033 MB / 0.7976 GB, free: 2.168 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002137/0.817, allocations: 1.064 MB / 0.7987 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.817, allocations: 0 / 0.7987 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of matching and sorting (n=154) (initialization): time 0.0036/0.8206, allocations: 1.464 MB / 0.8001 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.8206, allocations: 12.09 kB / 0.8001 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.8207, allocations: 0 / 0.8001 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009704/0.8216, allocations: 200 kB / 0.8003 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.8231, allocations: 323.6 kB / 0.8006 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00616/0.8293, allocations: 6.762 MB / 0.8072 GB, free: 7.629 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/0.8309, allocations: 154.8 kB / 0.8073 GB, free: 7.477 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.8311, allocations: 51.97 kB / 0.8074 GB, free: 7.426 MB / 0.6231 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 (144): * Single equations (assignments): 139 * 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.0009673/0.8321, allocations: 373.8 kB / 0.8078 GB, free: 7.051 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003395/0.8324, allocations: 118.6 kB / 0.8079 GB, free: 6.934 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004054/0.8365, allocations: 1.748 MB / 0.8096 GB, free: 5.16 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.8365, allocations: 19.94 kB / 0.8096 GB, free: 5.141 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.8365, allocations: 0 / 0.8096 GB, free: 5.141 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.8365, allocations: 3.984 kB / 0.8096 GB, free: 5.137 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006104/0.8427, allocations: 3.26 MB / 0.8128 GB, free: 1.805 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.8427, allocations: 0 / 0.8128 GB, free: 1.805 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/0.8441, allocations: 307.6 kB / 0.8131 GB, free: 1.504 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000834/0.845, allocations: 192.1 kB / 0.8133 GB, free: 1.301 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.8451, allocations: 35.97 kB / 0.8133 GB, free: 1.266 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00583/0.8509, allocations: 6.803 MB / 0.8199 GB, free: 9.789 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.851, allocations: 3.938 kB / 0.8199 GB, free: 9.785 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003903/0.8549, allocations: 1.617 MB / 0.8215 GB, free: 8.133 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007755/0.8557, allocations: 379.1 kB / 0.8219 GB, free: 7.742 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.8559, allocations: 32 kB / 0.8219 GB, free: 7.711 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.857, allocations: 110.9 kB / 0.822 GB, free: 7.605 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/0.8573, allocations: 105 kB / 0.8221 GB, free: 7.504 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001587/0.8575, allocations: 63.95 kB / 0.8222 GB, free: 7.441 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008019/0.8583, allocations: 0.5576 MB / 0.8227 GB, free: 6.891 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8583, allocations: 0 / 0.8227 GB, free: 6.891 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001688/0.86, allocations: 0.5532 MB / 0.8233 GB, free: 6.336 MB / 0.6387 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.001815/0.8618, allocations: 0.7086 MB / 0.824 GB, free: 5.84 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003271/0.8651, allocations: 1.778 MB / 0.8257 GB, free: 4 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.8651, allocations: 0.7969 kB / 0.8257 GB, free: 4 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.8671, allocations: 1.266 MB / 0.8269 GB, free: 2.668 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.8695, allocations: 476.6 kB / 0.8274 GB, free: 2.219 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006758/0.8762, allocations: 3.568 MB / 0.8309 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009582/0.8772, allocations: 1.269 MB / 0.8321 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007317/0.878, allocations: 163.3 kB / 0.8323 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of SimCode: time 1.202e-06/0.878, allocations: 0 / 0.8323 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of Templates: time 0.3497/1.228, allocations: 54.74 MB / 0.8857 GB, free: 214.9 MB / 0.67 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpLowRise.makefile make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpLowRise.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_CpLowRiseCalcHelperMain.o OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpLowRiseCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpLowRiseCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.Outside_CpLowRiseFunctions.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_CpLowRiseCalcHelperMain.o] Error 1