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.001147/0.001147, allocations: 110.4 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.001082/0.001082, allocations: 183.1 kB / 17.34 MB, free: 5.762 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.402/1.402, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8561/0.8561, allocations: 132.2 MB / 423.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.5 kB / 0.582 GB, free: 23.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1712, allocations: 80.21 MB / 0.6603 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.6693/0.8406, allocations: 160.1 MB / 0.8167 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03666/0.8773, allocations: 26.6 MB / 0.8426 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004521/0.8819, allocations: 73.34 kB / 0.8427 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00247/0.8844, allocations: 0.9761 MB / 0.8437 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005637/0.8901, allocations: 1.605 MB / 0.8452 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004295/0.8944, allocations: 1.649 MB / 0.8468 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005785/0.9002, allocations: 4.57 MB / 0.8513 GB, free: 8 kB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005105/0.9053, allocations: 4.097 MB / 0.8553 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003523/0.9088, allocations: 1.96 MB / 0.8572 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003377/0.9122, allocations: 2.338 MB / 0.8595 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.000751/0.913, allocations: 424 kB / 0.8599 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002433/0.9154, allocations: 1.034 MB / 0.8609 GB, free: 8.566 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.9165, allocations: 1.114 MB / 0.862 GB, free: 7.449 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.00229/0.9187, allocations: 1.928 MB / 0.8639 GB, free: 5.512 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006834/0.9256, allocations: 5.503 MB / 0.8693 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.9256, allocations: 0 / 0.8693 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.144e-06/0.9256, allocations: 0 / 0.8693 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001182/0.9258, allocations: 0 / 0.8693 GB, free: 15.99 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: 790 * Number of variables: 790 Notification: Performance of Generate backend data structure: time 0.009022/0.9348, allocations: 4.313 MB / 0.8735 GB, free: 11.61 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.9348, allocations: 8.031 kB / 0.8735 GB, free: 11.6 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01312/0.948, allocations: 2.757 MB / 0.8762 GB, free: 8.832 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005264/0.9533, allocations: 2.206 MB / 0.8783 GB, free: 6.574 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.9535, allocations: 234.2 kB / 0.8786 GB, free: 6.344 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006512/0.9541, allocations: 300 kB / 0.8788 GB, free: 6.051 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.9655, allocations: 4.963 MB / 0.8837 GB, free: 1.004 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.387e-05/0.9656, allocations: 3.984 kB / 0.8837 GB, free: 1 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000354/0.966, allocations: 135.9 kB / 0.8838 GB, free: 0.8672 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.605e-05/0.966, allocations: 75.94 kB / 0.8839 GB, free: 0.793 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01529/0.9813, allocations: 6.099 MB / 0.8898 GB, free: 10.68 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.02934/1.011, allocations: 13.53 MB / 0.9031 GB, free: 12.7 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009207/1.02, allocations: 4.347 MB / 0.9073 GB, free: 8.352 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004682/1.025, allocations: 2.319 MB / 0.9096 GB, free: 6.031 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009015/1.026, allocations: 0.6657 MB / 0.9102 GB, free: 5.234 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004828/1.03, allocations: 2.378 MB / 0.9125 GB, free: 2.82 MB / 0.67 GB Notification: Performance of pre-optimization done (n=257): time 5.07e-06/1.03, allocations: 0 / 0.9125 GB, free: 2.82 MB / 0.67 GB Notification: Performance of matching and sorting (n=257): time 0.0159/1.046, allocations: 6.939 MB / 0.9193 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/1.047, allocations: 213.9 kB / 0.9195 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003245/1.05, allocations: 2.315 MB / 0.9218 GB, free: 9.152 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0003227/1.05, allocations: 69.7 kB / 0.9219 GB, free: 9.078 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.00123/1.051, allocations: 1.298 MB / 0.9231 GB, free: 7.766 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009038/1.052, allocations: 0.8509 MB / 0.924 GB, free: 6.902 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008759/1.053, allocations: 476.2 kB / 0.9244 GB, free: 6.43 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001125/1.053, allocations: 305.1 kB / 0.9247 GB, free: 6.129 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004224/1.058, allocations: 1.893 MB / 0.9265 GB, free: 4.23 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004519/1.062, allocations: 2.189 MB / 0.9287 GB, free: 1.965 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008713/1.071, allocations: 4.065 MB / 0.9327 GB, free: 13.81 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/1.071, allocations: 4 kB / 0.9327 GB, free: 13.8 MB / 0.7012 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01069/1.081, allocations: 4.699 MB / 0.9372 GB, free: 9.051 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/1.082, allocations: 11.94 kB / 0.9373 GB, free: 9.039 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/1.082, allocations: 4.078 kB / 0.9373 GB, free: 9.035 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006407/1.082, allocations: 224.9 kB / 0.9375 GB, free: 8.812 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003709/1.086, allocations: 0.7722 MB / 0.9382 GB, free: 8.039 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004291/1.09, allocations: 3.387 MB / 0.9415 GB, free: 4.516 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003673/1.094, allocations: 0.5208 MB / 0.942 GB, free: 3.992 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003533/1.094, allocations: 107.9 kB / 0.9421 GB, free: 3.887 MB / 0.7012 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.002019/1.096, allocations: 0.8953 MB / 0.943 GB, free: 2.98 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007286/1.097, allocations: 264.7 kB / 0.9433 GB, free: 2.719 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01207/1.109, allocations: 5.257 MB / 0.9484 GB, free: 13.39 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/1.109, allocations: 24 kB / 0.9484 GB, free: 13.37 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/1.109, allocations: 7.938 kB / 0.9484 GB, free: 13.36 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.492e-05/1.109, allocations: 11.95 kB / 0.9485 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/1.127, allocations: 8.81 MB / 0.9571 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/1.127, allocations: 0 / 0.9571 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003449/1.13, allocations: 0.7215 MB / 0.9578 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007924/1.131, allocations: 264.3 kB / 0.958 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002129/1.131, allocations: 71.94 kB / 0.9581 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005344/1.136, allocations: 5.239 MB / 0.9632 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.136, allocations: 0 / 0.9632 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01542/1.152, allocations: 7.533 MB / 0.9706 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/1.154, allocations: 0.7704 MB / 0.9713 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004147/1.154, allocations: 55.91 kB / 0.9714 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/1.157, allocations: 391.4 kB / 0.9717 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003739/1.157, allocations: 165.9 kB / 0.9719 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002189/1.158, allocations: 99.88 kB / 0.972 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002188/1.16, allocations: 1.684 MB / 0.9736 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/1.16, allocations: 0 / 0.9736 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002524/1.162, allocations: 0.9738 MB / 0.9746 GB, free: 2.008 MB / 0.7325 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.00242/1.165, allocations: 1.034 MB / 0.9756 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.009994/1.175, allocations: 4.593 MB / 0.9801 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.175, allocations: 3.938 kB / 0.9801 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.00518/1.18, allocations: 2.604 MB / 0.9826 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002877/1.183, allocations: 0.6368 MB / 0.9832 GB, free: 9.48 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/1.196, allocations: 7.441 MB / 0.9905 GB, free: 1.992 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001896/1.198, allocations: 2.296 MB / 0.9928 GB, free: 15.67 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001653/1.2, allocations: 303.2 kB / 0.993 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of SimCode: time 9.82e-07/1.2, allocations: 0 / 0.993 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of Templates: time 0.4916/1.691, allocations: 79.35 MB / 1.071 GB, free: 307.2 MB / 0.8106 GB make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.makefile make -j1 -f IDEAS_IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement.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.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