Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.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.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement") translateModel(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008976/0.0008975, allocations: 92.16 kB / 16.02 MB, free: 80 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.001033/0.001033, allocations: 173 kB / 16.92 MB, free: 6.652 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.333/1.333, allocations: 223.3 MB / 241 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.988/0.988, allocations: 135.3 MB / 427.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 16.22 kB / 0.5082 GB, free: 4.801 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1571, allocations: 82.31 MB / 0.5886 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.4707/0.6278, allocations: 155.6 MB / 0.7405 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.03927/0.6672, allocations: 26.15 MB / 0.766 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003788/0.671, allocations: 59.69 kB / 0.7661 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002398/0.6734, allocations: 0.879 MB / 0.767 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005121/0.6786, allocations: 1.446 MB / 0.7684 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00403/0.6826, allocations: 1.455 MB / 0.7698 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005853/0.6885, allocations: 4.77 MB / 0.7745 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004449/0.693, allocations: 3.374 MB / 0.7777 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002129/0.6951, allocations: 1.295 MB / 0.779 GB, free: 8.777 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002583/0.6977, allocations: 1.816 MB / 0.7808 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003458/0.6981, allocations: 96 kB / 0.7809 GB, free: 6.859 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.6999, allocations: 0.7022 MB / 0.7816 GB, free: 6.156 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006554/0.7006, allocations: 0.6922 MB / 0.7822 GB, free: 5.461 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.7023, allocations: 1.48 MB / 0.7837 GB, free: 3.965 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004552/0.7068, allocations: 4.131 MB / 0.7877 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.7069, allocations: 0 / 0.7877 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.314e-06/0.7069, allocations: 0 / 0.7877 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001347/0.707, allocations: 0 / 0.7877 GB, free: 15.82 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 790 * Number of variables: 790 Notification: Performance of Generate backend data structure: time 0.008144/0.7152, allocations: 3.662 MB / 0.7913 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.7152, allocations: 8.031 kB / 0.7913 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01403/0.7293, allocations: 2.874 MB / 0.7941 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004854/0.7342, allocations: 2.184 MB / 0.7962 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.7344, allocations: 226.2 kB / 0.7965 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008839/0.7353, allocations: 304 kB / 0.7967 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/0.7482, allocations: 5.01 MB / 0.8016 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.625e-05/0.7483, allocations: 0 / 0.8016 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003956/0.7487, allocations: 128 kB / 0.8018 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.514e-05/0.7488, allocations: 83.94 kB / 0.8018 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01606/0.7649, allocations: 6.191 MB / 0.8079 GB, free: 10.95 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.02734/0.7922, allocations: 13.68 MB / 0.8212 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01096/0.8032, allocations: 4.355 MB / 0.8255 GB, free: 8.477 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005523/0.8088, allocations: 2.323 MB / 0.8278 GB, free: 6.156 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001019/0.8098, allocations: 0.6657 MB / 0.8284 GB, free: 5.359 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005979/0.8158, allocations: 2.378 MB / 0.8307 GB, free: 2.945 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=257): time 5.651e-06/0.8159, allocations: 0 / 0.8307 GB, free: 2.945 MB / 0.6387 GB Notification: Performance of matching and sorting (n=257): time 0.01918/0.8351, allocations: 6.97 MB / 0.8375 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.8352, allocations: 210 kB / 0.8377 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003862/0.8391, allocations: 2.307 MB / 0.84 GB, free: 9.258 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0006084/0.8397, allocations: 65.7 kB / 0.8401 GB, free: 9.188 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.8411, allocations: 1.301 MB / 0.8413 GB, free: 7.871 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.8423, allocations: 0.8549 MB / 0.8422 GB, free: 7.004 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006008/0.8429, allocations: 186.3 kB / 0.8423 GB, free: 6.816 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.8431, allocations: 305.1 kB / 0.8426 GB, free: 6.516 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004994/0.8481, allocations: 1.901 MB / 0.8445 GB, free: 4.609 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005249/0.8533, allocations: 2.189 MB / 0.8466 GB, free: 2.344 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/0.8635, allocations: 4.089 MB / 0.8506 GB, free: 14.16 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/0.8636, allocations: 112 / 0.8506 GB, free: 14.16 MB / 0.67 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01383/0.8774, allocations: 4.715 MB / 0.8552 GB, free: 9.395 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.8775, allocations: 10.59 kB / 0.8552 GB, free: 9.387 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.8775, allocations: 4 kB / 0.8552 GB, free: 9.383 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007063/0.8782, allocations: 233.9 kB / 0.8555 GB, free: 9.152 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004249/0.8825, allocations: 0.78 MB / 0.8562 GB, free: 8.371 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004363/0.8869, allocations: 3.095 MB / 0.8592 GB, free: 5.141 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004091/0.891, allocations: 0.5364 MB / 0.8598 GB, free: 4.602 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007204/0.8917, allocations: 112 kB / 0.8599 GB, free: 4.492 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.intGai.nextTimeEvent,$whenCondition1,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,intGai.nextTimeEventScaled,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEvent,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (272): * Single equations (assignments): 271 * 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): 1 system {(2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002629/0.8944, allocations: 0.8953 MB / 0.8608 GB, free: 3.586 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009841/0.8954, allocations: 252.8 kB / 0.861 GB, free: 3.336 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3199/1.215, allocations: 5.285 MB / 0.8662 GB, free: 212.6 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/1.215, allocations: 25.94 kB / 0.8662 GB, free: 212.6 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/1.215, allocations: 5.938 kB / 0.8662 GB, free: 212.6 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.809e-05/1.215, allocations: 13.5 kB / 0.8662 GB, free: 212.6 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01611/1.231, allocations: 8.826 MB / 0.8748 GB, free: 211.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/1.232, allocations: 2.812 kB / 0.8748 GB, free: 211.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003416/1.235, allocations: 0.7227 MB / 0.8755 GB, free: 211.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000753/1.236, allocations: 265.8 kB / 0.8758 GB, free: 211.3 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002943/1.236, allocations: 73.28 kB / 0.8759 GB, free: 211.2 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003724/1.24, allocations: 4.794 MB / 0.8805 GB, free: 207.3 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.24, allocations: 3.5 kB / 0.8805 GB, free: 207.3 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01586/1.256, allocations: 7.555 MB / 0.8879 GB, free: 204.9 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/1.258, allocations: 0.8159 MB / 0.8887 GB, free: 204.5 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009311/1.259, allocations: 51.31 kB / 0.8888 GB, free: 204.5 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003588/1.262, allocations: 418.8 kB / 0.8892 GB, free: 204.5 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006343/1.263, allocations: 167 kB / 0.8893 GB, free: 204.4 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004987/1.263, allocations: 87.97 kB / 0.8894 GB, free: 204.4 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002996/1.266, allocations: 1.684 MB / 0.891 GB, free: 203.8 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.8e-07/1.267, allocations: 7.109 kB / 0.8911 GB, free: 203.8 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003921/1.27, allocations: 0.9736 MB / 0.892 GB, free: 203.6 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (thermalZoneOneElement.volAir.dynBal.U,thermalZoneOneElement.volAir.dynBal.m,thermalZoneOneElement.extWallRC.thermCapExt[1].T) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,intGai.nextTimeEvent,intGai.nextTimeEventScaled) * Number of discrete states: 4 (intGai.nextTimeEvent,intGai.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 244 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,16,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002912/1.273, allocations: 1.013 MB / 0.893 GB, free: 203.4 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01269/1.286, allocations: 4.587 MB / 0.8975 GB, free: 202 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.547e-06/1.286, allocations: 4.469 kB / 0.8975 GB, free: 202 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.006737/1.293, allocations: 2.619 MB / 0.9 GB, free: 201.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004991/1.298, allocations: 0.5906 MB / 0.9006 GB, free: 200.9 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02035/1.318, allocations: 9.008 MB / 0.9094 GB, free: 196.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003975/1.322, allocations: 2.298 MB / 0.9117 GB, free: 195.4 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002614/1.325, allocations: 301.9 kB / 0.9119 GB, free: 195.4 MB / 0.67 GB Notification: Performance of SimCode: time 1.062e-06/1.325, allocations: 0 / 0.9119 GB, free: 195.4 MB / 0.67 GB Notification: Performance of Templates: time 0.09892/1.424, allocations: 78.45 MB / 0.9886 GB, free: 134.8 MB / 0.67 GB make -j1 -f IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.makefile make -j1 -f IDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.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.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElementCalcHelperMain.o OMCppIDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElementCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElementCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElementFunctions.cpp:7: /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.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElementCalcHelperMain.o] Error 1