Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002338/0.002338, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.231/2.231, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 92.42 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.53/0.53, allocations: 43.56 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006398/0.0006399, allocations: 20 kB / 431.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1286, allocations: 58.84 MB / 490.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5018/0.6305, allocations: 89.45 MB / 0.5662 GB, free: 12.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004304/0.631, allocations: 79.95 kB / 0.5663 GB, free: 12.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03473/0.6657, allocations: 4.845 MB / 0.571 GB, free: 8.035 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.6658, allocations: 4.547 kB / 0.571 GB, free: 8.031 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.521e-05/0.6658, allocations: 4 kB / 0.571 GB, free: 8.027 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001979/0.6678, allocations: 0.5713 MB / 0.5716 GB, free: 7.398 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.877e-05/0.6679, allocations: 12.03 kB / 0.5716 GB, free: 7.387 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.6681, allocations: 39.67 kB / 0.5716 GB, free: 7.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.6682, allocations: 33.72 kB / 0.5716 GB, free: 7.312 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007351/0.669, allocations: 239.6 kB / 0.5719 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.669, allocations: 8 kB / 0.5719 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.299e-05/0.6691, allocations: 4 kB / 0.5719 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.6702, allocations: 161.9 kB / 0.572 GB, free: 6.852 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.6702, allocations: 0 / 0.572 GB, free: 6.852 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.6703, allocations: 8 kB / 0.572 GB, free: 6.844 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.6703, allocations: 1.031 kB / 0.572 GB, free: 6.844 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.6715, allocations: 139.8 kB / 0.5722 GB, free: 6.707 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.6734, allocations: 0.5945 MB / 0.5728 GB, free: 6.055 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.6751, allocations: 189.5 kB / 0.5729 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.6752, allocations: 0 / 0.5729 GB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/0.6762, allocations: 155.4 kB / 0.5731 GB, free: 5.699 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 4.167e-06/0.6763, allocations: 0 / 0.5731 GB, free: 5.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.002448/0.6787, allocations: 303 kB / 0.5734 GB, free: 5.398 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.6788, allocations: 55.69 kB / 0.5734 GB, free: 5.332 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004912/0.6794, allocations: 202.3 kB / 0.5736 GB, free: 5.129 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.438e-05/0.6794, allocations: 29.7 kB / 0.5736 GB, free: 5.094 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.6796, allocations: 182.8 kB / 0.5738 GB, free: 4.91 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.272e-05/0.6797, allocations: 39.53 kB / 0.5739 GB, free: 4.871 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.698e-05/0.6798, allocations: 4 kB / 0.5739 GB, free: 4.867 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.68, allocations: 322.8 kB / 0.5742 GB, free: 4.543 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007314/0.6807, allocations: 83.78 kB / 0.5742 GB, free: 4.461 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007974/0.6815, allocations: 120.2 kB / 0.5744 GB, free: 4.328 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007461/0.6823, allocations: 115.2 kB / 0.5745 GB, free: 4.211 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.6823, allocations: 0 / 0.5745 GB, free: 4.211 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001745/0.6841, allocations: 267.2 kB / 0.5747 GB, free: 3.938 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.867e-05/0.6842, allocations: 41.66 kB / 0.5748 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.6842, allocations: 0 / 0.5748 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/0.6843, allocations: 0 / 0.5748 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005442/0.6848, allocations: 39.97 kB / 0.5748 GB, free: 3.852 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/0.6849, allocations: 10.95 kB / 0.5748 GB, free: 3.844 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006008/0.6855, allocations: 39.83 kB / 0.5749 GB, free: 3.805 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.992e-05/0.6856, allocations: 11.98 kB / 0.5749 GB, free: 3.793 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$PRE.t_new.nextTimeEvent,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,err1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000278/0.6859, allocations: 129.8 kB / 0.575 GB, free: 3.656 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.948e-05/0.686, allocations: 15.81 kB / 0.575 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/0.6878, allocations: 253.8 kB / 0.5752 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.6879, allocations: 8 kB / 0.5753 GB, free: 3.379 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.6879, allocations: 0 / 0.5753 GB, free: 3.379 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.6879, allocations: 0 / 0.5753 GB, free: 3.379 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005378/0.6885, allocations: 248.9 kB / 0.5755 GB, free: 3.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.6885, allocations: 1.031 kB / 0.5755 GB, free: 3.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000441/0.6889, allocations: 31.97 kB / 0.5755 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-06/0.689, allocations: 0 / 0.5755 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.689, allocations: 3.984 kB / 0.5755 GB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.689, allocations: 7.953 kB / 0.5755 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.6891, allocations: 4 kB / 0.5755 GB, free: 3.043 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.6915, allocations: 348.7 kB / 0.5759 GB, free: 2.684 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/0.6917, allocations: 96.95 kB / 0.576 GB, free: 2.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.671e-05/0.6918, allocations: 3.984 kB / 0.576 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004934/0.6924, allocations: 31.97 kB / 0.576 GB, free: 2.535 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.6925, allocations: 23.92 kB / 0.576 GB, free: 2.512 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/0.6926, allocations: 7.938 kB / 0.576 GB, free: 2.504 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003942/0.693, allocations: 168.7 kB / 0.5762 GB, free: 2.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.693, allocations: 0 / 0.5762 GB, free: 2.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006787/0.6937, allocations: 51.84 kB / 0.5762 GB, free: 2.289 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004722/0.6984, allocations: 1.201 MB / 0.5774 GB, free: 1.156 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.7003, allocations: 239.2 kB / 0.5776 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.7003, allocations: 0 / 0.5776 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007983/0.7011, allocations: 108 kB / 0.5777 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006971/0.7018, allocations: 35.92 kB / 0.5778 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/0.7078, allocations: 1.819 MB / 0.5796 GB, free: 14.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.7084, allocations: 0.7283 MB / 0.5803 GB, free: 14.13 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000286/0.7087, allocations: 59.41 kB / 0.5803 GB, free: 14.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7087, allocations: 0 / 0.5803 GB, free: 14.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.79/3.498, allocations: 3.527 MB / 0.5838 GB, free: 10.55 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test14_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1)