Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.SimpleRoomThreeElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements") translateModel(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 109.1 kB / 16.41 MB, free: 6.496 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.001394/0.001395, allocations: 191 kB / 17.34 MB, free: 5.766 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.431/1.431, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8083/0.8083, allocations: 132.2 MB / 423.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 60.97 kB / 0.582 GB, free: 23.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.1701, allocations: 80.21 MB / 0.6603 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements): time 0.6898/0.8599, allocations: 161.7 MB / 0.8182 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0422/0.9021, allocations: 27.05 MB / 0.8447 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005034/0.9072, allocations: 79.66 kB / 0.8447 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003245/0.9105, allocations: 1.061 MB / 0.8458 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007337/0.9179, allocations: 1.753 MB / 0.8475 GB, free: 2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005604/0.9235, allocations: 1.798 MB / 0.8492 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008243/0.9318, allocations: 5.216 MB / 0.8543 GB, free: 13.41 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007641/0.9394, allocations: 4.51 MB / 0.8587 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005156/0.9446, allocations: 2.168 MB / 0.8609 GB, free: 8.383 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004767/0.9494, allocations: 2.588 MB / 0.8634 GB, free: 5.785 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001778/0.9512, allocations: 484 kB / 0.8639 GB, free: 5.312 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.9553, allocations: 1.089 MB / 0.8649 GB, free: 4.223 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002148/0.9574, allocations: 1.246 MB / 0.8661 GB, free: 2.973 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.004804/0.9622, allocations: 2.177 MB / 0.8683 GB, free: 0.7852 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.009215/0.9715, allocations: 6.212 MB / 0.8743 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.9715, allocations: 0 / 0.8743 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.803e-06/0.9715, allocations: 0 / 0.8743 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001404/0.9717, allocations: 0 / 0.8743 GB, free: 10.55 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: 882 * Number of variables: 882 Notification: Performance of Generate backend data structure: time 0.01006/0.9817, allocations: 4.746 MB / 0.879 GB, free: 5.73 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.9818, allocations: 8.031 kB / 0.879 GB, free: 5.723 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01345/0.9953, allocations: 2.795 MB / 0.8817 GB, free: 2.918 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004836/1, allocations: 2.4 MB / 0.884 GB, free: 452 kB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/1, allocations: 258.9 kB / 0.8843 GB, free: 192 kB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006156/1.001, allocations: 332 kB / 0.8846 GB, free: 15.86 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0108/1.012, allocations: 5.389 MB / 0.8899 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-05/1.012, allocations: 3.938 kB / 0.8899 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003639/1.012, allocations: 148 kB / 0.89 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-05/1.012, allocations: 80 kB / 0.8901 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01379/1.026, allocations: 6.527 MB / 0.8965 GB, free: 3.637 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.0305/1.057, allocations: 15.62 MB / 0.9117 GB, free: 3.398 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008617/1.065, allocations: 4.064 MB / 0.9157 GB, free: 15.32 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005266/1.071, allocations: 2.667 MB / 0.9183 GB, free: 12.64 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/1.072, allocations: 0.6696 MB / 0.9189 GB, free: 11.85 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005577/1.077, allocations: 2.577 MB / 0.9215 GB, free: 9.23 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=288): time 5.19e-06/1.077, allocations: 0 / 0.9215 GB, free: 9.23 MB / 0.6856 GB Notification: Performance of matching and sorting (n=288): time 0.02063/1.098, allocations: 8.398 MB / 0.9297 GB, free: 0.7148 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/1.098, allocations: 210.2 kB / 0.9299 GB, free: 476 kB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00435/1.102, allocations: 2.525 MB / 0.9323 GB, free: 13.92 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0003987/1.103, allocations: 73.7 kB / 0.9324 GB, free: 13.84 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001474/1.104, allocations: 1.428 MB / 0.9338 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.001137/1.105, allocations: 0.9588 MB / 0.9347 GB, free: 11.42 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001301/1.107, allocations: 0.505 MB / 0.9352 GB, free: 10.91 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001049/1.107, allocations: 301.1 kB / 0.9355 GB, free: 10.61 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004839/1.112, allocations: 2.058 MB / 0.9375 GB, free: 8.551 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005352/1.117, allocations: 2.377 MB / 0.9398 GB, free: 6.102 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009905/1.127, allocations: 4.431 MB / 0.9442 GB, free: 1.586 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/1.127, allocations: 0 / 0.9442 GB, free: 1.586 MB / 0.7012 GB Notification: Performance of matching and sorting (n=327) (initialization): time 0.01219/1.139, allocations: 5.33 MB / 0.9494 GB, free: 12.21 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/1.139, allocations: 8 kB / 0.9494 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/1.139, allocations: 8 kB / 0.9494 GB, free: 12.19 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/1.141, allocations: 0.5374 MB / 0.9499 GB, free: 11.65 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003943/1.145, allocations: 0.7956 MB / 0.9507 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007966/1.153, allocations: 5.713 MB / 0.9563 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004031/1.157, allocations: 0.5478 MB / 0.9568 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006154/1.157, allocations: 115.9 kB / 0.9569 GB, free: 4.328 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 (282): * Single equations (assignments): 281 * 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 {(4,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002667/1.16, allocations: 0.9698 MB / 0.9579 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.161, allocations: 288.4 kB / 0.9581 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01445/1.176, allocations: 5.883 MB / 0.9639 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.537e-05/1.176, allocations: 28 kB / 0.9639 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.024e-05/1.176, allocations: 19.94 kB / 0.9639 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.654e-05/1.176, allocations: 15.94 kB / 0.9639 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02062/1.196, allocations: 9.885 MB / 0.9736 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/1.196, allocations: 0 / 0.9736 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003716/1.2, allocations: 0.7489 MB / 0.9743 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/1.202, allocations: 0.5216 MB / 0.9748 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003328/1.202, allocations: 79.94 kB / 0.9749 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00866/1.211, allocations: 7.554 MB / 0.9823 GB, free: 9.84 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/1.211, allocations: 0 / 0.9823 GB, free: 9.84 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01838/1.229, allocations: 8.405 MB / 0.9905 GB, free: 1.344 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002098/1.231, allocations: 0.848 MB / 0.9913 GB, free: 484 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009205/1.232, allocations: 59.94 kB / 0.9914 GB, free: 424 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003526/1.236, allocations: 403.5 kB / 0.9918 GB, free: 20 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005901/1.236, allocations: 194 kB / 0.992 GB, free: 15.83 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003747/1.237, allocations: 103.9 kB / 0.9921 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.003471/1.24, allocations: 1.83 MB / 0.9938 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/1.24, allocations: 0 / 0.9938 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004039/1.244, allocations: 1.103 MB / 0.9949 GB, free: 12.78 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (thermalZoneThreeElements.volAir.dynBal.U,thermalZoneThreeElements.volAir.dynBal.m,thermalZoneThreeElements.extWallRC.thermCapExt[1].T,thermalZoneThreeElements.intWallRC.thermCapInt[1].T,thermalZoneThreeElements.floorRC.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 (260): * Single equations (assignments): 253 * 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 {(4,36,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.003041/1.247, allocations: 1.031 MB / 0.9959 GB, free: 12.14 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01277/1.26, allocations: 5.116 MB / 1.001 GB, free: 6.984 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.26, allocations: 0 / 1.001 GB, free: 6.984 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.007135/1.267, allocations: 2.952 MB / 1.004 GB, free: 4 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004856/1.272, allocations: 0.7175 MB / 1.005 GB, free: 3.316 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02015/1.292, allocations: 8.233 MB / 1.013 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003317/1.296, allocations: 2.471 MB / 1.015 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002661/1.298, allocations: 311.2 kB / 1.015 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of SimCode: time 1.523e-06/1.298, allocations: 0 / 1.015 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of Templates: time 0.5432/1.842, allocations: 87.77 MB / 1.101 GB, free: 285.2 MB / 0.8106 GB make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.makefile make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElementsCalcHelperMain.o OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElementsCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElementsCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElementsFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElementsCalcHelperMain.o] Error 1