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.001519/0.001519, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.063/2.063, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001171/0.001171, allocations: 82.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2854/0.2854, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.635e-05/3.661e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1149, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4846/0.5996, allocations: 88.1 MB / 0.5589 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.5999, allocations: 66 kB / 0.559 GB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06339/0.6634, allocations: 11.73 MB / 0.5704 GB, free: 4.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6634, allocations: 4 kB / 0.5704 GB, free: 4.949 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.868e-05/0.6635, allocations: 10.62 kB / 0.5705 GB, free: 4.941 MB / 378.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.003844/0.6673, allocations: 0.891 MB / 0.5713 GB, free: 4.039 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.6674, allocations: 16.03 kB / 0.5713 GB, free: 4.023 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003053/0.6677, allocations: 93.52 kB / 0.5714 GB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.668, allocations: 60.12 kB / 0.5715 GB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008571/0.6688, allocations: 365.4 kB / 0.5718 GB, free: 3.535 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006123/0.6695, allocations: 272.5 kB / 0.5721 GB, free: 3.254 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.6696, allocations: 47.03 kB / 0.5721 GB, free: 3.223 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.6713, allocations: 0.6242 MB / 0.5727 GB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/0.6714, allocations: 4 kB / 0.5728 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.524e-05/0.6715, allocations: 14.75 kB / 0.5728 GB, free: 2.746 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.872e-05/0.6715, allocations: 12 kB / 0.5728 GB, free: 2.734 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002492/0.674, allocations: 0.8308 MB / 0.5736 GB, free: 2.164 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005352/0.6794, allocations: 2.076 MB / 0.5756 GB, free: 376 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00269/0.6822, allocations: 0.5865 MB / 0.5762 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009893/0.6832, allocations: 316.4 kB / 0.5765 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001563/0.6834, allocations: 8.562 kB / 0.5765 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.6835, allocations: 38.44 kB / 0.5765 GB, free: 15.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 4.749e-06/0.6835, allocations: 0 / 0.5765 GB, free: 15.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.03999/0.7235, allocations: 7.42 MB / 0.5838 GB, free: 10.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.136e-05/0.7236, allocations: 90.23 kB / 0.5839 GB, free: 10.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007768/0.7244, allocations: 361.1 kB / 0.5842 GB, free: 9.762 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003309/0.7248, allocations: 50.89 kB / 0.5843 GB, free: 9.723 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.725, allocations: 271 kB / 0.5845 GB, free: 9.488 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000616/0.7256, allocations: 401.4 kB / 0.5849 GB, free: 9.145 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.7259, allocations: 26.5 kB / 0.5849 GB, free: 9.137 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.7261, allocations: 353 kB / 0.5853 GB, free: 8.801 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002816/0.7289, allocations: 0.9733 MB / 0.5862 GB, free: 8.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003227/0.7322, allocations: 1.127 MB / 0.5873 GB, free: 7.668 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002569/0.7348, allocations: 0.8281 MB / 0.5881 GB, free: 7.215 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.7349, allocations: 0 / 0.5881 GB, free: 7.215 MB / 394.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.006638/0.7415, allocations: 2.076 MB / 0.5902 GB, free: 6.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.7416, allocations: 7.953 kB / 0.5902 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.7416, allocations: 4 kB / 0.5902 GB, free: 6.008 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.176e-05/0.7417, allocations: 11.94 kB / 0.5902 GB, free: 5.996 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005761/0.7475, allocations: 467.2 kB / 0.5906 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.142e-05/0.7476, allocations: 15.98 kB / 0.5906 GB, free: 5.535 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004277/0.7518, allocations: 275.9 kB / 0.5909 GB, free: 5.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003424/0.7522, allocations: 41.05 kB / 0.5909 GB, free: 5.254 MB / 394.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 () * 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.0005784/0.7528, allocations: 172.9 kB / 0.5911 GB, free: 5.113 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003614/0.7532, allocations: 63.25 kB / 0.5912 GB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003512/0.7536, allocations: 115.9 kB / 0.5913 GB, free: 5.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.819e-05/0.7536, allocations: 12 kB / 0.5913 GB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.7536, allocations: 0 / 0.5913 GB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.93e-05/0.7537, allocations: 7.969 kB / 0.5913 GB, free: 5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01644/0.7701, allocations: 4.777 MB / 0.596 GB, free: 1.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.849e-05/0.7702, allocations: 20 kB / 0.596 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003337/0.7736, allocations: 418.2 kB / 0.5964 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.703e-05/0.7737, allocations: 31.94 kB / 0.5964 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002596/0.7739, allocations: 48.06 kB / 0.5965 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-05/0.774, allocations: 39.86 kB / 0.5965 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.216e-05/0.774, allocations: 31.88 kB / 0.5965 GB, free: 472 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006457/0.7805, allocations: 3.318 MB / 0.5998 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008023/0.7814, allocations: 248.3 kB / 0.6 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.7817, allocations: 55.98 kB / 0.6 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002743/0.7844, allocations: 247.8 kB / 0.6003 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009103/0.7854, allocations: 247.2 kB / 0.6005 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/0.7856, allocations: 52 kB / 0.6006 GB, free: 11.63 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005739/0.7862, allocations: 274.1 kB / 0.6008 GB, free: 11.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7862, allocations: 0 / 0.6008 GB, free: 11.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001742/0.7879, allocations: 239.9 kB / 0.6011 GB, free: 11.13 MB / 410.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 () * 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.009836/0.7978, allocations: 10.31 MB / 0.6111 GB, free: 168 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005341/0.8032, allocations: 1.693 MB / 0.6128 GB, free: 14.47 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.588e-05/0.8033, allocations: 4 kB / 0.6128 GB, free: 14.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003599/0.8069, allocations: 0.7812 MB / 0.6135 GB, free: 13.69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.8085, allocations: 134.1 kB / 0.6137 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007362/0.8159, allocations: 1.912 MB / 0.6155 GB, free: 11.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008678/0.8168, allocations: 0.9398 MB / 0.6165 GB, free: 10.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/0.8185, allocations: 227.3 kB / 0.6167 GB, free: 10.13 MB / 426.7 MB Notification: Performance of SimCode: time 1.233e-06/0.8185, allocations: 3.938 kB / 0.6167 GB, free: 10.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.041/3.859, allocations: 15.89 MB / 0.6322 GB, free: 10.21 MB / 442.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