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.002264/0.002267, allocations: 188.8 kB / 16.4 MB, free: 5.625 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.228/2.228, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001201/0.001201, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3137/0.3137, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004995/0.0004998, allocations: 16 kB / 431.5 MB, free: 20.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1589, allocations: 58.86 MB / 490.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.004837/0.1638, allocations: 1.654 MB / 492 MB, free: 7.566 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003374/0.1672, allocations: 0.8123 MB / 492.8 MB, free: 6.746 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002357/0.1675, allocations: 7.938 kB / 492.8 MB, free: 6.738 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004836/0.168, allocations: 31.83 kB / 492.8 MB, free: 6.707 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004944/0.1686, allocations: 55.8 kB / 492.9 MB, free: 6.652 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000799/0.1694, allocations: 103.7 kB / 493 MB, free: 6.551 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005464/0.17, allocations: 131.7 kB / 493.1 MB, free: 6.422 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.1702, allocations: 25.66 kB / 493.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003061/0.1705, allocations: 67.69 kB / 493.2 MB, free: 6.328 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.1708, allocations: 63.7 kB / 493.3 MB, free: 6.266 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.308e-05/0.1709, allocations: 7.984 kB / 493.3 MB, free: 6.258 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.1711, allocations: 31.98 kB / 493.3 MB, free: 6.227 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.1713, allocations: 31.91 kB / 493.3 MB, free: 6.195 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.1714, allocations: 49.58 kB / 493.4 MB, free: 6.141 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004833/0.1719, allocations: 139.9 kB / 493.5 MB, free: 6.004 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.172, allocations: 0 / 493.5 MB, free: 6.004 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.172, allocations: 3.938 kB / 493.5 MB, free: 6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.172, allocations: 0 / 493.5 MB, free: 6 MB / 330.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.002096/0.1741, allocations: 0.5332 MB / 494.1 MB, free: 5.406 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.316e-05/0.1742, allocations: 8.031 kB / 494.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.1744, allocations: 42.55 kB / 494.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.1745, allocations: 27.67 kB / 494.1 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006888/0.1752, allocations: 243.5 kB / 494.4 MB, free: 5.039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.506e-05/0.1753, allocations: 11.98 kB / 494.4 MB, free: 5.027 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.195e-05/0.1754, allocations: 4 kB / 494.4 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.1766, allocations: 162.8 kB / 494.6 MB, free: 4.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.1766, allocations: 0 / 494.6 MB, free: 4.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.1767, allocations: 8 kB / 494.6 MB, free: 4.844 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.1767, allocations: 7.938 kB / 494.6 MB, free: 4.836 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008345/0.1775, allocations: 135.8 kB / 494.7 MB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00097/0.1785, allocations: 0.5438 MB / 495.2 MB, free: 4.102 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.1797, allocations: 186.5 kB / 495.4 MB, free: 3.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.321e-05/0.1798, allocations: 8.125 kB / 495.4 MB, free: 3.902 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007054/0.1805, allocations: 143.3 kB / 495.6 MB, free: 3.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 3.627e-06/0.1805, allocations: 0 / 495.6 MB, free: 3.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.001612/0.1822, allocations: 301.1 kB / 495.9 MB, free: 3.449 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.1823, allocations: 55.41 kB / 495.9 MB, free: 3.383 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003749/0.1827, allocations: 227.1 kB / 496.1 MB, free: 3.148 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/0.1827, allocations: 29.7 kB / 496.2 MB, free: 3.113 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.1829, allocations: 174.8 kB / 496.3 MB, free: 2.941 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.486e-05/0.1829, allocations: 43.67 kB / 496.4 MB, free: 2.898 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.391e-05/0.183, allocations: 0 / 496.4 MB, free: 2.898 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1831, allocations: 318.8 kB / 496.7 MB, free: 2.578 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.1836, allocations: 75.94 kB / 496.8 MB, free: 2.504 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.1842, allocations: 120.2 kB / 496.9 MB, free: 2.371 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/0.1847, allocations: 105.7 kB / 497 MB, free: 2.262 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.1847, allocations: 3.953 kB / 497 MB, free: 2.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00119/0.1859, allocations: 271.1 kB / 497.3 MB, free: 1.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.209e-05/0.186, allocations: 33.73 kB / 497.3 MB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.1861, allocations: 4 kB / 497.3 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.1861, allocations: 3.984 kB / 497.3 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/0.1864, allocations: 47.91 kB / 497.3 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1865, allocations: 0 / 497.3 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003638/0.1868, allocations: 39.81 kB / 497.4 MB, free: 1.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.644e-05/0.1869, allocations: 12 kB / 497.4 MB, free: 1.836 MB / 330.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.0002053/0.1871, allocations: 129.8 kB / 497.5 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.1872, allocations: 19.77 kB / 497.5 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.903e-05/0.1873, allocations: 29.31 kB / 497.6 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1873, allocations: 0 / 497.6 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.1873, allocations: 4 kB / 497.6 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1873, allocations: 0 / 497.6 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/0.1876, allocations: 233.5 kB / 497.8 MB, free: 1.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1877, allocations: 0 / 497.8 MB, free: 1.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.188, allocations: 43.86 kB / 497.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.188, allocations: 0 / 497.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.1881, allocations: 0 / 497.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.877e-06/0.1881, allocations: 4 kB / 497.9 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1881, allocations: 0 / 497.9 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.1897, allocations: 336.7 kB / 498.2 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.1899, allocations: 100.9 kB / 498.3 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.722e-05/0.19, allocations: 11.95 kB / 498.3 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003227/0.1903, allocations: 32.03 kB / 498.3 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.1904, allocations: 15.97 kB / 498.3 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.1905, allocations: 8 kB / 498.3 MB, free: 0.793 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002499/0.1908, allocations: 164.5 kB / 498.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1908, allocations: 0 / 498.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004047/0.1912, allocations: 40 kB / 498.5 MB, free: 0.5938 MB / 330.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.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * 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.003219/0.1944, allocations: 1.186 MB / 499.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.1957, allocations: 243.3 kB / 500 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.1957, allocations: 0 / 500 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005309/0.1963, allocations: 96.05 kB / 0.4883 GB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004667/0.1968, allocations: 35.92 kB / 0.4884 GB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004016/0.2008, allocations: 1.789 MB / 0.4901 GB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.2012, allocations: 0.7283 MB / 0.4908 GB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.2014, allocations: 51.41 kB / 0.4909 GB, free: 12.39 MB / 346.7 MB Notification: Performance of SimCode: time 1.093e-06/0.2015, allocations: 4 kB / 0.4909 GB, free: 12.39 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.062/3.264, allocations: 3.501 MB / 0.4943 GB, free: 8.895 MB / 346.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)