Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test45.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.Test45,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test45",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test45,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test45",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.002189/0.002189, allocations: 180.3 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001388/0.001388, allocations: 95.61 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3977/0.3977, allocations: 43.5 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 4.914e-05/4.928e-05, allocations: 8.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4538/0.4539, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2046/0.6586, allocations: 86.97 MB / 0.5509 GB, free: 12.24 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.659, allocations: 71.97 kB / 0.551 GB, free: 12.17 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02516/0.6842, allocations: 5.406 MB / 0.5563 GB, free: 6.77 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.6842, allocations: 0 / 0.5563 GB, free: 6.77 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.057e-05/0.6843, allocations: 7.938 kB / 0.5563 GB, free: 6.762 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006331/0.6849, allocations: 398.8 kB / 0.5567 GB, free: 6.328 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.685, allocations: 8.031 kB / 0.5567 GB, free: 6.32 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.269e-05/0.685, allocations: 7.906 kB / 0.5567 GB, free: 6.312 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.6855, allocations: 223.4 kB / 0.5569 GB, free: 6.051 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.6855, allocations: 4 kB / 0.5569 GB, free: 6.047 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.6856, allocations: 0 / 0.5569 GB, free: 6.047 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001025/0.6857, allocations: 23.98 kB / 0.5569 GB, free: 6.023 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.6858, allocations: 49.67 kB / 0.557 GB, free: 5.969 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.6858, allocations: 0 / 0.557 GB, free: 5.969 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.6859, allocations: 3.984 kB / 0.557 GB, free: 5.965 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.6859, allocations: 3.938 kB / 0.557 GB, free: 5.961 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004781/0.6864, allocations: 269.5 kB / 0.5572 GB, free: 5.66 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.6865, allocations: 54.69 kB / 0.5573 GB, free: 5.598 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.423e-05/0.6866, allocations: 16.98 kB / 0.5573 GB, free: 5.578 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.6866, allocations: 0 / 0.5573 GB, free: 5.578 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001796/0.6868, allocations: 67.33 kB / 0.5574 GB, free: 5.5 MB / 395.1 MB Notification: Performance of pre-optimization done (n=6): time 2.044e-06/0.6868, allocations: 0 / 0.5574 GB, free: 5.5 MB / 395.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006156/0.6875, allocations: 149.3 kB / 0.5575 GB, free: 5.348 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.6876, allocations: 59.33 kB / 0.5576 GB, free: 5.277 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.6878, allocations: 190.3 kB / 0.5577 GB, free: 5.078 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.6879, allocations: 29.7 kB / 0.5578 GB, free: 5.043 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.403e-05/0.688, allocations: 162.6 kB / 0.5579 GB, free: 4.883 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.238e-05/0.688, allocations: 23.64 kB / 0.558 GB, free: 4.859 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-06/0.6881, allocations: 0 / 0.558 GB, free: 4.859 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.6882, allocations: 314.8 kB / 0.5583 GB, free: 4.543 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.998e-05/0.6883, allocations: 27.94 kB / 0.5583 GB, free: 4.516 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.666e-05/0.6884, allocations: 33.7 kB / 0.5583 GB, free: 4.477 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.986e-05/0.6885, allocations: 16 kB / 0.5583 GB, free: 4.461 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.6885, allocations: 0 / 0.5583 GB, free: 4.461 MB / 395.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002209/0.6887, allocations: 85.73 kB / 0.5584 GB, free: 4.371 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.6888, allocations: 11.94 kB / 0.5584 GB, free: 4.359 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.6888, allocations: 0 / 0.5584 GB, free: 4.359 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.6888, allocations: 0 / 0.5584 GB, free: 4.359 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.689, allocations: 20.03 kB / 0.5584 GB, free: 4.34 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.689, allocations: 0 / 0.5584 GB, free: 4.34 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.55e-05/0.6891, allocations: 3.984 kB / 0.5584 GB, free: 4.336 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.6891, allocations: 7.953 kB / 0.5584 GB, free: 4.328 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0001029/0.6892, allocations: 105 kB / 0.5585 GB, free: 4.219 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002312/0.6895, allocations: 101.4 kB / 0.5586 GB, free: 4.113 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.6895, allocations: 7.906 kB / 0.5587 GB, free: 4.105 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.6898, allocations: 103.5 kB / 0.5588 GB, free: 4 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.6899, allocations: 8 kB / 0.5588 GB, free: 3.992 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.6899, allocations: 7.938 kB / 0.5588 GB, free: 3.984 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.6899, allocations: 0 / 0.5588 GB, free: 3.984 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006256/0.6905, allocations: 375.9 kB / 0.5591 GB, free: 3.57 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.6906, allocations: 3.984 kB / 0.5591 GB, free: 3.566 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.676e-05/0.6907, allocations: 15.94 kB / 0.5591 GB, free: 3.551 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.6907, allocations: 0 / 0.5591 GB, free: 3.551 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.6907, allocations: 0 / 0.5591 GB, free: 3.551 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.6907, allocations: 4.234 kB / 0.5591 GB, free: 3.547 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6907, allocations: 8.031 kB / 0.5592 GB, free: 3.539 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/0.6911, allocations: 209.9 kB / 0.5594 GB, free: 3.309 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.132e-05/0.6912, allocations: 96.91 kB / 0.5594 GB, free: 3.195 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.6912, allocations: 7.953 kB / 0.5595 GB, free: 3.188 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.6913, allocations: 0 / 0.5595 GB, free: 3.188 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.6914, allocations: 15.92 kB / 0.5595 GB, free: 3.172 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.6914, allocations: 8 kB / 0.5595 GB, free: 3.164 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001905/0.6916, allocations: 144.9 kB / 0.5596 GB, free: 3.023 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6916, allocations: 0 / 0.5596 GB, free: 3.023 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003941/0.692, allocations: 27.94 kB / 0.5596 GB, free: 2.996 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001767/0.6938, allocations: 1.113 MB / 0.5607 GB, free: 1.902 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002146/0.6941, allocations: 55.94 kB / 0.5608 GB, free: 1.848 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6941, allocations: 0 / 0.5608 GB, free: 1.848 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 8.407e-05/0.6942, allocations: 27.94 kB / 0.5608 GB, free: 1.82 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004198/0.6946, allocations: 31.92 kB / 0.5608 GB, free: 1.793 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008502/0.6955, allocations: 253 kB / 0.5611 GB, free: 1.504 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004109/0.6959, allocations: 0.712 MB / 0.5618 GB, free: 0.7656 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.6961, allocations: 35.42 kB / 0.5618 GB, free: 0.7305 MB / 395.1 MB Notification: Performance of SimCode: time 1.302e-06/0.6961, allocations: 0 / 0.5618 GB, free: 0.7305 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.844/3.54, allocations: 2.519 MB / 0.5643 GB, free: 14.22 MB / 411.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test45.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test45.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test45.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test45.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test45_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test45_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test45.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test45.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test45_res.mat does not exist to compare? outputFormat=mat