Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.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.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",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.002366/0.002366, allocations: 178.4 kB / 8.362 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.984/1.984, allocations: 205.3 MB / 214.1 MB, free: 14.09 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.001125/0.001125, allocations: 82.55 kB / 262.1 MB, free: 13.88 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.2942/0.2942, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.865e-05/1.883e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.4169, allocations: 58.84 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1974/0.6144, allocations: 105.8 MB / 0.5693 GB, free: 9.34 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.6147, allocations: 67.97 kB / 0.5694 GB, free: 9.273 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9952/1.61, allocations: 142.9 MB / 0.709 GB, free: 94.54 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.156e-06/1.61, allocations: 4 kB / 0.709 GB, free: 94.54 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0007393/1.611, allocations: 168.2 kB / 0.7091 GB, free: 94.52 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: 2624 * Number of variables: 2624 Notification: Performance of Generate backend data structure: time 0.07657/1.687, allocations: 8.864 MB / 0.7178 GB, free: 89.21 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/1.687, allocations: 12.03 kB / 0.7178 GB, free: 89.2 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05828/1.746, allocations: 7.774 MB / 0.7254 GB, free: 81.41 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04155/1.787, allocations: 11.03 MB / 0.7362 GB, free: 70.39 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005011/1.788, allocations: 260 kB / 0.7364 GB, free: 70.14 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00399/1.792, allocations: 469.3 kB / 0.7368 GB, free: 69.68 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0272/1.819, allocations: 10.51 MB / 0.7471 GB, free: 59.17 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.041/1.86, allocations: 15.67 MB / 0.7624 GB, free: 41.98 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006058/1.861, allocations: 110.9 kB / 0.7625 GB, free: 41.87 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003459/1.864, allocations: 48 kB / 0.7626 GB, free: 41.82 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004019/1.868, allocations: 1.691 MB / 0.7642 GB, free: 40.13 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.542/2.41, allocations: 79.54 MB / 0.8419 GB, free: 73.01 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/2.421, allocations: 4.654 MB / 0.8464 GB, free: 72.34 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007238/2.428, allocations: 3.188 MB / 0.8495 GB, free: 72.3 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003127/2.432, allocations: 2.002 MB / 0.8515 GB, free: 70.6 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.235e-05/2.432, allocations: 66.89 kB / 0.8516 GB, free: 70.56 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=307): time 7.634e-06/2.432, allocations: 0 / 0.8516 GB, free: 70.56 MB / 0.4952 GB Notification: Performance of matching and sorting (n=335): time 0.09294/2.525, allocations: 22.47 MB / 0.8735 GB, free: 66.11 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/2.525, allocations: 245.7 kB / 0.8737 GB, free: 65.85 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0138/2.539, allocations: 5.177 MB / 0.8788 GB, free: 65.35 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001001/2.54, allocations: 26.73 kB / 0.8788 GB, free: 65.32 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0047/2.544, allocations: 5.22 MB / 0.8839 GB, free: 62.2 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002461/2.547, allocations: 1.304 MB / 0.8852 GB, free: 61.43 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001743/2.549, allocations: 0 / 0.8852 GB, free: 61.43 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001122/2.55, allocations: 0.7508 MB / 0.8859 GB, free: 61.1 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009355/2.559, allocations: 3.767 MB / 0.8896 GB, free: 60.02 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0134/2.573, allocations: 9.678 MB / 0.8991 GB, free: 50.73 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01344/2.586, allocations: 5.898 MB / 0.9048 GB, free: 48.93 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002803/2.587, allocations: 58.5 kB / 0.9049 GB, free: 48.93 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1346) (initialization): time 0.05649/2.643, allocations: 15.01 MB / 0.9195 GB, free: 44.28 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001694/2.643, allocations: 96 kB / 0.9196 GB, free: 44.19 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03343/2.677, allocations: 7.679 MB / 0.9271 GB, free: 38.14 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02892/2.706, allocations: 3.862 MB / 0.9309 GB, free: 35.56 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01466/2.72, allocations: 2.415 MB / 0.9333 GB, free: 33.48 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0217/2.742, allocations: 13.09 MB / 0.946 GB, free: 21.19 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01447/2.757, allocations: 0.6833 MB / 0.9467 GB, free: 20.73 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00289/2.76, allocations: 0.6153 MB / 0.9473 GB, free: 20.14 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * Number of states: 0 () * Number of discrete variables: 78 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1270): * Single equations (assignments): 1245 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004337/2.764, allocations: 0.6622 MB / 0.948 GB, free: 19.48 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02745/2.791, allocations: 7.623 MB / 0.9554 GB, free: 13.25 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002483/2.794, allocations: 0.5708 MB / 0.956 GB, free: 12.67 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02708/2.821, allocations: 7.523 MB / 0.9633 GB, free: 6.75 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0239/2.845, allocations: 6.735 MB / 0.9699 GB, free: 1.391 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.142e-05/2.845, allocations: 11.94 kB / 0.9699 GB, free: 1.379 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001353/2.845, allocations: 13.55 kB / 0.9699 GB, free: 1.379 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06744/2.913, allocations: 18.33 MB / 0.9878 GB, free: 15.69 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.184e-05/2.913, allocations: 6.5 kB / 0.9878 GB, free: 15.68 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007113/2.92, allocations: 0.6675 MB / 0.9885 GB, free: 15.02 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01844/2.938, allocations: 3.074 MB / 0.9915 GB, free: 11.89 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0011/2.94, allocations: 66.91 kB / 0.9915 GB, free: 11.83 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02685/2.967, allocations: 13.77 MB / 1.005 GB, free: 13.41 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006255/2.973, allocations: 5.793 MB / 1.011 GB, free: 7.121 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03874/3.012, allocations: 12.51 MB / 1.023 GB, free: 10.27 MB / 0.5577 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002717/3.014, allocations: 0.6147 MB / 1.023 GB, free: 9.625 MB / 0.5577 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002526/3.017, allocations: 39.95 kB / 1.023 GB, free: 9.586 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007713/3.025, allocations: 335.4 kB / 1.024 GB, free: 9.258 MB / 0.5577 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001628/3.026, allocations: 253.5 kB / 1.024 GB, free: 9.008 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007649/3.027, allocations: 103.9 kB / 1.024 GB, free: 8.906 MB / 0.5577 GB Notification: Performance of sorting global known variables: time 0.01095/3.038, allocations: 3.471 MB / 1.028 GB, free: 5.445 MB / 0.5577 GB Notification: Performance of sort global known variables: time 1.031e-06/3.038, allocations: 0 / 1.028 GB, free: 5.445 MB / 0.5577 GB Notification: Performance of remove unused functions: time 0.01543/3.054, allocations: 1.935 MB / 1.029 GB, free: 3.516 MB / 0.5577 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET139989742215563.x[3],$STATESET139989742215563.x[2],$STATESET139989742215563.x[1],$STATESET139989742215562.x[3],$STATESET139989742215562.x[2],$STATESET139989742215562.x[1],$STATESET139989742215561.x[3],$STATESET139989742215561.x[2],$STATESET139989742215561.x[1],$STATESET139989742215560.x[3],$STATESET139989742215560.x[2],$STATESET139989742215560.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (275): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04123/3.095, allocations: 13.99 MB / 1.043 GB, free: 5.27 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.4143/3.509, allocations: 10.93 MB / 1.054 GB, free: 181.6 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/3.509, allocations: 1.219 kB / 1.054 GB, free: 181.6 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.01853/3.528, allocations: 5.377 MB / 1.059 GB, free: 180.1 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007681/3.536, allocations: 0.7285 MB / 1.06 GB, free: 180.1 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0704/3.606, allocations: 20.1 MB / 1.079 GB, free: 175.4 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01336/3.62, allocations: 5.545 MB / 1.085 GB, free: 174.5 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009615/3.629, allocations: 3.752 MB / 1.088 GB, free: 174.5 MB / 0.5733 GB Notification: Performance of SimCode: time 1.893e-06/3.629, allocations: 0 / 1.088 GB, free: 174.5 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.007/11.64, allocations: 0.5555 GB / 1.644 GB, free: 30.93 MB / 0.5733 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat