Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.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.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_KinematicPTP",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.001529/0.001529, allocations: 185.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001321/0.001321, allocations: 104.4 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5169/0.5169, allocations: 43.55 MB / 362.7 MB, free: 51.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004913/0.0004914, allocations: 12 kB / 431.5 MB, free: 5.867 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.135, allocations: 58.85 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4797/0.6147, allocations: 88.19 MB / 0.5649 GB, free: 14.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003568/0.6151, allocations: 67.97 kB / 0.565 GB, free: 14.15 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06519/0.6804, allocations: 11.76 MB / 0.5765 GB, free: 2.406 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.039e-06/0.6804, allocations: 4 kB / 0.5765 GB, free: 2.402 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.549e-05/0.6805, allocations: 11.94 kB / 0.5765 GB, free: 2.391 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.003799/0.6843, allocations: 0.9384 MB / 0.5774 GB, free: 1.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.6844, allocations: 12.03 kB / 0.5774 GB, free: 1.398 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002265/0.6846, allocations: 90.52 kB / 0.5775 GB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.6848, allocations: 63.44 kB / 0.5776 GB, free: 1.238 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007944/0.6856, allocations: 370.2 kB / 0.5779 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006097/0.6862, allocations: 275.1 kB / 0.5782 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.6864, allocations: 43.84 kB / 0.5782 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004235/0.6906, allocations: 0.8721 MB / 0.5791 GB, free: 15.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.727e-05/0.6907, allocations: 7.844 kB / 0.5791 GB, free: 15.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.34e-05/0.6908, allocations: 24 kB / 0.5791 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.6909, allocations: 8.688 kB / 0.5791 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007355/0.6982, allocations: 1.337 MB / 0.5804 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005058/0.7033, allocations: 2.085 MB / 0.5825 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005557/0.7089, allocations: 0.8696 MB / 0.5833 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001872/0.7092, allocations: 4.562 kB / 0.5833 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.7092, allocations: 47.06 kB / 0.5834 GB, free: 11.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.948e-06/0.7093, allocations: 4 kB / 0.5834 GB, free: 11.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.2024/0.9117, allocations: 18.29 MB / 0.6012 GB, free: 8.641 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.9118, allocations: 98.16 kB / 0.6013 GB, free: 8.523 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008005/0.9127, allocations: 364.6 kB / 0.6017 GB, free: 8.164 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000369/0.913, allocations: 45.7 kB / 0.6017 GB, free: 8.113 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002213/0.9133, allocations: 271.5 kB / 0.602 GB, free: 7.844 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000703/0.914, allocations: 406.1 kB / 0.6024 GB, free: 7.441 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003362/0.9143, allocations: 24 kB / 0.6024 GB, free: 7.418 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.9146, allocations: 350.8 kB / 0.6027 GB, free: 7.066 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007811/0.9224, allocations: 1.467 MB / 0.6042 GB, free: 5.598 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008105/0.9305, allocations: 1.611 MB / 0.6057 GB, free: 3.945 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00748/0.9381, allocations: 1.313 MB / 0.607 GB, free: 2.633 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.53e-05/0.9382, allocations: 4 kB / 0.607 GB, free: 2.629 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.01645/0.9546, allocations: 3.059 MB / 0.61 GB, free: 15.56 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.9547, allocations: 10.92 kB / 0.61 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.9547, allocations: 4 kB / 0.61 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.313e-05/0.9548, allocations: 8 kB / 0.61 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005784/0.9606, allocations: 475.6 kB / 0.6105 GB, free: 15.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.045e-05/0.9607, allocations: 8 kB / 0.6105 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004591/0.9653, allocations: 283.7 kB / 0.6108 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003535/0.9657, allocations: 39.98 kB / 0.6108 GB, free: 14.75 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * 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.001103/0.9668, allocations: 237.5 kB / 0.611 GB, free: 14.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006167/0.9675, allocations: 63.16 kB / 0.6111 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005401/0.968, allocations: 112.7 kB / 0.6112 GB, free: 14.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/0.9681, allocations: 12 kB / 0.6112 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.9681, allocations: 0 / 0.6112 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.92e-05/0.9682, allocations: 7.984 kB / 0.6112 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02352/0.9917, allocations: 5.587 MB / 0.6167 GB, free: 8.383 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.968e-05/0.9918, allocations: 24 kB / 0.6167 GB, free: 8.359 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003283/0.9951, allocations: 411.4 kB / 0.6171 GB, free: 7.957 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.637e-05/0.9952, allocations: 36.69 kB / 0.6171 GB, free: 7.922 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002093/0.9955, allocations: 48 kB / 0.6172 GB, free: 7.875 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.534e-05/0.9955, allocations: 39.86 kB / 0.6172 GB, free: 7.836 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.481e-05/0.9956, allocations: 31.88 kB / 0.6172 GB, free: 7.805 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01681/1.012, allocations: 4.542 MB / 0.6217 GB, free: 2.402 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007267/1.013, allocations: 244.4 kB / 0.6219 GB, free: 2.145 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002107/1.013, allocations: 55.98 kB / 0.6219 GB, free: 2.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002552/1.016, allocations: 259.7 kB / 0.6222 GB, free: 1.836 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007765/1.017, allocations: 236 kB / 0.6224 GB, free: 1.605 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/1.017, allocations: 56 kB / 0.6225 GB, free: 1.551 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005511/1.017, allocations: 279.1 kB / 0.6227 GB, free: 1.277 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.017, allocations: 4 kB / 0.6227 GB, free: 1.273 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001608/1.019, allocations: 240 kB / 0.623 GB, free: 1.039 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * 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 Backend phase and start with SimCode phase: time 0.01913/1.038, allocations: 11.53 MB / 0.6342 GB, free: 4.848 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01292/1.051, allocations: 2.586 MB / 0.6368 GB, free: 2.258 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.333e-05/1.051, allocations: 4 kB / 0.6368 GB, free: 2.254 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006906/1.058, allocations: 1.195 MB / 0.6379 GB, free: 1.066 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/1.06, allocations: 127.9 kB / 0.638 GB, free: 0.9453 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03556/1.095, allocations: 10.25 MB / 0.6481 GB, free: 6.293 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000824/1.096, allocations: 0.9398 MB / 0.649 GB, free: 5.328 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/1.098, allocations: 231.3 kB / 0.6492 GB, free: 5.102 MB / 474.7 MB Notification: Performance of SimCode: time 1.262e-06/1.098, allocations: 0 / 0.6492 GB, free: 5.102 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.048/4.146, allocations: 15.7 MB / 0.6645 GB, free: 5.402 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat