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.001177/0.001177, allocations: 102.2 kB / 16.27 MB, free: 6 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.00126/0.00126, allocations: 191 kB / 17.2 MB, free: 5.609 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.407/1.407, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8436/0.8436, allocations: 135.1 MB / 426.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 75.88 kB / 0.506 GB, free: 8.367 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3912, allocations: 80.9 MB / 0.585 GB, free: 25.37 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.1795/0.5707, allocations: 160.1 MB / 0.7414 GB, free: 9.945 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.4489/1.02, allocations: 26.58 MB / 0.7673 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004185/1.024, allocations: 70.47 kB / 0.7674 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002336/1.026, allocations: 0.9828 MB / 0.7684 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005506/1.032, allocations: 1.614 MB / 0.7699 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004559/1.036, allocations: 1.629 MB / 0.7715 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006078/1.043, allocations: 4.556 MB / 0.776 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005517/1.048, allocations: 4.1 MB / 0.78 GB, free: 17.06 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003484/1.052, allocations: 1.924 MB / 0.7819 GB, free: 17.06 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003181/1.055, allocations: 2.333 MB / 0.7841 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0007139/1.055, allocations: 426.4 kB / 0.7845 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002575/1.058, allocations: 1.011 MB / 0.7855 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0009195/1.059, allocations: 1.104 MB / 0.7866 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002141/1.061, allocations: 1.929 MB / 0.7885 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00675/1.068, allocations: 5.399 MB / 0.7938 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/1.068, allocations: 0.625 kB / 0.7938 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.503e-06/1.068, allocations: 5.031 kB / 0.7938 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001783/1.068, allocations: 0 / 0.7938 GB, free: 15.49 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: 790 * Number of variables: 790 Notification: Performance of Generate backend data structure: time 0.01129/1.079, allocations: 4.303 MB / 0.798 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/1.079, allocations: 9.203 kB / 0.798 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01375/1.093, allocations: 2.753 MB / 0.8007 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005732/1.099, allocations: 2.165 MB / 0.8028 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/1.099, allocations: 229.6 kB / 0.803 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001066/1.1, allocations: 304.1 kB / 0.8033 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01217/1.113, allocations: 4.971 MB / 0.8081 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.354e-05/1.113, allocations: 1.812 kB / 0.8081 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003993/1.113, allocations: 126.4 kB / 0.8083 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.346e-05/1.113, allocations: 77.62 kB / 0.8083 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/1.129, allocations: 6.11 MB / 0.8143 GB, free: 9.734 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.03125/1.16, allocations: 13.64 MB / 0.8276 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/1.172, allocations: 4.34 MB / 0.8319 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005888/1.178, allocations: 2.319 MB / 0.8341 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00107/1.179, allocations: 0.6695 MB / 0.8348 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006422/1.185, allocations: 2.37 MB / 0.8371 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=257): time 5.62e-06/1.185, allocations: 0 / 0.8371 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of matching and sorting (n=257): time 0.02038/1.206, allocations: 6.939 MB / 0.8439 GB, free: 13.08 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/1.206, allocations: 210 kB / 0.8441 GB, free: 12.83 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004334/1.21, allocations: 2.311 MB / 0.8463 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0004661/1.211, allocations: 73.7 kB / 0.8464 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.00144/1.212, allocations: 1.295 MB / 0.8477 GB, free: 9.102 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001178/1.213, allocations: 0.8568 MB / 0.8485 GB, free: 8.254 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/1.215, allocations: 484.1 kB / 0.849 GB, free: 7.773 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001087/1.215, allocations: 301.2 kB / 0.8493 GB, free: 7.477 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005018/1.22, allocations: 1.897 MB / 0.8511 GB, free: 5.574 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005446/1.225, allocations: 2.188 MB / 0.8532 GB, free: 3.312 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/1.236, allocations: 4.061 MB / 0.8572 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.416e-05/1.236, allocations: 3.938 kB / 0.8572 GB, free: 15.17 MB / 0.6387 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01241/1.248, allocations: 4.698 MB / 0.8618 GB, free: 10.45 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.073e-05/1.248, allocations: 10.34 kB / 0.8618 GB, free: 10.45 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/1.248, allocations: 11.94 kB / 0.8618 GB, free: 10.43 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006938/1.249, allocations: 228.6 kB / 0.862 GB, free: 10.21 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00407/1.253, allocations: 0.7698 MB / 0.8628 GB, free: 9.461 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004586/1.258, allocations: 3.378 MB / 0.8661 GB, free: 5.961 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/1.262, allocations: 0.5208 MB / 0.8666 GB, free: 5.438 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004788/1.262, allocations: 111.8 kB / 0.8667 GB, free: 5.328 MB / 0.6387 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.002289/1.265, allocations: 0.8997 MB / 0.8676 GB, free: 4.445 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/1.266, allocations: 260.8 kB / 0.8678 GB, free: 4.188 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/1.28, allocations: 5.261 MB / 0.873 GB, free: 14.87 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.733e-05/1.28, allocations: 28 kB / 0.873 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/1.28, allocations: 4 kB / 0.873 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.349e-05/1.28, allocations: 19.88 kB / 0.873 GB, free: 14.82 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/1.3, allocations: 8.826 MB / 0.8816 GB, free: 5.941 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/1.3, allocations: 0 / 0.8816 GB, free: 5.941 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003791/1.304, allocations: 0.7161 MB / 0.8823 GB, free: 5.246 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008576/1.304, allocations: 269.5 kB / 0.8826 GB, free: 4.977 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003127/1.305, allocations: 75.92 kB / 0.8827 GB, free: 4.902 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00538/1.31, allocations: 5.244 MB / 0.8878 GB, free: 15.38 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/1.31, allocations: 4.031 kB / 0.8878 GB, free: 15.38 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01774/1.328, allocations: 7.518 MB / 0.8951 GB, free: 7.777 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001948/1.33, allocations: 0.7705 MB / 0.8959 GB, free: 6.984 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008078/1.331, allocations: 55.84 kB / 0.8959 GB, free: 6.93 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003461/1.334, allocations: 393.9 kB / 0.8963 GB, free: 6.547 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000465/1.335, allocations: 165.9 kB / 0.8965 GB, free: 6.383 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000308/1.335, allocations: 95.92 kB / 0.8966 GB, free: 6.289 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002978/1.338, allocations: 1.692 MB / 0.8982 GB, free: 4.582 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.6e-07/1.338, allocations: 0 / 0.8982 GB, free: 4.582 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003397/1.341, allocations: 0.9621 MB / 0.8992 GB, free: 3.617 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.002741/1.344, allocations: 1.049 MB / 0.9002 GB, free: 3.004 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.02042/1.365, allocations: 7.762 MB / 0.9078 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/1.365, allocations: 4 kB / 0.9078 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.006721/1.371, allocations: 2.604 MB / 0.9103 GB, free: 8.664 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004145/1.376, allocations: 0.6412 MB / 0.9109 GB, free: 8.059 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/1.392, allocations: 7.519 MB / 0.9183 GB, free: 0.5039 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002669/1.395, allocations: 2.303 MB / 0.9205 GB, free: 14.18 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00228/1.397, allocations: 295.2 kB / 0.9208 GB, free: 13.89 MB / 0.7012 GB Notification: Performance of SimCode: time 6.22e-07/1.397, allocations: 3.938 kB / 0.9208 GB, free: 13.88 MB / 0.7012 GB Notification: Performance of Templates: time 0.1092/1.506, allocations: 79.04 MB / 0.998 GB, free: 14.91 MB / 0.7794 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++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-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