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.002579/0.002579, allocations: 181.6 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.194/2.194, 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.001134/0.001134, allocations: 93.92 kB / 267.5 MB, free: 14.05 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.2958/0.2958, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.616e-05/3.63e-05, allocations: 11.98 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1244, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5369/0.6614, allocations: 106.5 MB / 0.5769 GB, free: 13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.6617, allocations: 80.86 kB / 0.577 GB, free: 12.96 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.037/1.699, allocations: 146.4 MB / 0.7199 GB, free: 90.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.274e-06/1.699, allocations: 0 / 0.7199 GB, free: 90.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0007281/1.7, allocations: 167.8 kB / 0.7201 GB, free: 90.2 MB / 0.4948 GB 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.06736/1.767, allocations: 8.871 MB / 0.7287 GB, free: 87.36 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/1.767, allocations: 7.656 kB / 0.7287 GB, free: 87.36 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007568/1.775, allocations: 1.35 MB / 0.7301 GB, free: 87.25 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06031/1.835, allocations: 7.781 MB / 0.7377 GB, free: 86.73 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04366/1.879, allocations: 11.04 MB / 0.7484 GB, free: 85.76 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000866/1.88, allocations: 0.5872 MB / 0.749 GB, free: 85.75 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004602/1.884, allocations: 0.7913 MB / 0.7498 GB, free: 85.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06177/1.946, allocations: 18.18 MB / 0.7675 GB, free: 81.52 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008194/1.947, allocations: 100.1 kB / 0.7676 GB, free: 81.52 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004321/1.951, allocations: 378.2 kB / 0.768 GB, free: 81.52 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004286/1.956, allocations: 1.682 MB / 0.7696 GB, free: 81.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05137/2.007, allocations: 14.66 MB / 0.784 GB, free: 80.73 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1406/2.148, allocations: 81.23 MB / 0.8633 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03729/2.185, allocations: 7.556 MB / 0.8707 GB, free: 7.582 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01011/2.195, allocations: 3.362 MB / 0.8739 GB, free: 4.48 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04985/2.245, allocations: 17.08 MB / 0.8906 GB, free: 5.238 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/2.245, allocations: 60.56 kB / 0.8907 GB, free: 5.172 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=301): time 1.117e-05/2.245, allocations: 4 kB / 0.8907 GB, free: 5.168 MB / 0.5105 GB Notification: Performance of matching and sorting (n=329): time 0.511/2.756, allocations: 24.25 MB / 0.9144 GB, free: 96.88 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005817/2.762, allocations: 6.271 MB / 0.9205 GB, free: 91.07 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01752/2.78, allocations: 5.796 MB / 0.9261 GB, free: 90.54 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00115/2.781, allocations: 76.92 kB / 0.9262 GB, free: 90.51 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005277/2.786, allocations: 5.14 MB / 0.9312 GB, free: 88.03 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002722/2.789, allocations: 1.323 MB / 0.9325 GB, free: 87.28 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001997/2.791, allocations: 197.5 kB / 0.9327 GB, free: 87.28 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001046/2.792, allocations: 0.736 MB / 0.9334 GB, free: 86.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01063/2.803, allocations: 3.905 MB / 0.9373 GB, free: 86.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01487/2.818, allocations: 9.723 MB / 0.9467 GB, free: 79.45 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01463/2.833, allocations: 6.036 MB / 0.9526 GB, free: 79.39 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002666/2.833, allocations: 58.81 kB / 0.9527 GB, free: 79.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1316) (initialization): time 0.06051/2.893, allocations: 16.16 MB / 0.9685 GB, free: 78.35 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001761/2.894, allocations: 92.44 kB / 0.9686 GB, free: 78.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03585/2.93, allocations: 7.868 MB / 0.9762 GB, free: 76.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02934/2.959, allocations: 3.902 MB / 0.9801 GB, free: 75.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01494/2.974, allocations: 2.37 MB / 0.9824 GB, free: 75.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0235/2.998, allocations: 13.55 MB / 0.9956 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01546/3.013, allocations: 0.8767 MB / 0.9965 GB, free: 65.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002695/3.016, allocations: 0.5979 MB / 0.997 GB, free: 65.39 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 936 * 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 (1240): * Single equations (assignments): 1215 * 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.004443/3.02, allocations: 0.8843 MB / 0.9979 GB, free: 64.69 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002471/3.023, allocations: 0.5958 MB / 0.9985 GB, free: 64.36 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05158/3.074, allocations: 7.775 MB / 1.006 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03224/3.107, allocations: 6.905 MB / 1.013 GB, free: 59.21 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.653e-05/3.107, allocations: 8 kB / 1.013 GB, free: 59.21 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001038/3.107, allocations: 19.05 kB / 1.013 GB, free: 59.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06715/3.174, allocations: 19.43 MB / 1.032 GB, free: 43.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.687e-05/3.174, allocations: 8.031 kB / 1.032 GB, free: 43.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006842/3.181, allocations: 0.6503 MB / 1.032 GB, free: 43.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0175/3.199, allocations: 3.137 MB / 1.036 GB, free: 41.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001194/3.2, allocations: 106.6 kB / 1.036 GB, free: 41.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02227/3.222, allocations: 14 MB / 1.049 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.009092/3.231, allocations: 6.034 MB / 1.055 GB, free: 21.69 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05106/3.282, allocations: 12.71 MB / 1.068 GB, free: 10.56 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00295/3.286, allocations: 0.658 MB / 1.068 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00318/3.289, allocations: 87.27 kB / 1.068 GB, free: 9.828 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008291/3.297, allocations: 386.1 kB / 1.069 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001594/3.299, allocations: 245.4 kB / 1.069 GB, free: 9.469 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009703/3.3, allocations: 105.4 kB / 1.069 GB, free: 9.387 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01176/3.312, allocations: 4.029 MB / 1.073 GB, free: 5.836 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.775e-06/3.312, allocations: 0 / 1.073 GB, free: 5.836 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0148/3.326, allocations: 2.108 MB / 1.075 GB, free: 3.738 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 (269): * Single equations (assignments): 252 * 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.04431/3.371, allocations: 14.3 MB / 1.089 GB, free: 5.879 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.4199/3.791, allocations: 11.37 MB / 1.1 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.431e-05/3.791, allocations: 1.938 kB / 1.1 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01938/3.81, allocations: 5.448 MB / 1.105 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009257/3.82, allocations: 0.8581 MB / 1.106 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07225/3.892, allocations: 20.47 MB / 1.126 GB, free: 97.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01479/3.907, allocations: 5.541 MB / 1.132 GB, free: 96.98 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0103/3.917, allocations: 3.798 MB / 1.135 GB, free: 96.97 MB / 0.5261 GB Notification: Performance of SimCode: time 1.774e-06/3.917, allocations: 0 / 1.135 GB, free: 96.97 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.475/12.39, allocations: 0.5588 GB / 1.694 GB, free: 119 MB / 0.573 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