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.001169/0.001169, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001163/0.001163, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8455/0.8455, allocations: 132.2 MB / 423.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 64.05 kB / 0.582 GB, free: 23.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1822, allocations: 80.21 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.6608/0.8431, allocations: 160.8 MB / 0.8173 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03693/0.88, allocations: 26.78 MB / 0.8435 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004209/0.8843, allocations: 74.66 kB / 0.8435 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002373/0.8867, allocations: 1.02 MB / 0.8445 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005441/0.8922, allocations: 1.666 MB / 0.8462 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004523/0.8967, allocations: 1.699 MB / 0.8478 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005924/0.9026, allocations: 4.829 MB / 0.8525 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005135/0.9078, allocations: 4.258 MB / 0.8567 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005144/0.9129, allocations: 2.041 MB / 0.8587 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003902/0.9169, allocations: 2.448 MB / 0.8611 GB, free: 8.168 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0007647/0.9176, allocations: 448 kB / 0.8615 GB, free: 7.73 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002463/0.9201, allocations: 1.062 MB / 0.8625 GB, free: 6.668 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.9211, allocations: 1.165 MB / 0.8637 GB, free: 5.5 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002273/0.9234, allocations: 2.033 MB / 0.8657 GB, free: 3.457 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006305/0.9297, allocations: 5.799 MB / 0.8713 GB, free: 13.63 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.9298, allocations: 0 / 0.8713 GB, free: 13.63 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.285e-06/0.9298, allocations: 0 / 0.8713 GB, free: 13.63 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 9.874e-05/0.9299, allocations: 0 / 0.8713 GB, free: 13.63 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008656/0.9385, allocations: 4.498 MB / 0.8757 GB, free: 9.066 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.9386, allocations: 12.03 kB / 0.8757 GB, free: 9.055 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01295/0.9516, allocations: 2.768 MB / 0.8784 GB, free: 6.277 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004864/0.9564, allocations: 2.293 MB / 0.8807 GB, free: 3.91 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.9566, allocations: 246.5 kB / 0.8809 GB, free: 3.668 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005981/0.9572, allocations: 316 kB / 0.8812 GB, free: 3.359 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.9681, allocations: 5.136 MB / 0.8862 GB, free: 14.14 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.694e-05/0.9682, allocations: 0 / 0.8862 GB, free: 14.14 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003501/0.9685, allocations: 136 kB / 0.8863 GB, free: 14.01 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.437e-05/0.9686, allocations: 83.94 kB / 0.8864 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01371/0.9823, allocations: 6.288 MB / 0.8926 GB, free: 7.629 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.02665/1.009, allocations: 14.41 MB / 0.9066 GB, free: 8.691 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01018/1.019, allocations: 4.52 MB / 0.911 GB, free: 4.168 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00509/1.024, allocations: 2.454 MB / 0.9134 GB, free: 1.703 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001008/1.025, allocations: 0.6814 MB / 0.9141 GB, free: 0.8906 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005426/1.031, allocations: 2.454 MB / 0.9165 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=270): time 5.149e-06/1.031, allocations: 0 / 0.9165 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of matching and sorting (n=270): time 0.01881/1.05, allocations: 7.535 MB / 0.9239 GB, free: 6.738 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/1.05, allocations: 214 kB / 0.9241 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004456/1.054, allocations: 2.397 MB / 0.9264 GB, free: 4.059 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0005355/1.055, allocations: 73.7 kB / 0.9265 GB, free: 3.98 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001446/1.056, allocations: 1.353 MB / 0.9278 GB, free: 2.609 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.00158/1.058, allocations: 0.8933 MB / 0.9287 GB, free: 1.703 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001745/1.06, allocations: 496.5 kB / 0.9291 GB, free: 1.211 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001284/1.06, allocations: 313 kB / 0.9294 GB, free: 0.9023 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005122/1.065, allocations: 1.968 MB / 0.9314 GB, free: 14.93 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005746/1.071, allocations: 2.265 MB / 0.9336 GB, free: 12.59 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/1.081, allocations: 4.228 MB / 0.9377 GB, free: 8.27 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/1.081, allocations: 0 / 0.9377 GB, free: 8.27 MB / 0.7012 GB Notification: Performance of matching and sorting (n=308) (initialization): time 0.01192/1.093, allocations: 4.959 MB / 0.9426 GB, free: 3.258 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/1.093, allocations: 9.406 kB / 0.9426 GB, free: 3.25 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/1.093, allocations: 4.156 kB / 0.9426 GB, free: 3.246 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009387/1.094, allocations: 357.9 kB / 0.9429 GB, free: 2.895 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003927/1.098, allocations: 0.784 MB / 0.9437 GB, free: 2.109 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005814/1.104, allocations: 4.243 MB / 0.9478 GB, free: 13.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004097/1.108, allocations: 0.5401 MB / 0.9483 GB, free: 13.19 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006654/1.108, allocations: 107.9 kB / 0.9484 GB, free: 13.09 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 (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.002798/1.111, allocations: 0.9309 MB / 0.9494 GB, free: 12.14 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001279/1.113, allocations: 264.7 kB / 0.9496 GB, free: 11.88 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01489/1.127, allocations: 5.532 MB / 0.955 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.35e-05/1.127, allocations: 28 kB / 0.955 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.247e-05/1.128, allocations: 4 kB / 0.955 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.636e-05/1.128, allocations: 15.94 kB / 0.9551 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02135/1.149, allocations: 9.305 MB / 0.9641 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/1.149, allocations: 4 kB / 0.9641 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003792/1.153, allocations: 0.7293 MB / 0.9649 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/1.154, allocations: 378.3 kB / 0.9652 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004155/1.154, allocations: 75.94 kB / 0.9653 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006627/1.161, allocations: 6.298 MB / 0.9714 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/1.161, allocations: 3.938 kB / 0.9714 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01804/1.179, allocations: 7.919 MB / 0.9792 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002421/1.182, allocations: 0.8054 MB / 0.98 GB, free: 12.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008564/1.182, allocations: 51.94 kB / 0.98 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00335/1.186, allocations: 401.6 kB / 0.9804 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005336/1.186, allocations: 173.9 kB / 0.9806 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003623/1.187, allocations: 99.92 kB / 0.9807 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.003102/1.19, allocations: 1.749 MB / 0.9824 GB, free: 9.691 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.2e-07/1.19, allocations: 3.938 kB / 0.9824 GB, free: 9.688 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003668/1.193, allocations: 1.021 MB / 0.9834 GB, free: 8.664 MB / 0.7481 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.002912/1.196, allocations: 1.032 MB / 0.9844 GB, free: 8.027 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.01198/1.208, allocations: 4.808 MB / 0.9891 GB, free: 3.176 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/1.208, allocations: 0 / 0.9891 GB, free: 3.176 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.006438/1.215, allocations: 2.758 MB / 0.9918 GB, free: 396 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/1.219, allocations: 0.6643 MB / 0.9924 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01868/1.238, allocations: 7.793 MB / 1 GB, free: 7.914 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003382/1.242, allocations: 2.365 MB / 1.002 GB, free: 5.516 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002592/1.244, allocations: 307.2 kB / 1.003 GB, free: 5.215 MB / 0.7637 GB Notification: Performance of SimCode: time 9.21e-07/1.244, allocations: 0 / 1.003 GB, free: 5.215 MB / 0.7637 GB Notification: Performance of Templates: time 0.4828/1.727, allocations: 82.66 MB / 1.083 GB, free: 298.1 MB / 0.8106 GB make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.makefile make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.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.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