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.001353/0.001353, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 247 MB, free: 10.46 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.2311/0.2311, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.003194/0.003194, allocations: 79.88 kB / 481 MB, free: 4.461 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3645, allocations: 62.46 MB / 0.5307 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.003564/0.3681, allocations: 2.033 MB / 0.5327 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.3699, allocations: 1.112 MB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.3701, allocations: 1.281 kB / 0.5338 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003227/0.3704, allocations: 50.77 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003626/0.3708, allocations: 115.4 kB / 0.5339 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.3711, allocations: 112.4 kB / 0.534 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003063/0.3714, allocations: 201.3 kB / 0.5342 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.3715, allocations: 28.45 kB / 0.5342 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.3717, allocations: 86.08 kB / 0.5343 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.3718, allocations: 78.64 kB / 0.5344 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.3719, allocations: 12.69 kB / 0.5344 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.372, allocations: 52.42 kB / 0.5345 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.788e-05/0.3721, allocations: 35.09 kB / 0.5345 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.3722, allocations: 76.33 kB / 0.5346 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003456/0.3726, allocations: 195.5 kB / 0.5347 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3726, allocations: 0 / 0.5347 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3726, allocations: 1.375 kB / 0.5347 GB, free: 10.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.3726, allocations: 3.938 kB / 0.5348 GB, free: 10.22 MB / 398.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.001018/0.3736, allocations: 0.5751 MB / 0.5353 GB, free: 9.652 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3737, allocations: 9.625 kB / 0.5353 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.82e-05/0.3737, allocations: 45.42 kB / 0.5354 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.759e-05/0.3738, allocations: 18.47 kB / 0.5354 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/0.3742, allocations: 252.5 kB / 0.5356 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.3743, allocations: 12.5 kB / 0.5356 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.3743, allocations: 9.438 kB / 0.5356 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004332/0.3747, allocations: 149.6 kB / 0.5358 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.3748, allocations: 1.375 kB / 0.5358 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.3748, allocations: 9.359 kB / 0.5358 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.3748, allocations: 1.375 kB / 0.5358 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004681/0.3753, allocations: 111.4 kB / 0.5359 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006993/0.376, allocations: 0.5468 MB / 0.5364 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006724/0.3767, allocations: 164.2 kB / 0.5366 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.3769, allocations: 72.73 kB / 0.5367 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.377, allocations: 1.312 kB / 0.5367 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004221/0.3774, allocations: 141.8 kB / 0.5368 GB, free: 8.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.783e-06/0.3774, allocations: 3.938 kB / 0.5368 GB, free: 8.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009613/0.3784, allocations: 257.7 kB / 0.5371 GB, free: 8.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.3785, allocations: 57.72 kB / 0.5371 GB, free: 8.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.3788, allocations: 236.4 kB / 0.5373 GB, free: 7.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.3788, allocations: 31.92 kB / 0.5374 GB, free: 7.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3789, allocations: 128.5 kB / 0.5375 GB, free: 7.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.668e-05/0.379, allocations: 44.78 kB / 0.5375 GB, free: 7.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.866e-05/0.3791, allocations: 34.23 kB / 0.5376 GB, free: 7.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.3793, allocations: 336.6 kB / 0.5379 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.3796, allocations: 63.09 kB / 0.5379 GB, free: 7.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.3799, allocations: 109.8 kB / 0.538 GB, free: 7.328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005304/0.3804, allocations: 196 kB / 0.5382 GB, free: 7.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.951e-05/0.3804, allocations: 4 kB / 0.5382 GB, free: 7.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006875/0.3811, allocations: 257.4 kB / 0.5385 GB, free: 7.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.3812, allocations: 40.62 kB / 0.5385 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3812, allocations: 1.188 kB / 0.5385 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.3812, allocations: 6.062 kB / 0.5385 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.3814, allocations: 36.72 kB / 0.5386 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.3814, allocations: 2.281 kB / 0.5386 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.3816, allocations: 30.27 kB / 0.5386 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.3816, allocations: 4.812 kB / 0.5386 GB, free: 6.957 MB / 398.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.000152/0.3818, allocations: 141.4 kB / 0.5387 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.838e-05/0.3818, allocations: 25.19 kB / 0.5388 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.556e-05/0.3819, allocations: 19.06 kB / 0.5388 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.3819, allocations: 5.969 kB / 0.5388 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3819, allocations: 3.984 kB / 0.5388 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.382, allocations: 0 / 0.5388 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.3822, allocations: 233.1 kB / 0.539 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3822, allocations: 3.984 kB / 0.539 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.3824, allocations: 20.3 kB / 0.539 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.3824, allocations: 5.156 kB / 0.539 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.3824, allocations: 9.203 kB / 0.539 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.3824, allocations: 5.125 kB / 0.539 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3824, allocations: 0 / 0.539 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009148/0.3834, allocations: 305.4 kB / 0.5393 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.286e-05/0.3835, allocations: 93.41 kB / 0.5394 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.3835, allocations: 6.25 kB / 0.5394 GB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.3837, allocations: 23.88 kB / 0.5395 GB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.697e-05/0.3837, allocations: 18.34 kB / 0.5395 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.3838, allocations: 4.312 kB / 0.5395 GB, free: 6.191 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000178/0.3839, allocations: 171.8 kB / 0.5396 GB, free: 6.074 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.384, allocations: 5.312 kB / 0.5396 GB, free: 6.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002614/0.3842, allocations: 40.66 kB / 0.5397 GB, free: 6.059 MB / 398.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.002607/0.3868, allocations: 1.134 MB / 0.5408 GB, free: 5.227 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000674/0.3875, allocations: 217.2 kB / 0.541 GB, free: 5.094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3875, allocations: 4.062 kB / 0.541 GB, free: 5.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002904/0.3878, allocations: 76.88 kB / 0.5411 GB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.3882, allocations: 47.55 kB / 0.5411 GB, free: 5.035 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003838/0.392, allocations: 2.179 MB / 0.5433 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.3925, allocations: 0.73 MB / 0.544 GB, free: 2.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.3926, allocations: 25.23 kB / 0.544 GB, free: 2.578 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.3927, allocations: 51.36 kB / 0.544 GB, free: 2.539 MB / 398.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3927, allocations: 0 / 0.544 GB, free: 2.539 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.4222, allocations: 5.02 MB / 0.5489 GB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.171/8.593, allocations: 7.797 kB / 0.5489 GB, free: 14.65 MB / 414.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)