Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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.BoundaryConditions.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3") translateModel(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 101.3 kB / 16.4 MB, free: 6.473 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.0009497/0.0009498, allocations: 189.6 kB / 17.34 MB, free: 5.754 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.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7832/0.7832, allocations: 132.2 MB / 423.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 65.77 kB / 0.582 GB, free: 23.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1417, allocations: 80.21 MB / 0.6603 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.008189/0.1499, allocations: 6.216 MB / 0.6664 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4957/0.6456, allocations: 153.2 MB / 0.816 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.647, allocations: 33.75 kB / 0.816 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0009997/0.648, allocations: 314.4 kB / 0.8163 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002305/0.6504, allocations: 0.6558 MB / 0.817 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002841/0.6532, allocations: 1.299 MB / 0.8182 GB, free: 9.668 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00255/0.6558, allocations: 2.323 MB / 0.8205 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001954/0.6577, allocations: 1.067 MB / 0.8216 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001347/0.6591, allocations: 0.7787 MB / 0.8223 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.6603, allocations: 0.8003 MB / 0.8231 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0004283/0.6608, allocations: 183.4 kB / 0.8233 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.6625, allocations: 0.9436 MB / 0.8242 GB, free: 6.656 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006125/0.6631, allocations: 493.8 kB / 0.8247 GB, free: 6.273 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.6643, allocations: 0.8971 MB / 0.8255 GB, free: 5.59 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003146/0.6675, allocations: 2.711 MB / 0.8282 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.6675, allocations: 0 / 0.8282 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6675, allocations: 0 / 0.8282 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.223e-05/0.6675, allocations: 0 / 0.8282 GB, free: 3.648 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: 341 * Number of variables: 341 Notification: Performance of Generate backend data structure: time 0.003259/0.6708, allocations: 2.158 MB / 0.8303 GB, free: 2.008 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.6708, allocations: 13.78 kB / 0.8303 GB, free: 2.004 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/0.6726, allocations: 356.7 kB / 0.8306 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.6742, allocations: 1.235 MB / 0.8319 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.02e-05/0.6743, allocations: 102.1 kB / 0.832 GB, free: 0.8203 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.6744, allocations: 129.3 kB / 0.8321 GB, free: 0.7773 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/0.6768, allocations: 1.525 MB / 0.8336 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.6768, allocations: 2.031 kB / 0.8336 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.6769, allocations: 55.53 kB / 0.8336 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.677, allocations: 32.47 kB / 0.8336 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002897/0.6799, allocations: 2.043 MB / 0.8356 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005907/0.6858, allocations: 4.393 MB / 0.8399 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.6882, allocations: 1.416 MB / 0.8413 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008937/0.6892, allocations: 0.5468 MB / 0.8419 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.6893, allocations: 58.34 kB / 0.8419 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0013/0.6906, allocations: 0.7893 MB / 0.8427 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=136): time 2.796e-06/0.6906, allocations: 0 / 0.8427 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of matching and sorting (n=136): time 0.005389/0.696, allocations: 2.104 MB / 0.8447 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001774/0.6962, allocations: 355.2 kB / 0.8451 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.6975, allocations: 1.079 MB / 0.8461 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.6976, allocations: 49.7 kB / 0.8462 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004974/0.6981, allocations: 0.6105 MB / 0.8468 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/0.6985, allocations: 457.5 kB / 0.8472 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003887/0.6988, allocations: 282.7 kB / 0.8475 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.699, allocations: 357.9 kB / 0.8478 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000956/0.7, allocations: 478.3 kB / 0.8483 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.7011, allocations: 0.6535 MB / 0.8489 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/0.7032, allocations: 1.116 MB / 0.85 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.7032, allocations: 7.938 kB / 0.85 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003606/0.7068, allocations: 1.52 MB / 0.8515 GB, free: 1.555 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.7069, allocations: 11.88 kB / 0.8515 GB, free: 1.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.7069, allocations: 4 kB / 0.8515 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.708, allocations: 165.8 kB / 0.8517 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.7091, allocations: 291.6 kB / 0.8519 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003919/0.713, allocations: 3.291 MB / 0.8552 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.7144, allocations: 155.6 kB / 0.8553 GB, free: 13.35 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.7145, allocations: 74.09 kB / 0.8554 GB, free: 13.28 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 16 (weaDatInpCon.conTim.canRepeatWeatherFile,weaDatInpCon.conTimMin.canRepeatWeatherFile,weaDatInpCon.conTim.tNext,$PRE.weaDatInpCon.conTim.tNext,weaDatInpCon.conTimMin.tNext,$PRE.weaDatInpCon.conTimMin.tNext,$whenCondition1,$whenCondition2,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 159 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0007002/0.7152, allocations: 388.7 kB / 0.8557 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000285/0.7155, allocations: 158.1 kB / 0.8559 GB, free: 12.74 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004384/0.7199, allocations: 1.958 MB / 0.8578 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.7199, allocations: 23.94 kB / 0.8578 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.72, allocations: 4 kB / 0.8578 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.72, allocations: 7.969 kB / 0.8578 GB, free: 10.72 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001728/0.7217, allocations: 1.466 MB / 0.8593 GB, free: 9.211 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.7217, allocations: 4 kB / 0.8593 GB, free: 9.207 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.7228, allocations: 275.6 kB / 0.8595 GB, free: 8.938 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008399/0.7236, allocations: 141.6 kB / 0.8597 GB, free: 8.793 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.357e-05/0.7237, allocations: 47.97 kB / 0.8597 GB, free: 8.746 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00363/0.7274, allocations: 3.344 MB / 0.863 GB, free: 5.113 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7274, allocations: 0 / 0.863 GB, free: 5.113 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.7308, allocations: 1.623 MB / 0.8646 GB, free: 3.469 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005884/0.7314, allocations: 426.7 kB / 0.865 GB, free: 3.031 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.7316, allocations: 32 kB / 0.865 GB, free: 3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009875/0.7326, allocations: 109.8 kB / 0.8651 GB, free: 2.895 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.7328, allocations: 121.7 kB / 0.8652 GB, free: 2.777 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.7329, allocations: 63.97 kB / 0.8653 GB, free: 2.715 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0009749/0.7339, allocations: 0.7417 MB / 0.866 GB, free: 1.969 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7339, allocations: 0 / 0.866 GB, free: 1.969 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001191/0.7351, allocations: 478.9 kB / 0.8665 GB, free: 1.5 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition4,$whenCondition3,weaDat.conTimMin.tNext,weaDat.conTim.tNext,$whenCondition2,$whenCondition1,weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext) * Number of discrete states: 4 (weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001333/0.7364, allocations: 0.6437 MB / 0.8671 GB, free: 1.07 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002858/0.7393, allocations: 1.519 MB / 0.8686 GB, free: 15.53 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.7393, allocations: 4 kB / 0.8686 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.7409, allocations: 0.9536 MB / 0.8695 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.7428, allocations: 0.5472 MB / 0.8701 GB, free: 14.05 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006382/0.7492, allocations: 3.089 MB / 0.8731 GB, free: 10.92 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000809/0.75, allocations: 1.285 MB / 0.8743 GB, free: 9.605 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005324/0.7506, allocations: 207.3 kB / 0.8745 GB, free: 9.402 MB / 0.6387 GB Notification: Performance of SimCode: time 6.51e-07/0.7506, allocations: 3.938 kB / 0.8745 GB, free: 9.398 MB / 0.6387 GB Notification: Performance of Templates: time 0.04388/0.7944, allocations: 37.34 MB / 0.911 GB, free: 4.059 MB / 0.67 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3Functions.cpp:7: /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.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.o] Error 1