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.001421/0.001421, allocations: 110.5 kB / 16.41 MB, free: 6.504 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.001344/0.001344, allocations: 183 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.415/1.415, 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-master/package.mo): time 0.9521/0.9521, allocations: 135.2 MB / 426.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 65.98 kB / 0.5863 GB, free: 21.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1874, allocations: 80.93 MB / 0.6653 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.6233/0.8107, allocations: 160.5 MB / 0.8221 GB, free: 5.562 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.04008/0.8508, allocations: 26.67 MB / 0.8482 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004335/0.8551, allocations: 71.88 kB / 0.8482 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003245/0.8583, allocations: 0.9865 MB / 0.8492 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006001/0.8643, allocations: 1.634 MB / 0.8508 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004853/0.8692, allocations: 1.643 MB / 0.8524 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.00672/0.8759, allocations: 4.564 MB / 0.8568 GB, free: 9.777 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005048/0.881, allocations: 3.38 MB / 0.8602 GB, free: 7.535 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004548/0.8855, allocations: 1.963 MB / 0.8621 GB, free: 5.738 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004122/0.8896, allocations: 2.339 MB / 0.8644 GB, free: 3.391 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001143/0.8908, allocations: 424 kB / 0.8648 GB, free: 2.977 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002826/0.8936, allocations: 1.042 MB / 0.8658 GB, free: 1.934 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001296/0.8949, allocations: 1.122 MB / 0.8669 GB, free: 0.8086 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.00307/0.898, allocations: 1.92 MB / 0.8687 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.008388/0.9064, allocations: 5.531 MB / 0.8741 GB, free: 9.328 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/0.9064, allocations: 3.984 kB / 0.8741 GB, free: 9.324 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.984e-06/0.9064, allocations: 0 / 0.8741 GB, free: 9.324 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001692/0.9065, allocations: 0 / 0.8741 GB, free: 9.324 MB / 0.6387 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.01097/0.9175, allocations: 4.417 MB / 0.8785 GB, free: 4.828 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.9176, allocations: 13.11 kB / 0.8785 GB, free: 4.816 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01387/0.9314, allocations: 2.774 MB / 0.8812 GB, free: 2.035 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005531/0.937, allocations: 2.22 MB / 0.8834 GB, free: 15.77 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/0.9372, allocations: 234.2 kB / 0.8836 GB, free: 15.54 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009598/0.9381, allocations: 300 kB / 0.8839 GB, free: 15.24 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.9506, allocations: 4.967 MB / 0.8887 GB, free: 10.19 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.471e-05/0.9507, allocations: 4 kB / 0.8887 GB, free: 10.19 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000367/0.9511, allocations: 120 kB / 0.8888 GB, free: 10.07 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.04e-05/0.9511, allocations: 81.06 kB / 0.8889 GB, free: 9.992 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01586/0.967, allocations: 6.111 MB / 0.8949 GB, free: 3.867 MB / 0.6544 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.02898/0.996, allocations: 13.57 MB / 0.9081 GB, free: 5.863 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01079/1.007, allocations: 4.149 MB / 0.9122 GB, free: 1.715 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005638/1.012, allocations: 2.155 MB / 0.9143 GB, free: 15.55 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001046/1.013, allocations: 0.6696 MB / 0.9149 GB, free: 14.75 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006085/1.02, allocations: 2.37 MB / 0.9173 GB, free: 12.35 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=257): time 5.911e-06/1.02, allocations: 0 / 0.9173 GB, free: 12.35 MB / 0.6856 GB Notification: Performance of matching and sorting (n=257): time 0.0188/1.038, allocations: 6.941 MB / 0.924 GB, free: 5.285 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001556/1.038, allocations: 206 kB / 0.9242 GB, free: 5.039 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003541/1.042, allocations: 2.315 MB / 0.9265 GB, free: 2.691 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0006484/1.043, allocations: 77.7 kB / 0.9266 GB, free: 2.609 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.00135/1.044, allocations: 1.316 MB / 0.9278 GB, free: 1.277 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001311/1.045, allocations: 0.8986 MB / 0.9287 GB, free: 380 kB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009858/1.046, allocations: 480.4 kB / 0.9292 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001387/1.046, allocations: 309.1 kB / 0.9295 GB, free: 15.59 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004938/1.051, allocations: 1.893 MB / 0.9313 GB, free: 13.69 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005489/1.057, allocations: 2.182 MB / 0.9335 GB, free: 11.43 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/1.068, allocations: 4.069 MB / 0.9374 GB, free: 7.27 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-05/1.068, allocations: 4 kB / 0.9374 GB, free: 7.266 MB / 0.7012 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01336/1.081, allocations: 4.708 MB / 0.942 GB, free: 2.504 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/1.081, allocations: 7.938 kB / 0.942 GB, free: 2.496 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/1.081, allocations: 4 kB / 0.942 GB, free: 2.492 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006978/1.082, allocations: 225 kB / 0.9423 GB, free: 2.27 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004221/1.086, allocations: 0.7799 MB / 0.943 GB, free: 1.488 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00471/1.091, allocations: 3.384 MB / 0.9463 GB, free: 13.97 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004101/1.095, allocations: 0.5253 MB / 0.9468 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005553/1.095, allocations: 107.9 kB / 0.9469 GB, free: 13.34 MB / 0.7169 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.002256/1.098, allocations: 0.8875 MB / 0.9478 GB, free: 12.44 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000819/1.098, allocations: 278.2 kB / 0.9481 GB, free: 12.17 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01372/1.112, allocations: 5.25 MB / 0.9532 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.222e-05/1.112, allocations: 28 kB / 0.9532 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/1.112, allocations: 7.938 kB / 0.9532 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-05/1.112, allocations: 19.94 kB / 0.9533 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01984/1.132, allocations: 8.803 MB / 0.9619 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/1.132, allocations: 0 / 0.9619 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003943/1.136, allocations: 0.7254 MB / 0.9626 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008776/1.137, allocations: 264.3 kB / 0.9628 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003948/1.137, allocations: 79.88 kB / 0.9629 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005787/1.143, allocations: 5.238 MB / 0.968 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.143, allocations: 0 / 0.968 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01956/1.163, allocations: 7.542 MB / 0.9754 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00259/1.165, allocations: 0.7836 MB / 0.9761 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000742/1.166, allocations: 59.89 kB / 0.9762 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00334/1.169, allocations: 391.4 kB / 0.9766 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004364/1.17, allocations: 166.2 kB / 0.9767 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003265/1.17, allocations: 95.86 kB / 0.9768 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002699/1.173, allocations: 1.688 MB / 0.9785 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1e-07/1.173, allocations: 0 / 0.9785 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003398/1.176, allocations: 0.9703 MB / 0.9794 GB, free: 11.43 MB / 0.7481 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.004184/1.18, allocations: 1.038 MB / 0.9804 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.01245/1.193, allocations: 4.444 MB / 0.9848 GB, free: 6.242 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.193, allocations: 0 / 0.9848 GB, free: 6.242 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.006473/1.199, allocations: 2.475 MB / 0.9872 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003383/1.203, allocations: 0.6361 MB / 0.9878 GB, free: 3.137 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01587/1.219, allocations: 7.538 MB / 0.9952 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002479/1.221, allocations: 2.299 MB / 0.9974 GB, free: 9.219 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001971/1.223, allocations: 295.2 kB / 0.9977 GB, free: 8.93 MB / 0.7637 GB Notification: Performance of SimCode: time 1.483e-06/1.223, allocations: 4 kB / 0.9977 GB, free: 8.926 MB / 0.7637 GB Notification: Performance of Templates: time 0.4906/1.714, allocations: 79.49 MB / 1.075 GB, free: 313.2 MB / 0.8262 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