Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00173/0.00173, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00208/0.00208, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2226/0.2226, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 84.05 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1156, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.004293/0.12, allocations: 2.03 MB / 482.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00275/0.1228, allocations: 1.111 MB / 483.4 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002633/0.1231, allocations: 3.938 kB / 483.4 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004384/0.1236, allocations: 47.7 kB / 483.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004566/0.1241, allocations: 111.4 kB / 483.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.1244, allocations: 111.6 kB / 483.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003519/0.1248, allocations: 203.4 kB / 483.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.1249, allocations: 29.66 kB / 483.9 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.1251, allocations: 83.64 kB / 483.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.1253, allocations: 79.61 kB / 484 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.682e-05/0.1253, allocations: 12 kB / 484 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.1255, allocations: 51.98 kB / 484.1 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.788e-05/0.1256, allocations: 39.78 kB / 484.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.1257, allocations: 75.58 kB / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003818/0.1261, allocations: 187.6 kB / 484.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1262, allocations: 0 / 484.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1262, allocations: 4 kB / 484.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.1262, allocations: 0 / 484.4 MB, free: 0.9609 MB / 350.1 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.001251/0.1274, allocations: 0.5682 MB / 484.9 MB, free: 340 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.1275, allocations: 11.97 kB / 485 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.236e-05/0.1276, allocations: 42.73 kB / 485 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.1277, allocations: 16.75 kB / 485 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.1281, allocations: 248.8 kB / 485.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1282, allocations: 8.312 kB / 485.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.1282, allocations: 19.92 kB / 485.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004387/0.1287, allocations: 150.8 kB / 485.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1287, allocations: 4 kB / 485.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.1287, allocations: 0 / 485.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.1287, allocations: 3.984 kB / 485.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004628/0.1292, allocations: 115.8 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.1299, allocations: 0.5438 MB / 486.1 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006858/0.1306, allocations: 170.5 kB / 486.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/0.1308, allocations: 72.8 kB / 486.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.1309, allocations: 0 / 486.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004405/0.1313, allocations: 135.2 kB / 486.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.1313, allocations: 0 / 486.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009486/0.1323, allocations: 269.1 kB / 486.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.1323, allocations: 55.39 kB / 486.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.1326, allocations: 228.2 kB / 487 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.1327, allocations: 37.69 kB / 487 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.377e-05/0.1328, allocations: 124.3 kB / 487.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.1328, allocations: 39.58 kB / 487.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.99e-05/0.1329, allocations: 37.7 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.133, allocations: 326.8 kB / 487.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002609/0.1333, allocations: 67.94 kB / 487.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.1336, allocations: 110.3 kB / 487.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005278/0.1341, allocations: 196.9 kB / 487.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1341, allocations: 0 / 487.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006828/0.1348, allocations: 255.1 kB / 488.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.1349, allocations: 33.7 kB / 488.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1349, allocations: 0 / 488.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1349, allocations: 3.938 kB / 488.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.1351, allocations: 43.91 kB / 488.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1351, allocations: 0 / 488.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00019/0.1353, allocations: 31.81 kB / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.1353, allocations: 8 kB / 488.3 MB, free: 12.72 MB / 366.1 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 ($PRE.t_new.nextTimeEvent,$whenCondition2,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.1355, allocations: 141.8 kB / 488.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.891e-05/0.1355, allocations: 19.72 kB / 488.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.657e-05/0.1356, allocations: 25.39 kB / 488.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.1356, allocations: 3.938 kB / 488.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.221e-05/0.1356, allocations: 7.938 kB / 488.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1356, allocations: 0 / 488.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.1359, allocations: 241.4 kB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1359, allocations: 0 / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.136, allocations: 23.97 kB / 488.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.1361, allocations: 4 kB / 488.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.1361, allocations: 4 kB / 488.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1361, allocations: 3.938 kB / 488.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1361, allocations: 0 / 488.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008773/0.137, allocations: 304.7 kB / 489.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.116e-05/0.1371, allocations: 92.86 kB / 489.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.1371, allocations: 7.984 kB / 489.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.1373, allocations: 31.84 kB / 489.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.1374, allocations: 11.98 kB / 489.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.1374, allocations: 4 kB / 489.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001675/0.1376, allocations: 177.7 kB / 489.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1376, allocations: 0 / 489.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002635/0.1378, allocations: 43.98 kB / 489.4 MB, free: 11.5 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002531/0.1404, allocations: 1.138 MB / 490.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006563/0.141, allocations: 219.3 kB / 490.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1411, allocations: 0 / 490.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002778/0.1413, allocations: 83.86 kB / 490.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.1417, allocations: 46.08 kB / 490.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003908/0.1456, allocations: 2.176 MB / 493.1 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.146, allocations: 0.728 MB / 493.8 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.1461, allocations: 21.53 kB / 493.8 MB, free: 7.082 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.1462, allocations: 55.41 kB / 493.9 MB, free: 7.027 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1462, allocations: 7.938 kB / 493.9 MB, free: 7.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.1751, allocations: 4.917 MB / 498.8 MB, free: 2.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.316/8.491, allocations: 13.34 kB / 498.8 MB, free: 2.18 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Tables_CombiTimeTable_Test14_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1)