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.001719/0.001719, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002007/0.002007, allocations: 204.6 kB / 18.73 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 247 MB, free: 10.45 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.2521/0.2521, allocations: 46.11 MB / 344.3 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.002312/0.002312, allocations: 79.88 kB / 480.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3221, allocations: 62.45 MB / 0.5307 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.003411/0.3256, allocations: 2.035 MB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.3274, allocations: 1.101 MB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.3276, allocations: 5.938 kB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.3279, allocations: 49.81 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003257/0.3282, allocations: 112 kB / 0.5339 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.3285, allocations: 111.5 kB / 0.534 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003004/0.3288, allocations: 206.6 kB / 0.5342 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.329, allocations: 31.25 kB / 0.5342 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.3291, allocations: 81.03 kB / 0.5343 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.3292, allocations: 85.17 kB / 0.5344 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.3293, allocations: 12.12 kB / 0.5344 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.3294, allocations: 55.3 kB / 0.5344 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.863e-05/0.3295, allocations: 40.12 kB / 0.5345 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.292e-05/0.3296, allocations: 75.36 kB / 0.5346 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003136/0.3299, allocations: 195.7 kB / 0.5347 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3299, allocations: 1.188 kB / 0.5347 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3299, allocations: 3.938 kB / 0.5347 GB, free: 10.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.3299, allocations: 0 / 0.5347 GB, free: 10.19 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.001081/0.331, allocations: 0.5721 MB / 0.5353 GB, free: 9.629 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.3311, allocations: 9.625 kB / 0.5353 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.784e-05/0.3311, allocations: 41.48 kB / 0.5353 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.811e-05/0.3312, allocations: 18.47 kB / 0.5354 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.3316, allocations: 256.5 kB / 0.5356 GB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.3317, allocations: 8.5 kB / 0.5356 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.109e-05/0.3317, allocations: 13.44 kB / 0.5356 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.3321, allocations: 145.7 kB / 0.5358 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.3321, allocations: 1.375 kB / 0.5358 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.3322, allocations: 4 kB / 0.5358 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.3322, allocations: 2.75 kB / 0.5358 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004643/0.3327, allocations: 118.9 kB / 0.5359 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.3334, allocations: 0.5395 MB / 0.5364 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006766/0.334, allocations: 163.8 kB / 0.5366 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002583/0.3343, allocations: 72.61 kB / 0.5366 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.3343, allocations: 6.844 kB / 0.5367 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004079/0.3348, allocations: 136.5 kB / 0.5368 GB, free: 8.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.823e-06/0.3348, allocations: 0 / 0.5368 GB, free: 8.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.000923/0.3357, allocations: 257 kB / 0.537 GB, free: 8.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.3358, allocations: 57.75 kB / 0.5371 GB, free: 8.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.336, allocations: 241.1 kB / 0.5373 GB, free: 7.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.3361, allocations: 27.89 kB / 0.5373 GB, free: 7.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3362, allocations: 125.1 kB / 0.5375 GB, free: 7.828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.491e-05/0.3362, allocations: 44.58 kB / 0.5375 GB, free: 7.789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.378e-05/0.3363, allocations: 41.83 kB / 0.5375 GB, free: 7.754 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3365, allocations: 335.5 kB / 0.5379 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002818/0.3368, allocations: 64.41 kB / 0.5379 GB, free: 7.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002884/0.3371, allocations: 105.5 kB / 0.538 GB, free: 7.316 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005476/0.3376, allocations: 204 kB / 0.5382 GB, free: 7.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3376, allocations: 0 / 0.5382 GB, free: 7.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006789/0.3383, allocations: 257.2 kB / 0.5385 GB, free: 7.016 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.618e-05/0.3384, allocations: 32.39 kB / 0.5385 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.3384, allocations: 1.25 kB / 0.5385 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.3384, allocations: 10.56 kB / 0.5385 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.3386, allocations: 40.8 kB / 0.5385 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.3386, allocations: 2.625 kB / 0.5385 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.3388, allocations: 30.05 kB / 0.5386 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.3389, allocations: 4.562 kB / 0.5386 GB, free: 6.945 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.0001406/0.339, allocations: 142.5 kB / 0.5387 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.339, allocations: 19.97 kB / 0.5387 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.133e-05/0.3391, allocations: 23.33 kB / 0.5388 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3391, allocations: 5.344 kB / 0.5388 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3391, allocations: 0 / 0.5388 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3392, allocations: 1.562 kB / 0.5388 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.3394, allocations: 235.7 kB / 0.539 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3394, allocations: 1.031 kB / 0.539 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.3396, allocations: 23.31 kB / 0.539 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3396, allocations: 1.094 kB / 0.539 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.3396, allocations: 5.219 kB / 0.539 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.699e-06/0.3397, allocations: 9 kB / 0.539 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3397, allocations: 7.922 kB / 0.539 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009292/0.3406, allocations: 302.8 kB / 0.5393 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/0.3407, allocations: 97.48 kB / 0.5394 GB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.3408, allocations: 5.125 kB / 0.5394 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3409, allocations: 24.34 kB / 0.5394 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.928e-05/0.341, allocations: 14.89 kB / 0.5395 GB, free: 6.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.341, allocations: 7.109 kB / 0.5395 GB, free: 6.176 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001805/0.3412, allocations: 176.1 kB / 0.5396 GB, free: 6.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3412, allocations: 1.062 kB / 0.5396 GB, free: 6.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002623/0.3415, allocations: 41.44 kB / 0.5397 GB, free: 6.043 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.0026/0.3441, allocations: 1.131 MB / 0.5408 GB, free: 5.215 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008026/0.3449, allocations: 221.5 kB / 0.541 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3449, allocations: 0 / 0.541 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003343/0.3453, allocations: 85.69 kB / 0.5411 GB, free: 5.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.3456, allocations: 52.27 kB / 0.5411 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003541/0.3492, allocations: 2.18 MB / 0.5432 GB, free: 3.293 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.3496, allocations: 0.7263 MB / 0.544 GB, free: 2.574 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.3497, allocations: 29.45 kB / 0.544 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.3498, allocations: 54.44 kB / 0.544 GB, free: 2.516 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3499, allocations: 0 / 0.544 GB, free: 2.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02934/0.3792, allocations: 5.021 MB / 0.5489 GB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.154/8.533, allocations: 11.8 kB / 0.549 GB, free: 14.64 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1)