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.001602/0.001602, 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.001871/0.001871, allocations: 194.4 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9708/0.9708, allocations: 135.1 MB / 425.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 65.17 kB / 0.5053 GB, free: 5.789 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1744, allocations: 80.92 MB / 0.5843 GB, free: 5.035 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.4749/0.6493, allocations: 157.8 MB / 0.7384 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.03557/0.6849, allocations: 26.44 MB / 0.7642 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004137/0.6891, allocations: 63.69 kB / 0.7643 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002715/0.6919, allocations: 0.8712 MB / 0.7651 GB, free: 4.191 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005626/0.6976, allocations: 1.452 MB / 0.7666 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004955/0.7025, allocations: 1.456 MB / 0.768 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006703/0.7093, allocations: 4.79 MB / 0.7727 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006045/0.7153, allocations: 3.689 MB / 0.7763 GB, free: 8.75 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003531/0.7189, allocations: 1.591 MB / 0.7778 GB, free: 7.152 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003708/0.7226, allocations: 2.183 MB / 0.7799 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0009973/0.7236, allocations: 228 kB / 0.7802 GB, free: 4.738 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00254/0.7262, allocations: 0.8272 MB / 0.781 GB, free: 3.91 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0008843/0.7271, allocations: 0.8952 MB / 0.7818 GB, free: 3.012 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002325/0.7294, allocations: 1.713 MB / 0.7835 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004757/0.7342, allocations: 4.234 MB / 0.7877 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.7342, allocations: 4 kB / 0.7877 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7342, allocations: 4 kB / 0.7877 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001169/0.7343, allocations: 0 / 0.7877 GB, free: 13.04 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.009286/0.7436, allocations: 4.307 MB / 0.7919 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.7437, allocations: 8.031 kB / 0.7919 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01363/0.7573, allocations: 2.749 MB / 0.7946 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004856/0.7622, allocations: 2.183 MB / 0.7967 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.7624, allocations: 226.2 kB / 0.7969 GB, free: 3.441 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005805/0.763, allocations: 304 kB / 0.7972 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/0.7738, allocations: 4.963 MB / 0.802 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.586e-05/0.7739, allocations: 0 / 0.802 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003357/0.7742, allocations: 128 kB / 0.8022 GB, free: 13.97 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.205e-05/0.7743, allocations: 79.94 kB / 0.8022 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01395/0.7882, allocations: 6.115 MB / 0.8082 GB, free: 7.762 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.02492/0.8132, allocations: 13.62 MB / 0.8215 GB, free: 9.707 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009354/0.8226, allocations: 4.356 MB / 0.8258 GB, free: 5.348 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004849/0.8275, allocations: 2.312 MB / 0.828 GB, free: 3.039 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008924/0.8284, allocations: 0.6696 MB / 0.8287 GB, free: 2.238 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005226/0.8336, allocations: 2.374 MB / 0.831 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=257): time 4.779e-06/0.8336, allocations: 0 / 0.831 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=257): time 0.01676/0.8504, allocations: 6.939 MB / 0.8378 GB, free: 8.766 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001733/0.8506, allocations: 221.9 kB / 0.838 GB, free: 8.504 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/0.8541, allocations: 2.299 MB / 0.8402 GB, free: 6.172 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0005548/0.8547, allocations: 65.7 kB / 0.8403 GB, free: 6.102 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.8559, allocations: 1.298 MB / 0.8416 GB, free: 4.785 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009973/0.8569, allocations: 0.8587 MB / 0.8424 GB, free: 3.914 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008915/0.8578, allocations: 480.1 kB / 0.8429 GB, free: 3.438 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.8579, allocations: 301.1 kB / 0.8431 GB, free: 3.141 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004321/0.8623, allocations: 1.897 MB / 0.845 GB, free: 1.238 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004661/0.8669, allocations: 2.185 MB / 0.8471 GB, free: 14.98 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008846/0.8758, allocations: 4.069 MB / 0.8511 GB, free: 10.82 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.8758, allocations: 0 / 0.8511 GB, free: 10.82 MB / 0.67 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01059/0.8864, allocations: 4.696 MB / 0.8557 GB, free: 6.066 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.8865, allocations: 11.94 kB / 0.8557 GB, free: 6.055 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.8865, allocations: 4 kB / 0.8557 GB, free: 6.051 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006479/0.8872, allocations: 235.4 kB / 0.8559 GB, free: 5.82 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00373/0.8909, allocations: 0.7722 MB / 0.8567 GB, free: 5.047 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003872/0.8948, allocations: 3.099 MB / 0.8597 GB, free: 1.809 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003574/0.8984, allocations: 0.5286 MB / 0.8602 GB, free: 1.277 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003293/0.8987, allocations: 107.9 kB / 0.8603 GB, free: 1.172 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.001932/0.9007, allocations: 0.8914 MB / 0.8612 GB, free: 276 kB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006627/0.9013, allocations: 252.8 kB / 0.8614 GB, free: 20 kB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.356/1.257, allocations: 5.267 MB / 0.8666 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.473e-05/1.257, allocations: 26.12 kB / 0.8666 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/1.257, allocations: 5.469 kB / 0.8666 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.182e-05/1.257, allocations: 10.59 kB / 0.8666 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02348/1.281, allocations: 8.812 MB / 0.8752 GB, free: 213.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/1.281, allocations: 0 / 0.8752 GB, free: 213.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003917/1.285, allocations: 0.7248 MB / 0.8759 GB, free: 213.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009021/1.286, allocations: 265.3 kB / 0.8762 GB, free: 213.3 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004408/1.286, allocations: 74.73 kB / 0.8763 GB, free: 213.3 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004187/1.291, allocations: 4.8 MB / 0.881 GB, free: 209.3 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.291, allocations: 9.797 kB / 0.881 GB, free: 209.3 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01643/1.307, allocations: 7.525 MB / 0.8883 GB, free: 207 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001908/1.309, allocations: 0.7658 MB / 0.8891 GB, free: 206.6 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008213/1.31, allocations: 62.66 kB / 0.8891 GB, free: 206.5 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003234/1.313, allocations: 406.9 kB / 0.8895 GB, free: 206.5 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005132/1.314, allocations: 164.5 kB / 0.8897 GB, free: 206.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003003/1.314, allocations: 98.73 kB / 0.8898 GB, free: 206.4 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003498/1.317, allocations: 1.679 MB / 0.8914 GB, free: 205.8 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.6e-07/1.317, allocations: 0 / 0.8914 GB, free: 205.8 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.004041/1.321, allocations: 0.9674 MB / 0.8923 GB, free: 205.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.002967/1.324, allocations: 1.03 MB / 0.8933 GB, free: 205.4 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01164/1.336, allocations: 4.577 MB / 0.8978 GB, free: 204 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/1.336, allocations: 1.75 kB / 0.8978 GB, free: 204 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.006573/1.343, allocations: 2.605 MB / 0.9004 GB, free: 203.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004424/1.347, allocations: 0.5923 MB / 0.9009 GB, free: 202.9 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01964/1.367, allocations: 8.906 MB / 0.9096 GB, free: 198.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003732/1.371, allocations: 2.291 MB / 0.9119 GB, free: 197.4 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002409/1.373, allocations: 299 kB / 0.9122 GB, free: 197.4 MB / 0.67 GB Notification: Performance of SimCode: time 1.132e-06/1.373, allocations: 0 / 0.9122 GB, free: 197.4 MB / 0.67 GB Notification: Performance of Templates: time 0.1018/1.475, allocations: 78.92 MB / 0.9892 GB, free: 133.4 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