Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001081/0.001081, allocations: 200.7 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.5 MB / 243.4 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007329/0.0007331, allocations: 96.73 kB / 295.5 MB, free: 6.625 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3047/0.3047, allocations: 44.81 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002976/0.0002979, allocations: 12 kB / 465.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3304, allocations: 62.96 MB / 0.516 GB, free: 37.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.002009/0.3324, allocations: 1.698 MB / 0.5176 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.3339, allocations: 1.043 MB / 0.5186 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.863e-05/0.334, allocations: 0 / 0.5186 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.3343, allocations: 45.16 kB / 0.5187 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002542/0.3346, allocations: 85.95 kB / 0.5188 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002963/0.3349, allocations: 131 kB / 0.5189 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.3351, allocations: 169.8 kB / 0.5191 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.3352, allocations: 40.14 kB / 0.5191 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.3353, allocations: 69.84 kB / 0.5192 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.973e-05/0.3354, allocations: 63.88 kB / 0.5192 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.448e-05/0.3354, allocations: 9.781 kB / 0.5192 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.642e-05/0.3355, allocations: 48.27 kB / 0.5193 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.75e-05/0.3356, allocations: 27.19 kB / 0.5193 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.683e-05/0.3357, allocations: 89.44 kB / 0.5194 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.3358, allocations: 141.7 kB / 0.5195 GB, free: 34.92 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3359, allocations: 0 / 0.5195 GB, free: 34.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3359, allocations: 0 / 0.5195 GB, free: 34.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.3359, allocations: 0 / 0.5195 GB, free: 34.92 MB / 378.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.0007524/0.3366, allocations: 0.5506 MB / 0.5201 GB, free: 34.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3367, allocations: 8.719 kB / 0.5201 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.3367, allocations: 41.03 kB / 0.5201 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.3368, allocations: 17.84 kB / 0.5201 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.337, allocations: 249.7 kB / 0.5204 GB, free: 34.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.337, allocations: 7.188 kB / 0.5204 GB, free: 34.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.3371, allocations: 13.91 kB / 0.5204 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003711/0.3374, allocations: 163.2 kB / 0.5205 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.3375, allocations: 6.625 kB / 0.5205 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.3375, allocations: 0 / 0.5205 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3375, allocations: 2.719 kB / 0.5205 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004233/0.3379, allocations: 140.8 kB / 0.5207 GB, free: 34.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004958/0.3384, allocations: 0.5399 MB / 0.5212 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.339, allocations: 190.6 kB / 0.5214 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002356/0.3393, allocations: 91.25 kB / 0.5215 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.3393, allocations: 0 / 0.5215 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003692/0.3397, allocations: 150 kB / 0.5216 GB, free: 33.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.3397, allocations: 0 / 0.5216 GB, free: 33.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0008241/0.3405, allocations: 304.8 kB / 0.5219 GB, free: 33.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.3406, allocations: 54.41 kB / 0.522 GB, free: 33.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.3408, allocations: 228.2 kB / 0.5222 GB, free: 33.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.3408, allocations: 32.3 kB / 0.5222 GB, free: 33.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.138e-05/0.3409, allocations: 127.1 kB / 0.5223 GB, free: 32.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.3409, allocations: 36.14 kB / 0.5224 GB, free: 32.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-06/0.3409, allocations: 4 kB / 0.5224 GB, free: 32.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.608e-05/0.341, allocations: 335 kB / 0.5227 GB, free: 32.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/0.3412, allocations: 73.06 kB / 0.5228 GB, free: 32.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.3415, allocations: 118.5 kB / 0.5229 GB, free: 32.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004519/0.3419, allocations: 216.8 kB / 0.5231 GB, free: 32.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3419, allocations: 0 / 0.5231 GB, free: 32.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005663/0.3425, allocations: 277.8 kB / 0.5233 GB, free: 32.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.3425, allocations: 35 kB / 0.5234 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3425, allocations: 0 / 0.5234 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3426, allocations: 6.75 kB / 0.5234 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.3427, allocations: 48.95 kB / 0.5234 GB, free: 32.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.3428, allocations: 6.844 kB / 0.5234 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001703/0.3429, allocations: 33.77 kB / 0.5235 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.343, allocations: 12.78 kB / 0.5235 GB, free: 32.17 MB / 378.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 9.075e-05/0.3431, allocations: 131 kB / 0.5236 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.3431, allocations: 23.92 kB / 0.5236 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.3431, allocations: 25.11 kB / 0.5237 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3431, allocations: 7.938 kB / 0.5237 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.3431, allocations: 0 / 0.5237 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3432, allocations: 3.375 kB / 0.5237 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.3433, allocations: 240 kB / 0.5239 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3433, allocations: 0 / 0.5239 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.3435, allocations: 31.7 kB / 0.5239 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3435, allocations: 2.406 kB / 0.5239 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.3435, allocations: 3.234 kB / 0.5239 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3435, allocations: 7.031 kB / 0.5239 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3435, allocations: 0 / 0.5239 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007679/0.3443, allocations: 336.1 kB / 0.5243 GB, free: 31.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.188e-05/0.3443, allocations: 105.8 kB / 0.5244 GB, free: 31.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.3444, allocations: 0 / 0.5244 GB, free: 31.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.3445, allocations: 37.67 kB / 0.5244 GB, free: 31.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.426e-05/0.3446, allocations: 23.47 kB / 0.5244 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.3447, allocations: 9.812 kB / 0.5244 GB, free: 31.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001161/0.3448, allocations: 171.2 kB / 0.5246 GB, free: 31.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3448, allocations: 0 / 0.5246 GB, free: 31.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002282/0.345, allocations: 33.31 kB / 0.5246 GB, free: 31.41 MB / 378.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.001646/0.3467, allocations: 1.166 MB / 0.5258 GB, free: 30.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006167/0.3473, allocations: 248.7 kB / 0.526 GB, free: 30.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3473, allocations: 0 / 0.526 GB, free: 30.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.3476, allocations: 86.91 kB / 0.5261 GB, free: 30.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.348, allocations: 51.94 kB / 0.5261 GB, free: 30.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.3502, allocations: 1.21 MB / 0.5273 GB, free: 29.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.3505, allocations: 0.7268 MB / 0.528 GB, free: 29.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.3506, allocations: 56.86 kB / 0.5281 GB, free: 29.05 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3506, allocations: 0 / 0.5281 GB, free: 29.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.993/3.344, allocations: 3.208 MB / 0.5312 GB, free: 28.73 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test14_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1)