Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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.SimpleRoomOneElement,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement") translateModel(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="IDEAS_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.001065/0.001065, allocations: 103.7 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.001129/0.001129, allocations: 198.9 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.335/1.336, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7645/0.7645, allocations: 132.2 MB / 422.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.91 kB / 0.5019 GB, free: 12.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4711/0.4725, allocations: 80.18 MB / 0.5802 GB, free: 27.35 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.1699/0.6424, allocations: 157.9 MB / 0.7344 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.4888/1.131, allocations: 26.24 MB / 0.76 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004507/1.136, allocations: 67.06 kB / 0.7601 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003312/1.139, allocations: 0.8744 MB / 0.761 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006671/1.146, allocations: 1.476 MB / 0.7624 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005265/1.151, allocations: 1.474 MB / 0.7638 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008712/1.16, allocations: 4.574 MB / 0.7683 GB, free: 1.656 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007018/1.167, allocations: 4.105 MB / 0.7723 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005484/1.172, allocations: 1.942 MB / 0.7742 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004743/1.177, allocations: 2.381 MB / 0.7765 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001194/1.178, allocations: 423.5 kB / 0.7769 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003104/1.182, allocations: 1.006 MB / 0.7779 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001021/1.183, allocations: 1.119 MB / 0.779 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002694/1.185, allocations: 1.936 MB / 0.7809 GB, free: 16.48 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005177/1.19, allocations: 4.279 MB / 0.7851 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/1.191, allocations: 3.094 kB / 0.7851 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.014e-06/1.191, allocations: 0.9062 kB / 0.7851 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001644/1.191, allocations: 0 / 0.7851 GB, free: 16.2 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: 790 * Number of variables: 790 Notification: Performance of Generate backend data structure: time 0.01114/1.202, allocations: 4.297 MB / 0.7893 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/1.202, allocations: 8.594 kB / 0.7893 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01319/1.215, allocations: 2.752 MB / 0.792 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005103/1.22, allocations: 2.186 MB / 0.7941 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/1.22, allocations: 229.3 kB / 0.7943 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008958/1.221, allocations: 307.7 kB / 0.7946 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01315/1.235, allocations: 4.961 MB / 0.7995 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.125e-05/1.235, allocations: 0 / 0.7995 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004052/1.235, allocations: 127.4 kB / 0.7996 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.554e-05/1.235, allocations: 74.38 kB / 0.7997 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01638/1.251, allocations: 6.114 MB / 0.8056 GB, free: 11.84 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.03315/1.285, allocations: 13.64 MB / 0.819 GB, free: 3.188 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/1.296, allocations: 4.344 MB / 0.8232 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0057/1.302, allocations: 2.308 MB / 0.8255 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0011/1.303, allocations: 0.6757 MB / 0.8261 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006404/1.309, allocations: 2.376 MB / 0.8284 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=257): time 6.412e-06/1.309, allocations: 0 / 0.8284 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of matching and sorting (n=257): time 0.02158/1.331, allocations: 6.936 MB / 0.8352 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001893/1.331, allocations: 213.9 kB / 0.8354 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007016/1.338, allocations: 2.302 MB / 0.8377 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.001274/1.339, allocations: 73.7 kB / 0.8377 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.002235/1.342, allocations: 1.296 MB / 0.839 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.002339/1.344, allocations: 0.8518 MB / 0.8398 GB, free: 13.47 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003014/1.347, allocations: 476.1 kB / 0.8403 GB, free: 13 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001892/1.347, allocations: 314.1 kB / 0.8406 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005473/1.353, allocations: 1.89 MB / 0.8424 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005271/1.358, allocations: 2.184 MB / 0.8446 GB, free: 8.539 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009684/1.368, allocations: 4.057 MB / 0.8485 GB, free: 4.406 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.61e-05/1.368, allocations: 7.938 kB / 0.8485 GB, free: 4.398 MB / 0.6231 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01509/1.383, allocations: 4.696 MB / 0.8531 GB, free: 15.68 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.606e-05/1.383, allocations: 8 kB / 0.8531 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.24e-05/1.383, allocations: 7.938 kB / 0.8531 GB, free: 15.66 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000866/1.384, allocations: 235.7 kB / 0.8534 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004525/1.388, allocations: 0.7711 MB / 0.8541 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004818/1.393, allocations: 3.378 MB / 0.8574 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004792/1.398, allocations: 0.531 MB / 0.8579 GB, free: 10.65 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009175/1.399, allocations: 107.9 kB / 0.858 GB, free: 10.55 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.003452/1.402, allocations: 0.8941 MB / 0.8589 GB, free: 9.668 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001511/1.404, allocations: 260.8 kB / 0.8591 GB, free: 9.41 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01496/1.419, allocations: 5.269 MB / 0.8643 GB, free: 4.086 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-05/1.419, allocations: 28 kB / 0.8643 GB, free: 4.059 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.777e-05/1.419, allocations: 4 kB / 0.8643 GB, free: 4.055 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-05/1.419, allocations: 19 kB / 0.8643 GB, free: 4.039 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02101/1.44, allocations: 8.817 MB / 0.873 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/1.44, allocations: 0 / 0.873 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003735/1.444, allocations: 0.7174 MB / 0.8737 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008787/1.445, allocations: 270.3 kB / 0.8739 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00038/1.445, allocations: 71.94 kB / 0.874 GB, free: 10.13 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005336/1.451, allocations: 5.239 MB / 0.8791 GB, free: 4.621 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/1.451, allocations: 0 / 0.8791 GB, free: 4.621 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01788/1.469, allocations: 7.524 MB / 0.8864 GB, free: 13.02 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002218/1.471, allocations: 0.7705 MB / 0.8872 GB, free: 12.22 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009694/1.472, allocations: 55.84 kB / 0.8872 GB, free: 12.17 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003634/1.475, allocations: 403.3 kB / 0.8876 GB, free: 11.77 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005149/1.476, allocations: 169.9 kB / 0.8878 GB, free: 11.61 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/1.476, allocations: 91.94 kB / 0.8879 GB, free: 11.52 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003359/1.48, allocations: 1.688 MB / 0.8895 GB, free: 9.812 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.31e-07/1.48, allocations: 0 / 0.8895 GB, free: 9.812 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003942/1.484, allocations: 0.9661 MB / 0.8905 GB, free: 8.844 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.003044/1.487, allocations: 1.034 MB / 0.8915 GB, free: 8.266 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.02011/1.507, allocations: 7.765 MB / 0.8991 GB, free: 0.5117 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.507, allocations: 0 / 0.8991 GB, free: 0.5117 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.006846/1.514, allocations: 2.604 MB / 0.9016 GB, free: 13.92 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005348/1.519, allocations: 0.6393 MB / 0.9022 GB, free: 13.33 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02013/1.539, allocations: 8.908 MB / 0.9109 GB, free: 4.387 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003413/1.543, allocations: 2.303 MB / 0.9132 GB, free: 2.055 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002661/1.545, allocations: 299.2 kB / 0.9135 GB, free: 1.762 MB / 0.6856 GB Notification: Performance of SimCode: time 1.332e-06/1.545, allocations: 0 / 0.9135 GB, free: 1.762 MB / 0.6856 GB Notification: Performance of Templates: time 0.1127/1.658, allocations: 78.92 MB / 0.9905 GB, free: 3.016 MB / 0.7637 GB make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.makefile make -j1 -f IDEAS_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/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.SimpleRoomOneElementCalcHelperMain.o OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElementCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElementCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElementFunctions.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.SimpleRoomOneElementCalcHelperMain.o] Error 1