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.001426/0.001426, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.001532/0.001532, allocations: 194.5 kB / 16.91 MB, free: 6.195 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.352/1.352, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.805/0.805, allocations: 135.1 MB / 425.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 67.89 kB / 0.5055 GB, free: 8.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5269/0.5282, allocations: 80.91 MB / 0.5845 GB, free: 25.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.1759/0.7041, allocations: 157.9 MB / 0.7387 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.4646/1.169, allocations: 26.24 MB / 0.7643 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003993/1.173, allocations: 66.91 kB / 0.7644 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002579/1.175, allocations: 0.8783 MB / 0.7652 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005513/1.181, allocations: 1.469 MB / 0.7667 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004522/1.186, allocations: 1.48 MB / 0.7681 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007549/1.193, allocations: 4.571 MB / 0.7726 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005966/1.199, allocations: 4.105 MB / 0.7766 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004366/1.203, allocations: 1.942 MB / 0.7785 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003796/1.207, allocations: 2.381 MB / 0.7808 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0007823/1.208, allocations: 426.7 kB / 0.7812 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002671/1.211, allocations: 1.011 MB / 0.7822 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0009203/1.212, allocations: 1.116 MB / 0.7833 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002182/1.214, allocations: 1.931 MB / 0.7852 GB, free: 344 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004719/1.219, allocations: 4.286 MB / 0.7894 GB, free: 60 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/1.219, allocations: 0 / 0.7894 GB, free: 60 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.883e-06/1.219, allocations: 0.9375 kB / 0.7894 GB, free: 60 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001064/1.219, allocations: 0 / 0.7894 GB, free: 60 kB / 0.5762 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.009143/1.228, allocations: 4.303 MB / 0.7936 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/1.228, allocations: 11.23 kB / 0.7936 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01335/1.241, allocations: 2.747 MB / 0.7963 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005213/1.247, allocations: 2.183 MB / 0.7984 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/1.247, allocations: 234.8 kB / 0.7986 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006141/1.247, allocations: 296.5 kB / 0.7989 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01082/1.258, allocations: 4.964 MB / 0.8038 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.345e-05/1.258, allocations: 3.906 kB / 0.8038 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003493/1.259, allocations: 125.4 kB / 0.8039 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.264e-05/1.259, allocations: 78.06 kB / 0.804 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/1.273, allocations: 6.11 MB / 0.8099 GB, free: 11.33 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.03013/1.303, allocations: 13.63 MB / 0.8232 GB, free: 1.07 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/1.313, allocations: 4.35 MB / 0.8275 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005552/1.319, allocations: 2.308 MB / 0.8297 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001306/1.32, allocations: 0.6775 MB / 0.8304 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006581/1.327, allocations: 2.367 MB / 0.8327 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=257): time 8.737e-06/1.327, allocations: 0 / 0.8327 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of matching and sorting (n=257): time 0.01806/1.345, allocations: 6.942 MB / 0.8395 GB, free: 188 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/1.345, allocations: 206 kB / 0.8397 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004454/1.35, allocations: 2.311 MB / 0.8419 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0005838/1.35, allocations: 73.7 kB / 0.842 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001419/1.352, allocations: 1.292 MB / 0.8433 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001173/1.353, allocations: 0.8538 MB / 0.8441 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001444/1.354, allocations: 480.2 kB / 0.8446 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.036e-05/1.355, allocations: 312 kB / 0.8449 GB, free: 10.58 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004483/1.359, allocations: 1.89 MB / 0.8467 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00477/1.364, allocations: 2.193 MB / 0.8489 GB, free: 6.418 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00898/1.373, allocations: 4.057 MB / 0.8528 GB, free: 2.285 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.268e-05/1.373, allocations: 11.94 kB / 0.8528 GB, free: 2.273 MB / 0.6231 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01112/1.384, allocations: 4.699 MB / 0.8574 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/1.384, allocations: 8 kB / 0.8574 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/1.384, allocations: 7.938 kB / 0.8574 GB, free: 13.54 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000661/1.385, allocations: 231.2 kB / 0.8577 GB, free: 13.31 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003751/1.388, allocations: 0.7711 MB / 0.8584 GB, free: 12.57 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/1.393, allocations: 3.379 MB / 0.8617 GB, free: 9.066 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003769/1.397, allocations: 0.5325 MB / 0.8622 GB, free: 8.531 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004505/1.397, allocations: 107.9 kB / 0.8623 GB, free: 8.426 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.002355/1.399, allocations: 0.8902 MB / 0.8632 GB, free: 7.551 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/1.4, allocations: 260.8 kB / 0.8634 GB, free: 7.293 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01302/1.413, allocations: 5.267 MB / 0.8686 GB, free: 1.973 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/1.414, allocations: 24 kB / 0.8686 GB, free: 1.949 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.929e-05/1.414, allocations: 7.984 kB / 0.8686 GB, free: 1.941 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.821e-05/1.414, allocations: 15.89 kB / 0.8686 GB, free: 1.926 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01891/1.432, allocations: 8.83 MB / 0.8773 GB, free: 9.043 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/1.433, allocations: 0 / 0.8773 GB, free: 9.043 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003607/1.436, allocations: 0.7213 MB / 0.878 GB, free: 8.344 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008637/1.437, allocations: 262.3 kB / 0.8782 GB, free: 8.078 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003354/1.437, allocations: 75.92 kB / 0.8783 GB, free: 8.004 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005063/1.442, allocations: 5.242 MB / 0.8834 GB, free: 2.484 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/1.442, allocations: 0 / 0.8834 GB, free: 2.484 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01678/1.459, allocations: 7.521 MB / 0.8907 GB, free: 10.88 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002673/1.462, allocations: 0.7705 MB / 0.8915 GB, free: 10.09 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001124/1.463, allocations: 55.84 kB / 0.8916 GB, free: 10.03 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003474/1.467, allocations: 409.8 kB / 0.8919 GB, free: 9.633 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005/1.467, allocations: 169.9 kB / 0.8921 GB, free: 9.465 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000326/1.468, allocations: 91.94 kB / 0.8922 GB, free: 9.375 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003158/1.471, allocations: 1.687 MB / 0.8938 GB, free: 7.676 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.9e-07/1.471, allocations: 4 kB / 0.8938 GB, free: 7.672 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003661/1.474, allocations: 0.9622 MB / 0.8948 GB, free: 6.707 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.0029/1.477, allocations: 1.027 MB / 0.8958 GB, free: 6.113 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01911/1.496, allocations: 7.766 MB / 0.9034 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/1.496, allocations: 0 / 0.9034 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.006408/1.503, allocations: 2.598 MB / 0.9059 GB, free: 11.78 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004301/1.507, allocations: 0.6367 MB / 0.9065 GB, free: 11.17 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/1.524, allocations: 8.928 MB / 0.9153 GB, free: 2.211 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002829/1.527, allocations: 2.307 MB / 0.9175 GB, free: 15.88 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00254/1.529, allocations: 295.2 kB / 0.9178 GB, free: 15.59 MB / 0.7012 GB Notification: Performance of SimCode: time 1.553e-06/1.529, allocations: 0 / 0.9178 GB, free: 15.59 MB / 0.7012 GB Notification: Performance of Templates: time 0.1011/1.631, allocations: 78.93 MB / 0.9949 GB, free: 0.7539 MB / 0.7637 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