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.001164/0.001164, allocations: 110.7 kB / 16.41 MB, free: 6.5 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.001213/0.001213, allocations: 183 kB / 17.34 MB, free: 5.758 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8489/0.8489, allocations: 132.2 MB / 423.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.91 kB / 0.582 GB, free: 23.85 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1845, 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.6443/0.8288, allocations: 160.8 MB / 0.8173 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0423/0.8712, allocations: 26.77 MB / 0.8435 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004704/0.8759, allocations: 78 kB / 0.8435 GB, free: 5.113 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003315/0.8794, allocations: 1.016 MB / 0.8445 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.00711/0.8865, allocations: 1.707 MB / 0.8462 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005863/0.8924, allocations: 1.703 MB / 0.8479 GB, free: 1.766 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00837/0.9008, allocations: 4.828 MB / 0.8526 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007549/0.9084, allocations: 4.251 MB / 0.8567 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005521/0.9139, allocations: 2.055 MB / 0.8587 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005725/0.9197, allocations: 2.448 MB / 0.8611 GB, free: 8.105 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001916/0.9216, allocations: 452 kB / 0.8615 GB, free: 7.664 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003903/0.9256, allocations: 1.05 MB / 0.8626 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.002284/0.9279, allocations: 1.165 MB / 0.8637 GB, free: 5.445 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.004506/0.9324, allocations: 2.041 MB / 0.8657 GB, free: 3.395 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.9426, allocations: 5.799 MB / 0.8714 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.9426, allocations: 4 kB / 0.8714 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.863e-06/0.9426, allocations: 0 / 0.8714 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002517/0.9429, allocations: 0 / 0.8714 GB, free: 13.57 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.01499/0.9579, allocations: 4.49 MB / 0.8758 GB, free: 9.008 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.958, allocations: 8.031 kB / 0.8758 GB, free: 9 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01503/0.973, allocations: 2.78 MB / 0.8785 GB, free: 6.211 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006391/0.9794, allocations: 2.29 MB / 0.8807 GB, free: 3.844 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002928/0.9798, allocations: 238.5 kB / 0.8809 GB, free: 3.609 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001411/0.9812, allocations: 316 kB / 0.8812 GB, free: 3.301 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01597/0.9972, allocations: 5.143 MB / 0.8863 GB, free: 14.08 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.9974, allocations: 0 / 0.8863 GB, free: 14.08 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009958/0.9984, allocations: 136 kB / 0.8864 GB, free: 13.95 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.774e-05/0.9985, allocations: 79.94 kB / 0.8865 GB, free: 13.87 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01732/1.016, allocations: 6.288 MB / 0.8926 GB, free: 7.57 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.03537/1.051, allocations: 14.41 MB / 0.9067 GB, free: 8.629 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01827/1.07, allocations: 4.527 MB / 0.9111 GB, free: 4.098 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00935/1.079, allocations: 2.446 MB / 0.9135 GB, free: 1.641 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001509/1.081, allocations: 0.6775 MB / 0.9142 GB, free: 0.832 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009868/1.09, allocations: 2.459 MB / 0.9166 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=270): time 9.358e-06/1.09, allocations: 4 kB / 0.9166 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of matching and sorting (n=270): time 0.02805/1.119, allocations: 7.535 MB / 0.9239 GB, free: 6.668 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/1.119, allocations: 210 kB / 0.9241 GB, free: 6.418 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003965/1.123, allocations: 2.397 MB / 0.9265 GB, free: 3.992 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0007513/1.123, allocations: 77.7 kB / 0.9265 GB, free: 3.91 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.00145/1.125, allocations: 1.345 MB / 0.9278 GB, free: 2.551 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001472/1.126, allocations: 0.8932 MB / 0.9287 GB, free: 1.645 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001848/1.128, allocations: 0.4888 MB / 0.9292 GB, free: 1.148 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.128, allocations: 305.1 kB / 0.9295 GB, free: 0.8477 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006775/1.135, allocations: 1.968 MB / 0.9314 GB, free: 14.88 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00659/1.142, allocations: 2.273 MB / 0.9336 GB, free: 12.53 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/1.154, allocations: 4.224 MB / 0.9378 GB, free: 8.215 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.3e-05/1.154, allocations: 4 kB / 0.9378 GB, free: 8.211 MB / 0.7012 GB Notification: Performance of matching and sorting (n=308) (initialization): time 0.01559/1.17, allocations: 4.963 MB / 0.9426 GB, free: 3.195 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.907e-05/1.17, allocations: 8.094 kB / 0.9426 GB, free: 3.188 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.14e-05/1.17, allocations: 7.938 kB / 0.9426 GB, free: 3.18 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/1.171, allocations: 350.1 kB / 0.943 GB, free: 2.836 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004561/1.176, allocations: 0.7839 MB / 0.9437 GB, free: 2.051 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006453/1.182, allocations: 4.251 MB / 0.9479 GB, free: 13.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004555/1.187, allocations: 0.5302 MB / 0.9484 GB, free: 13.13 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008856/1.188, allocations: 115.9 kB / 0.9485 GB, free: 13.02 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.003241/1.191, allocations: 0.9271 MB / 0.9494 GB, free: 12.08 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.192, allocations: 264.7 kB / 0.9497 GB, free: 11.82 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01646/1.209, allocations: 5.547 MB / 0.9551 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.098e-05/1.209, allocations: 24 kB / 0.9551 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/1.209, allocations: 8 kB / 0.9551 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.584e-05/1.209, allocations: 11.95 kB / 0.9551 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02291/1.232, allocations: 9.294 MB / 0.9642 GB, free: 12.74 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/1.232, allocations: 0 / 0.9642 GB, free: 12.74 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004133/1.236, allocations: 0.7254 MB / 0.9649 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/1.237, allocations: 386.3 kB / 0.9653 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006327/1.238, allocations: 75.92 kB / 0.9653 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007534/1.245, allocations: 6.294 MB / 0.9715 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.245, allocations: 7.938 kB / 0.9715 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02095/1.266, allocations: 7.923 MB / 0.9792 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/1.269, allocations: 0.8054 MB / 0.98 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/1.27, allocations: 59.92 kB / 0.9801 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00382/1.274, allocations: 383.4 kB / 0.9804 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000758/1.275, allocations: 185.9 kB / 0.9806 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005728/1.275, allocations: 95.92 kB / 0.9807 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.003386/1.279, allocations: 1.749 MB / 0.9824 GB, free: 9.625 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.9e-07/1.279, allocations: 4 kB / 0.9824 GB, free: 9.621 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004135/1.283, allocations: 1.028 MB / 0.9834 GB, free: 8.59 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.003062/1.286, allocations: 1.024 MB / 0.9844 GB, free: 7.965 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.01276/1.299, allocations: 4.808 MB / 0.9891 GB, free: 3.113 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.299, allocations: 0.6875 kB / 0.9891 GB, free: 3.113 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.006979/1.306, allocations: 2.753 MB / 0.9918 GB, free: 336 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004949/1.311, allocations: 0.6727 MB / 0.9925 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01883/1.33, allocations: 7.791 MB / 1 GB, free: 7.855 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003101/1.333, allocations: 2.373 MB / 1.002 GB, free: 5.449 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00251/1.335, allocations: 311.1 kB / 1.003 GB, free: 5.145 MB / 0.7637 GB Notification: Performance of SimCode: time 1.823e-06/1.335, allocations: 0 / 1.003 GB, free: 5.145 MB / 0.7637 GB Notification: Performance of Templates: time 0.5804/1.916, allocations: 82.65 MB / 1.083 GB, free: 298.4 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