Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.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.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") translateModel(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 104.9 kB / 15.98 MB, free: 6.348 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.001206/0.001206, allocations: 193.2 kB / 16.91 MB, free: 6.188 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.385/1.385, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7616/0.7616, allocations: 132.2 MB / 422.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 59.91 kB / 0.5019 GB, free: 12.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.4571, allocations: 80.19 MB / 0.5802 GB, free: 27.37 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.1759/0.633, allocations: 158.5 MB / 0.735 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.4752/1.108, allocations: 26.42 MB / 0.7608 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005854/1.114, allocations: 72.5 kB / 0.7609 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003499/1.118, allocations: 0.9089 MB / 0.7618 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0063/1.124, allocations: 1.522 MB / 0.7633 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004898/1.129, allocations: 1.528 MB / 0.7648 GB, free: 1.605 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007959/1.137, allocations: 4.831 MB / 0.7695 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006989/1.144, allocations: 4.264 MB / 0.7737 GB, free: 17.16 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005014/1.149, allocations: 2.029 MB / 0.7756 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004291/1.153, allocations: 2.491 MB / 0.7781 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001099/1.155, allocations: 450.4 kB / 0.7785 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/1.157, allocations: 1.029 MB / 0.7795 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0009935/1.158, allocations: 1.179 MB / 0.7807 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002631/1.161, allocations: 2.03 MB / 0.7826 GB, free: 16.34 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00516/1.166, allocations: 4.523 MB / 0.7871 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/1.166, allocations: 1 kB / 0.7871 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.916e-06/1.166, allocations: 0 / 0.7871 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001921/1.166, allocations: 2.906 kB / 0.7871 GB, free: 16.05 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01149/1.178, allocations: 4.481 MB / 0.7914 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/1.178, allocations: 10.12 kB / 0.7914 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01451/1.193, allocations: 2.772 MB / 0.7941 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007194/1.2, allocations: 2.273 MB / 0.7964 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003658/1.2, allocations: 245 kB / 0.7966 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00149/1.202, allocations: 317.3 kB / 0.7969 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01473/1.216, allocations: 5.136 MB / 0.8019 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002096/1.217, allocations: 2.5 kB / 0.8019 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001265/1.218, allocations: 134.4 kB / 0.8021 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.011e-05/1.218, allocations: 77.5 kB / 0.8021 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01788/1.236, allocations: 6.288 MB / 0.8083 GB, free: 11.11 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.03649/1.273, allocations: 14.53 MB / 0.8225 GB, free: 24 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01163/1.284, allocations: 4.506 MB / 0.8269 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006288/1.291, allocations: 2.45 MB / 0.8292 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001274/1.292, allocations: 0.674 MB / 0.8299 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006891/1.299, allocations: 2.458 MB / 0.8323 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=270): time 7.123e-06/1.299, allocations: 0 / 0.8323 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of matching and sorting (n=270): time 0.02307/1.322, allocations: 7.537 MB / 0.8397 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/1.322, allocations: 214 kB / 0.8399 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004842/1.327, allocations: 2.392 MB / 0.8422 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0009915/1.328, allocations: 77.64 kB / 0.8423 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.00159/1.33, allocations: 1.347 MB / 0.8436 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001732/1.331, allocations: 0.9 MB / 0.8445 GB, free: 9.129 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002447/1.334, allocations: 496.5 kB / 0.8449 GB, free: 8.637 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.334, allocations: 317 kB / 0.8452 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005226/1.339, allocations: 1.96 MB / 0.8472 GB, free: 6.359 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005742/1.345, allocations: 2.273 MB / 0.8494 GB, free: 4.016 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/1.356, allocations: 4.228 MB / 0.8535 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-05/1.356, allocations: 4 kB / 0.8535 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of matching and sorting (n=308) (initialization): time 0.01466/1.37, allocations: 4.959 MB / 0.8584 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/1.371, allocations: 10.5 kB / 0.8584 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/1.371, allocations: 4 kB / 0.8584 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009642/1.372, allocations: 344.7 kB / 0.8587 GB, free: 10.38 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004552/1.376, allocations: 0.7895 MB / 0.8595 GB, free: 9.621 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006023/1.382, allocations: 4.25 MB / 0.8636 GB, free: 5.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004577/1.387, allocations: 0.5402 MB / 0.8641 GB, free: 4.707 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009595/1.388, allocations: 111.9 kB / 0.8643 GB, free: 4.598 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 (278): * Single equations (assignments): 277 * 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 {(3,28,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003363/1.391, allocations: 0.9282 MB / 0.8652 GB, free: 3.688 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001471/1.393, allocations: 268.6 kB / 0.8654 GB, free: 3.422 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01547/1.408, allocations: 5.548 MB / 0.8708 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-05/1.408, allocations: 28 kB / 0.8709 GB, free: 13.8 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/1.408, allocations: 4 kB / 0.8709 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.789e-05/1.408, allocations: 11.95 kB / 0.8709 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01741/1.426, allocations: 9.303 MB / 0.88 GB, free: 4.441 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/1.426, allocations: 0 / 0.88 GB, free: 4.441 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003521/1.429, allocations: 0.7253 MB / 0.8807 GB, free: 3.738 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/1.43, allocations: 388.9 kB / 0.881 GB, free: 3.352 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002717/1.43, allocations: 75.94 kB / 0.8811 GB, free: 3.277 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006457/1.437, allocations: 6.3 MB / 0.8873 GB, free: 12.7 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/1.437, allocations: 3.938 kB / 0.8873 GB, free: 12.69 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01732/1.454, allocations: 7.916 MB / 0.895 GB, free: 4.703 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/1.456, allocations: 0.7977 MB / 0.8958 GB, free: 3.883 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006129/1.457, allocations: 59.84 kB / 0.8958 GB, free: 3.824 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003093/1.46, allocations: 411.3 kB / 0.8962 GB, free: 3.422 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004383/1.46, allocations: 180.8 kB / 0.8964 GB, free: 3.246 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002521/1.461, allocations: 99.92 kB / 0.8965 GB, free: 3.148 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002365/1.463, allocations: 1.737 MB / 0.8982 GB, free: 1.398 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.21e-07/1.463, allocations: 0 / 0.8982 GB, free: 1.398 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003159/1.466, allocations: 1.032 MB / 0.8992 GB, free: 372 kB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (thermalZoneTwoElements.volAir.dynBal.U,thermalZoneTwoElements.volAir.dynBal.m,thermalZoneTwoElements.extWallRC.thermCapExt[1].T,thermalZoneTwoElements.intWallRC.thermCapInt[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 (254): * Single equations (assignments): 247 * 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 {(3,25,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.002619/1.469, allocations: 1.024 MB / 0.9002 GB, free: 15.79 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.02001/1.489, allocations: 8.132 MB / 0.9081 GB, free: 7.672 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/1.489, allocations: 0 / 0.9081 GB, free: 7.672 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0064/1.495, allocations: 2.76 MB / 0.9108 GB, free: 4.93 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003858/1.499, allocations: 0.6773 MB / 0.9115 GB, free: 4.309 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0167/1.516, allocations: 9.304 MB / 0.9206 GB, free: 10.98 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001971/1.518, allocations: 2.373 MB / 0.9229 GB, free: 8.57 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002096/1.52, allocations: 303.2 kB / 0.9232 GB, free: 8.273 MB / 0.7012 GB Notification: Performance of SimCode: time 6.81e-07/1.52, allocations: 0 / 0.9232 GB, free: 8.273 MB / 0.7012 GB Notification: Performance of Templates: time 0.1077/1.628, allocations: 82.22 MB / 1.003 GB, free: 6.234 MB / 0.7794 GB make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.makefile make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.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/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.SimpleRoomTwoElementsCalcHelperMain.o OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElementsCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElementsCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElementsFunctions.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.SimpleRoomTwoElementsCalcHelperMain.o] Error 1