Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.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.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar",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.00145/0.00145, allocations: 178.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.936/1.936, 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.001154/0.001153, allocations: 88.02 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.3026/0.3026, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.878e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4178/0.4179, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1982/0.6161, allocations: 105.5 MB / 0.569 GB, free: 9.715 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.6165, allocations: 71.97 kB / 0.569 GB, free: 9.645 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8948/1.511, allocations: 115.5 MB / 0.6818 GB, free: 110.3 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.516e-06/1.511, allocations: 0 / 0.6818 GB, free: 110.3 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003431/1.512, allocations: 90.31 kB / 0.6819 GB, free: 110.3 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.02218/1.534, allocations: 4.459 MB / 0.6863 GB, free: 108 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.221e-05/1.534, allocations: 9.781 kB / 0.6863 GB, free: 108 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03829/1.572, allocations: 3.651 MB / 0.6899 GB, free: 107.6 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02528/1.598, allocations: 4.817 MB / 0.6946 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005149/1.598, allocations: 165.1 kB / 0.6947 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0042/1.603, allocations: 287.1 kB / 0.695 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02898/1.632, allocations: 8.464 MB / 0.7033 GB, free: 102.9 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03316/1.665, allocations: 11.22 MB / 0.7142 GB, free: 94.04 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002455/1.665, allocations: 39.64 kB / 0.7142 GB, free: 94 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002567/1.668, allocations: 19.94 kB / 0.7143 GB, free: 93.98 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00321/1.671, allocations: 1.392 MB / 0.7156 GB, free: 92.59 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08264/1.754, allocations: 39.84 MB / 0.7545 GB, free: 52.21 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007362/1.761, allocations: 4.368 MB / 0.7588 GB, free: 47.61 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004724/1.766, allocations: 2.37 MB / 0.7611 GB, free: 45.24 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001621/1.768, allocations: 1.326 MB / 0.7624 GB, free: 43.7 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/1.768, allocations: 56.56 kB / 0.7625 GB, free: 43.64 MB / 475.1 MB Notification: Performance of pre-optimization done (n=252): time 6.573e-06/1.768, allocations: 0 / 0.7625 GB, free: 43.64 MB / 475.1 MB Notification: Performance of matching and sorting (n=271): time 0.0695/1.837, allocations: 18.84 MB / 0.7809 GB, free: 24.68 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/1.837, allocations: 103.1 kB / 0.781 GB, free: 24.56 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006205/1.844, allocations: 2.669 MB / 0.7836 GB, free: 21.88 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006389/1.844, allocations: 25.7 kB / 0.7836 GB, free: 21.85 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002708/1.847, allocations: 3.377 MB / 0.7869 GB, free: 18.43 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001806/1.849, allocations: 0.9633 MB / 0.7878 GB, free: 17.45 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00108/1.85, allocations: 0 / 0.7878 GB, free: 17.45 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.00087/1.851, allocations: 0.5916 MB / 0.7884 GB, free: 16.85 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005669/1.857, allocations: 2.395 MB / 0.7907 GB, free: 14.45 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008205/1.865, allocations: 6.038 MB / 0.7966 GB, free: 6.59 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008187/1.873, allocations: 3.825 MB / 0.8004 GB, free: 2.758 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/1.873, allocations: 36 kB / 0.8004 GB, free: 2.723 MB / 475.1 MB Notification: Performance of matching and sorting (n=862) (initialization): time 0.03252/1.906, allocations: 8.514 MB / 0.8087 GB, free: 10.2 MB / 491.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/1.906, allocations: 63.98 kB / 0.8088 GB, free: 10.13 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002082/1.906, allocations: 132 kB / 0.8089 GB, free: 10 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005916/1.912, allocations: 1.074 MB / 0.81 GB, free: 8.926 MB / 491.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009797/1.922, allocations: 1.489 MB / 0.8114 GB, free: 7.434 MB / 491.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/1.934, allocations: 4.869 MB / 0.8162 GB, free: 2.453 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006607/1.941, allocations: 223.7 kB / 0.8164 GB, free: 2.234 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001839/1.943, allocations: 380 kB / 0.8167 GB, free: 1.863 MB / 491.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 42 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (800): * Single equations (assignments): 793 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002308/1.945, allocations: 446.9 kB / 0.8172 GB, free: 1.418 MB / 491.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01616/1.961, allocations: 4.642 MB / 0.8217 GB, free: 12.72 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/1.962, allocations: 319.9 kB / 0.822 GB, free: 12.41 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01682/1.979, allocations: 5.174 MB / 0.8271 GB, free: 7.168 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001495/1.979, allocations: 51.58 kB / 0.8271 GB, free: 7.121 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/1.979, allocations: 4 kB / 0.8271 GB, free: 7.117 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.969e-05/1.98, allocations: 15.95 kB / 0.8271 GB, free: 7.102 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4177/2.397, allocations: 12 MB / 0.8388 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-05/2.397, allocations: 18.53 kB / 0.8389 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004121/2.402, allocations: 429.8 kB / 0.8393 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005814/2.407, allocations: 0.8763 MB / 0.8401 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008981/2.408, allocations: 22.34 kB / 0.8402 GB, free: 123.6 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01109/2.42, allocations: 4.223 MB / 0.8443 GB, free: 122.4 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.57e-05/2.42, allocations: 20.72 kB / 0.8443 GB, free: 122.4 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02361/2.443, allocations: 8.966 MB / 0.8531 GB, free: 120.2 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003279/2.447, allocations: 0.7234 MB / 0.8538 GB, free: 120.1 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001206/2.448, allocations: 16.44 kB / 0.8538 GB, free: 120.1 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003316/2.451, allocations: 111.5 kB / 0.8539 GB, free: 120.1 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009553/2.452, allocations: 167.9 kB / 0.854 GB, free: 120.1 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003149/2.453, allocations: 81.05 kB / 0.8541 GB, free: 120.1 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.005023/2.458, allocations: 1.741 MB / 0.8558 GB, free: 120 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.543e-06/2.458, allocations: 3.344 kB / 0.8558 GB, free: 120 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.008656/2.466, allocations: 0.9795 MB / 0.8568 GB, free: 120 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 205 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02078/2.487, allocations: 12.59 MB / 0.8691 GB, free: 113.8 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01291/2.5, allocations: 5.825 MB / 0.8748 GB, free: 112.1 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.554e-05/2.5, allocations: 0 / 0.8748 GB, free: 112.1 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.004685/2.505, allocations: 2.18 MB / 0.8769 GB, free: 111.3 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/2.508, allocations: 276 kB / 0.8772 GB, free: 111.2 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03801/2.546, allocations: 11.77 MB / 0.8886 GB, free: 106.9 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009396/2.556, allocations: 3.94 MB / 0.8925 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006116/2.562, allocations: 2.262 MB / 0.8947 GB, free: 103.7 MB / 0.4952 GB Notification: Performance of SimCode: time 1.092e-06/2.562, allocations: 0 / 0.8947 GB, free: 103.7 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.408/6.969, allocations: 111.1 MB / 1.003 GB, free: 11.54 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat