Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.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.Test2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test2",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.001437/0.001437, allocations: 180.2 kB / 8.366 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.068/2.068, 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.001107/0.001106, allocations: 86.66 kB / 262.1 MB, free: 13.87 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.3418/0.3418, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.325e-05/2.32e-05, allocations: 8.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.417, allocations: 58.85 MB / 477.2 MB, free: 5.137 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1698/0.5869, allocations: 86.92 MB / 0.5509 GB, free: 12.28 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003298/0.5873, allocations: 75.95 kB / 0.551 GB, free: 12.2 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02444/0.6117, allocations: 5.142 MB / 0.556 GB, free: 7.066 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6118, allocations: 0 / 0.556 GB, free: 7.066 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.099e-05/0.6118, allocations: 7.938 kB / 0.556 GB, free: 7.059 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.0006698/0.6125, allocations: 390.9 kB / 0.5564 GB, free: 6.633 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.6126, allocations: 8.031 kB / 0.5564 GB, free: 6.625 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.425e-05/0.6127, allocations: 7.906 kB / 0.5564 GB, free: 6.617 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004638/0.6131, allocations: 215.4 kB / 0.5566 GB, free: 6.363 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.6132, allocations: 0 / 0.5566 GB, free: 6.363 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.6132, allocations: 0 / 0.5566 GB, free: 6.363 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001166/0.6134, allocations: 20 kB / 0.5566 GB, free: 6.344 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.6135, allocations: 57.61 kB / 0.5567 GB, free: 6.281 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.6135, allocations: 0 / 0.5567 GB, free: 6.281 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.6136, allocations: 0 / 0.5567 GB, free: 6.281 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.6136, allocations: 0 / 0.5567 GB, free: 6.281 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005337/0.6141, allocations: 269.4 kB / 0.5569 GB, free: 5.98 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.6143, allocations: 50.62 kB / 0.557 GB, free: 5.922 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.774e-05/0.6144, allocations: 20.98 kB / 0.557 GB, free: 5.898 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.6144, allocations: 3.938 kB / 0.557 GB, free: 5.895 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000183/0.6146, allocations: 63.39 kB / 0.557 GB, free: 5.82 MB / 395.1 MB Notification: Performance of pre-optimization done (n=6): time 2.104e-06/0.6146, allocations: 0 / 0.557 GB, free: 5.82 MB / 395.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006255/0.6153, allocations: 145.3 kB / 0.5572 GB, free: 5.672 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.6153, allocations: 51.41 kB / 0.5572 GB, free: 5.609 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000227/0.6156, allocations: 151.2 kB / 0.5574 GB, free: 5.449 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.6156, allocations: 33.7 kB / 0.5574 GB, free: 5.41 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.539e-05/0.6157, allocations: 162.5 kB / 0.5576 GB, free: 5.25 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.6157, allocations: 23.7 kB / 0.5576 GB, free: 5.227 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-06/0.6158, allocations: 0 / 0.5576 GB, free: 5.227 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.6159, allocations: 314.8 kB / 0.5579 GB, free: 4.91 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.786e-05/0.616, allocations: 16 kB / 0.5579 GB, free: 4.895 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.609e-05/0.6161, allocations: 37.69 kB / 0.5579 GB, free: 4.852 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.506e-05/0.6162, allocations: 20 kB / 0.558 GB, free: 4.832 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.6162, allocations: 4 kB / 0.558 GB, free: 4.828 MB / 395.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002287/0.6164, allocations: 89.52 kB / 0.558 GB, free: 4.734 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.6165, allocations: 8 kB / 0.5581 GB, free: 4.727 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.6165, allocations: 0 / 0.5581 GB, free: 4.727 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.6165, allocations: 0 / 0.5581 GB, free: 4.727 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.6167, allocations: 12 kB / 0.5581 GB, free: 4.715 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.6167, allocations: 7.984 kB / 0.5581 GB, free: 4.707 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.861e-05/0.6168, allocations: 0 / 0.5581 GB, free: 4.707 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.6168, allocations: 7.953 kB / 0.5581 GB, free: 4.699 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.0001131/0.617, allocations: 113 kB / 0.5582 GB, free: 4.582 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002339/0.6172, allocations: 89.58 kB / 0.5583 GB, free: 4.488 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.6172, allocations: 11.89 kB / 0.5583 GB, free: 4.477 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003255/0.6176, allocations: 110.2 kB / 0.5584 GB, free: 4.359 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.6176, allocations: 0 / 0.5584 GB, free: 4.359 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.6176, allocations: 3.953 kB / 0.5584 GB, free: 4.355 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.6176, allocations: 288 / 0.5584 GB, free: 4.355 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006821/0.6183, allocations: 371.8 kB / 0.5587 GB, free: 3.945 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.6184, allocations: 4 kB / 0.5588 GB, free: 3.941 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.677e-05/0.6185, allocations: 11.94 kB / 0.5588 GB, free: 3.93 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.6185, allocations: 0 / 0.5588 GB, free: 3.93 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.6185, allocations: 4 kB / 0.5588 GB, free: 3.926 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.6185, allocations: 3.953 kB / 0.5588 GB, free: 3.922 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.6185, allocations: 3.984 kB / 0.5588 GB, free: 3.918 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000318/0.6189, allocations: 210 kB / 0.559 GB, free: 3.688 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.867e-05/0.6189, allocations: 89.02 kB / 0.5591 GB, free: 3.582 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.487e-05/0.619, allocations: 3.953 kB / 0.5591 GB, free: 3.578 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.6191, allocations: 7.984 kB / 0.5591 GB, free: 3.57 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.6192, allocations: 7.938 kB / 0.5591 GB, free: 3.562 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.6192, allocations: 8 kB / 0.5591 GB, free: 3.555 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001512/0.6194, allocations: 124.5 kB / 0.5592 GB, free: 3.434 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6194, allocations: 4 kB / 0.5592 GB, free: 3.43 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.000403/0.6198, allocations: 27.94 kB / 0.5592 GB, free: 3.402 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.001827/0.6217, allocations: 1.111 MB / 0.5603 GB, free: 2.312 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002483/0.622, allocations: 51.98 kB / 0.5604 GB, free: 2.262 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.622, allocations: 4.062 kB / 0.5604 GB, free: 2.258 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 9.466e-05/0.6221, allocations: 27.94 kB / 0.5604 GB, free: 2.23 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004585/0.6226, allocations: 23.84 kB / 0.5604 GB, free: 2.207 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000811/0.6234, allocations: 233.1 kB / 0.5606 GB, free: 1.934 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.6238, allocations: 0.7002 MB / 0.5613 GB, free: 1.207 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.624, allocations: 35.48 kB / 0.5614 GB, free: 1.172 MB / 395.1 MB Notification: Performance of SimCode: time 1.142e-06/0.624, allocations: 0 / 0.5614 GB, free: 1.172 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.622/3.246, allocations: 2.33 MB / 0.5636 GB, free: 14.85 MB / 411.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test2_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2_res.mat does not exist to compare? outputFormat=mat