Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Sources.Examples.Outside.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.Outside") translateModel(IDEAS.Fluid.Sources.Examples.Outside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.Outside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.00122, allocations: 105.6 kB / 16.41 MB, free: 6.488 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.001269/0.001269, allocations: 189.5 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.391/1.391, 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.7967/0.7967, allocations: 132.2 MB / 423.4 MB, free: 6.637 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 66.8 kB / 0.582 GB, free: 23.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1765, allocations: 80.19 MB / 0.6603 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.Outside): time 0.6229/0.7994, allocations: 175.8 MB / 0.832 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01637/0.8159, allocations: 10.76 MB / 0.8425 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001976/0.8179, allocations: 33.75 kB / 0.8425 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.8195, allocations: 388.8 kB / 0.8429 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004012/0.8236, allocations: 1.02 MB / 0.8439 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004808/0.8284, allocations: 1.662 MB / 0.8455 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003784/0.8322, allocations: 2.166 MB / 0.8476 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002339/0.8346, allocations: 1.386 MB / 0.849 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003851/0.8385, allocations: 1.231 MB / 0.8502 GB, free: 0.9844 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001332/0.8398, allocations: 0.7388 MB / 0.8509 GB, free: 492 kB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002983/0.8401, allocations: 143.1 kB / 0.851 GB, free: 492 kB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003431/0.8436, allocations: 1.398 MB / 0.8524 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004513/0.844, allocations: 421.9 kB / 0.8528 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0009153/0.845, allocations: 0.7237 MB / 0.8535 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005177/0.8501, allocations: 2.431 MB / 0.8559 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.8502, allocations: 0 / 0.8559 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.023e-06/0.8502, allocations: 0 / 0.8559 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.469e-05/0.8502, allocations: 0 / 0.8559 GB, free: 13.29 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: 283 * Number of variables: 283 Notification: Performance of Generate backend data structure: time 0.003544/0.8538, allocations: 1.773 MB / 0.8576 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.8538, allocations: 12.03 kB / 0.8576 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002167/0.856, allocations: 345.8 kB / 0.858 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.8577, allocations: 0.9486 MB / 0.8589 GB, free: 10.53 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.495e-05/0.8578, allocations: 86.23 kB / 0.859 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.8579, allocations: 108 kB / 0.8591 GB, free: 10.34 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/0.8602, allocations: 1.23 MB / 0.8603 GB, free: 9.039 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.8602, allocations: 4 kB / 0.8603 GB, free: 9.035 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.8603, allocations: 48 kB / 0.8603 GB, free: 8.988 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.8604, allocations: 28 kB / 0.8603 GB, free: 8.961 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.8627, allocations: 1.398 MB / 0.8617 GB, free: 7.555 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.00623/0.8689, allocations: 3.67 MB / 0.8653 GB, free: 3.727 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002041/0.871, allocations: 1.117 MB / 0.8664 GB, free: 2.586 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000733/0.8718, allocations: 429.2 kB / 0.8668 GB, free: 2.172 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007636/0.8725, allocations: 429.3 kB / 0.8672 GB, free: 1.68 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001082/0.8736, allocations: 0.5863 MB / 0.8678 GB, free: 1.07 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=97): time 2.945e-06/0.8737, allocations: 4 kB / 0.8678 GB, free: 1.066 MB / 0.6231 GB Notification: Performance of matching and sorting (n=97): time 0.004007/0.8777, allocations: 1.477 MB / 0.8692 GB, free: 15.56 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.8778, allocations: 196.9 kB / 0.8694 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.8791, allocations: 0.8396 MB / 0.8702 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.8792, allocations: 53.64 kB / 0.8703 GB, free: 14.4 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004707/0.8797, allocations: 496.3 kB / 0.8708 GB, free: 13.91 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003024/0.88, allocations: 331.2 kB / 0.8711 GB, free: 13.58 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/0.8803, allocations: 194.5 kB / 0.8713 GB, free: 13.38 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.8805, allocations: 341.9 kB / 0.8716 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006692/0.8812, allocations: 349.8 kB / 0.8719 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008054/0.882, allocations: 477.6 kB / 0.8724 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.8835, allocations: 0.8133 MB / 0.8732 GB, free: 11.38 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.246e-05/0.8835, allocations: 4.5 kB / 0.8732 GB, free: 11.38 MB / 0.6387 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002733/0.8863, allocations: 1.087 MB / 0.8742 GB, free: 10.28 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.8863, allocations: 12 kB / 0.8742 GB, free: 10.27 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.8864, allocations: 0 / 0.8742 GB, free: 10.27 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006029/0.887, allocations: 88.7 kB / 0.8743 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009278/0.8879, allocations: 216.6 kB / 0.8745 GB, free: 9.965 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002363/0.8903, allocations: 1.645 MB / 0.8761 GB, free: 8.176 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.8915, allocations: 113.8 kB / 0.8763 GB, free: 8.066 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.8916, allocations: 47.95 kB / 0.8763 GB, free: 8.02 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (116): * Single equations (assignments): 115 * 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.000746/0.8924, allocations: 310.4 kB / 0.8766 GB, free: 7.707 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003413/0.8927, allocations: 118.6 kB / 0.8767 GB, free: 7.59 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/0.8959, allocations: 1.395 MB / 0.8781 GB, free: 6.172 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.8959, allocations: 8 kB / 0.8781 GB, free: 6.164 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.8959, allocations: 0 / 0.8781 GB, free: 6.164 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.8959, allocations: 7.984 kB / 0.8781 GB, free: 6.156 MB / 0.6387 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.004985/0.9009, allocations: 2.643 MB / 0.8807 GB, free: 3.398 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/0.901, allocations: 4 kB / 0.8807 GB, free: 3.395 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008756/0.9018, allocations: 199.9 kB / 0.8809 GB, free: 3.199 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004393/0.9023, allocations: 76.78 kB / 0.8809 GB, free: 3.121 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-05/0.9024, allocations: 31.98 kB / 0.881 GB, free: 3.09 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002096/0.9045, allocations: 1.686 MB / 0.8826 GB, free: 1.262 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.9045, allocations: 0 / 0.8826 GB, free: 1.262 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003556/0.9081, allocations: 1.729 MB / 0.8843 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007327/0.9088, allocations: 323.4 kB / 0.8846 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.909, allocations: 24 kB / 0.8846 GB, free: 15.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000761/0.9098, allocations: 59.94 kB / 0.8847 GB, free: 15.08 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.91, allocations: 76.84 kB / 0.8848 GB, free: 15 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.9101, allocations: 51.91 kB / 0.8848 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0009877/0.9111, allocations: 0.5936 MB / 0.8854 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9111, allocations: 0 / 0.8854 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001513/0.9126, allocations: 427 kB / 0.8858 GB, free: 13.93 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (senTem.T,senRelHum.phi,senMasFra.X) * 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 (105): * Single equations (assignments): 102 * 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.001939/0.9146, allocations: 0.6962 MB / 0.8865 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002362/0.9169, allocations: 1.023 MB / 0.8875 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.917, allocations: 0 / 0.8875 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.9181, allocations: 0.6022 MB / 0.8881 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00244/0.9206, allocations: 0.5089 MB / 0.8886 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00564/0.9262, allocations: 2.409 MB / 0.8909 GB, free: 8.855 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009502/0.9272, allocations: 1.138 MB / 0.892 GB, free: 7.691 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005347/0.9278, allocations: 143.3 kB / 0.8922 GB, free: 7.551 MB / 0.6544 GB Notification: Performance of SimCode: time 1.503e-06/0.9278, allocations: 0 / 0.8922 GB, free: 7.551 MB / 0.6544 GB Notification: Performance of Templates: time 0.03538/0.9632, allocations: 25.65 MB / 0.9172 GB, free: 13.98 MB / 0.6856 GB make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.Outside.makefile make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.Outside.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.OutsideCalcHelperMain.o OMCppIDEAS_IDEAS.Fluid.Sources.Examples.OutsideCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.Fluid.Sources.Examples.OutsideCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.Fluid.Sources.Examples.OutsideFunctions.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.OutsideCalcHelperMain.o] Error 1