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.001295/0.001296, allocations: 103.8 kB / 16.41 MB, free: 6.461 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.001204/0.001204, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8172/0.8172, allocations: 132.2 MB / 423.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 69.27 kB / 0.582 GB, free: 23.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.1916, allocations: 80.21 MB / 0.6603 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.ThermalZones.ReducedOrder.Examples.SimpleRoomOneElement): time 0.6869/0.8786, allocations: 160.1 MB / 0.8167 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03971/0.9183, allocations: 26.61 MB / 0.8426 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004701/0.9231, allocations: 70.28 kB / 0.8427 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003284/0.9264, allocations: 0.9864 MB / 0.8437 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006836/0.9333, allocations: 1.631 MB / 0.8453 GB, free: 3.867 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0053/0.9386, allocations: 1.648 MB / 0.8469 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007656/0.9463, allocations: 4.579 MB / 0.8514 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006893/0.9532, allocations: 4.091 MB / 0.8553 GB, free: 13.28 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004786/0.958, allocations: 1.965 MB / 0.8573 GB, free: 12.08 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004329/0.9624, allocations: 2.343 MB / 0.8596 GB, free: 9.73 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001705/0.9641, allocations: 427.9 kB / 0.86 GB, free: 9.312 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003866/0.968, allocations: 1.027 MB / 0.861 GB, free: 8.285 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002035/0.97, allocations: 1.106 MB / 0.862 GB, free: 7.176 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.00428/0.9743, allocations: 1.932 MB / 0.8639 GB, free: 5.234 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.9846, allocations: 5.499 MB / 0.8693 GB, free: 15.71 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 1.24e-05/0.9847, allocations: 8 kB / 0.8693 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9847, allocations: 3.938 kB / 0.8693 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002562/0.985, allocations: 0 / 0.8693 GB, free: 15.7 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.0141/0.9991, allocations: 4.314 MB / 0.8735 GB, free: 11.32 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.9991, allocations: 8.031 kB / 0.8735 GB, free: 11.31 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01326/1.012, allocations: 2.753 MB / 0.8762 GB, free: 8.551 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004975/1.017, allocations: 2.209 MB / 0.8784 GB, free: 6.293 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/1.018, allocations: 230.2 kB / 0.8786 GB, free: 6.066 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008006/1.018, allocations: 300 kB / 0.8789 GB, free: 5.773 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/1.031, allocations: 4.975 MB / 0.8837 GB, free: 0.7148 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-05/1.031, allocations: 0 / 0.8837 GB, free: 0.7148 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003747/1.031, allocations: 128 kB / 0.8839 GB, free: 0.5898 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-05/1.031, allocations: 79.94 kB / 0.8839 GB, free: 0.5117 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0149/1.046, allocations: 6.103 MB / 0.8899 GB, free: 10.39 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.02624/1.072, allocations: 13.52 MB / 0.9031 GB, free: 12.43 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009923/1.082, allocations: 4.355 MB / 0.9074 GB, free: 8.066 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00498/1.087, allocations: 2.316 MB / 0.9096 GB, free: 5.75 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009128/1.088, allocations: 0.6696 MB / 0.9103 GB, free: 4.949 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005384/1.094, allocations: 2.37 MB / 0.9126 GB, free: 2.543 MB / 0.67 GB Notification: Performance of pre-optimization done (n=257): time 5.179e-06/1.094, allocations: 7.938 kB / 0.9126 GB, free: 2.535 MB / 0.67 GB Notification: Performance of matching and sorting (n=257): time 0.01722/1.111, allocations: 6.939 MB / 0.9194 GB, free: 11.47 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/1.111, allocations: 206 kB / 0.9196 GB, free: 11.22 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004595/1.116, allocations: 2.311 MB / 0.9218 GB, free: 8.879 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0005175/1.116, allocations: 69.7 kB / 0.9219 GB, free: 8.805 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.00134/1.118, allocations: 1.298 MB / 0.9232 GB, free: 7.492 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001042/1.119, allocations: 0.8509 MB / 0.924 GB, free: 6.629 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008908/1.12, allocations: 484.2 kB / 0.9245 GB, free: 6.148 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001101/1.12, allocations: 301.1 kB / 0.9247 GB, free: 5.852 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004516/1.124, allocations: 1.893 MB / 0.9266 GB, free: 3.953 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004785/1.129, allocations: 2.185 MB / 0.9287 GB, free: 1.691 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00896/1.138, allocations: 4.073 MB / 0.9327 GB, free: 13.53 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-06/1.138, allocations: 0 / 0.9327 GB, free: 13.53 MB / 0.7012 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01091/1.149, allocations: 4.699 MB / 0.9373 GB, free: 8.773 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/1.149, allocations: 13.5 kB / 0.9373 GB, free: 8.762 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/1.149, allocations: 8.156 kB / 0.9373 GB, free: 8.754 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006629/1.15, allocations: 224.7 kB / 0.9375 GB, free: 8.531 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003718/1.153, allocations: 0.7722 MB / 0.9383 GB, free: 7.758 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00437/1.158, allocations: 3.376 MB / 0.9416 GB, free: 4.246 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00358/1.161, allocations: 0.5247 MB / 0.9421 GB, free: 3.719 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003035/1.162, allocations: 103.9 kB / 0.9422 GB, free: 3.617 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.001943/1.164, allocations: 0.8914 MB / 0.9431 GB, free: 2.715 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006201/1.164, allocations: 264.7 kB / 0.9433 GB, free: 2.453 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01194/1.176, allocations: 5.254 MB / 0.9484 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-05/1.176, allocations: 35.98 kB / 0.9485 GB, free: 13.09 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/1.176, allocations: 7.938 kB / 0.9485 GB, free: 13.08 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.433e-05/1.176, allocations: 11.95 kB / 0.9485 GB, free: 13.07 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/1.193, allocations: 8.814 MB / 0.9571 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/1.193, allocations: 0 / 0.9571 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003521/1.197, allocations: 0.7176 MB / 0.9578 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008315/1.198, allocations: 264.6 kB / 0.9581 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003111/1.198, allocations: 71.94 kB / 0.9581 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005044/1.203, allocations: 5.242 MB / 0.9632 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.203, allocations: 3.984 kB / 0.9632 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01771/1.221, allocations: 7.525 MB / 0.9706 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/1.223, allocations: 0.7704 MB / 0.9713 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007468/1.224, allocations: 55.89 kB / 0.9714 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003053/1.227, allocations: 391.4 kB / 0.9718 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/1.227, allocations: 169.8 kB / 0.9719 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002899/1.227, allocations: 95.86 kB / 0.972 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002643/1.23, allocations: 1.692 MB / 0.9737 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/1.23, allocations: 0 / 0.9737 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002908/1.233, allocations: 0.9699 MB / 0.9746 GB, free: 1.727 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.002504/1.235, allocations: 1.033 MB / 0.9756 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01046/1.246, allocations: 4.585 MB / 0.9801 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/1.246, allocations: 0.6875 kB / 0.9801 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.005479/1.251, allocations: 2.607 MB / 0.9827 GB, free: 9.812 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/1.254, allocations: 0.647 MB / 0.9833 GB, free: 9.195 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01318/1.268, allocations: 7.437 MB / 0.9906 GB, free: 1.715 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001824/1.269, allocations: 2.299 MB / 0.9928 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001796/1.271, allocations: 303.1 kB / 0.9931 GB, free: 15.09 MB / 0.7637 GB Notification: Performance of SimCode: time 9.52e-07/1.271, allocations: 0 / 0.9931 GB, free: 15.09 MB / 0.7637 GB Notification: Performance of Templates: time 0.6308/1.902, allocations: 79.34 MB / 1.071 GB, free: 306.8 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