Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.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.FreeBodies,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies",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.002131/0.002131, allocations: 177.8 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 2.147/2.147, 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.001095/0.001094, allocations: 90.81 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.2974/0.2974, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.114e-05, allocations: 4.203 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.412/0.4121, allocations: 58.86 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1961/0.6083, allocations: 105.8 MB / 0.5693 GB, free: 9.355 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003444/0.6087, allocations: 79.95 kB / 0.5694 GB, free: 9.277 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9107/1.519, allocations: 142.8 MB / 0.7089 GB, free: 94.55 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.026e-06/1.519, allocations: 0 / 0.7089 GB, free: 94.55 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005616/1.52, allocations: 168.8 kB / 0.7091 GB, free: 94.54 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.06173/1.582, allocations: 8.862 MB / 0.7177 GB, free: 89.3 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/1.582, allocations: 12.03 kB / 0.7177 GB, free: 89.29 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05751/1.639, allocations: 7.774 MB / 0.7253 GB, free: 81.49 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04061/1.68, allocations: 11.04 MB / 0.7361 GB, free: 70.47 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005069/1.681, allocations: 252 kB / 0.7363 GB, free: 70.22 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003855/1.684, allocations: 469.3 kB / 0.7368 GB, free: 69.77 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02713/1.712, allocations: 10.51 MB / 0.7471 GB, free: 59.25 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04104/1.753, allocations: 15.67 MB / 0.7624 GB, free: 42.07 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006536/1.753, allocations: 114.9 kB / 0.7625 GB, free: 41.95 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003622/1.757, allocations: 44 kB / 0.7625 GB, free: 41.91 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004054/1.761, allocations: 1.687 MB / 0.7642 GB, free: 40.22 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5456/2.307, allocations: 79.54 MB / 0.8418 GB, free: 72.96 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01069/2.318, allocations: 4.661 MB / 0.8464 GB, free: 72.3 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007176/2.325, allocations: 3.188 MB / 0.8495 GB, free: 72.26 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002618/2.327, allocations: 1.994 MB / 0.8514 GB, free: 70.55 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.005e-05/2.328, allocations: 71.69 kB / 0.8515 GB, free: 70.51 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=307): time 6.973e-06/2.328, allocations: 0 / 0.8515 GB, free: 70.51 MB / 0.4952 GB Notification: Performance of matching and sorting (n=335): time 0.09343/2.421, allocations: 22.48 MB / 0.8735 GB, free: 66.06 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/2.421, allocations: 251.7 kB / 0.8737 GB, free: 65.8 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01365/2.435, allocations: 5.177 MB / 0.8788 GB, free: 65.3 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0009863/2.436, allocations: 25.7 kB / 0.8788 GB, free: 65.27 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004719/2.441, allocations: 5.216 MB / 0.8839 GB, free: 62.15 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002442/2.443, allocations: 1.302 MB / 0.8851 GB, free: 61.39 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001703/2.445, allocations: 0 / 0.8851 GB, free: 61.39 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001082/2.446, allocations: 0.7471 MB / 0.8859 GB, free: 61.06 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009424/2.455, allocations: 3.764 MB / 0.8895 GB, free: 59.97 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01376/2.469, allocations: 9.688 MB / 0.899 GB, free: 50.68 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01335/2.483, allocations: 5.891 MB / 0.9048 GB, free: 48.88 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002548/2.483, allocations: 61.06 kB / 0.9048 GB, free: 48.88 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1346) (initialization): time 0.05591/2.539, allocations: 15.01 MB / 0.9195 GB, free: 44.38 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001574/2.539, allocations: 102.4 kB / 0.9196 GB, free: 44.28 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04509/2.584, allocations: 7.673 MB / 0.9271 GB, free: 38.24 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04144/2.626, allocations: 3.859 MB / 0.9308 GB, free: 35.66 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01483/2.641, allocations: 2.419 MB / 0.9332 GB, free: 33.57 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02171/2.662, allocations: 13.09 MB / 0.946 GB, free: 21.29 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01538/2.678, allocations: 0.6847 MB / 0.9467 GB, free: 20.82 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002743/2.681, allocations: 0.6159 MB / 0.9473 GB, free: 20.23 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.004051/2.685, allocations: 0.6544 MB / 0.9479 GB, free: 19.58 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02677/2.711, allocations: 7.63 MB / 0.9553 GB, free: 13.35 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00228/2.714, allocations: 0.5708 MB / 0.9559 GB, free: 12.77 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02605/2.74, allocations: 7.523 MB / 0.9632 GB, free: 6.852 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02326/2.763, allocations: 6.736 MB / 0.9698 GB, free: 1.492 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.554e-05/2.763, allocations: 11.09 kB / 0.9698 GB, free: 1.484 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001237/2.763, allocations: 13.45 kB / 0.9698 GB, free: 1.484 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06357/2.827, allocations: 18.34 MB / 0.9878 GB, free: 15.8 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.687e-05/2.827, allocations: 4 kB / 0.9878 GB, free: 15.8 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006981/2.834, allocations: 0.6669 MB / 0.9884 GB, free: 15.13 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01828/2.852, allocations: 3.074 MB / 0.9914 GB, free: 12.01 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001102/2.854, allocations: 67.91 kB / 0.9915 GB, free: 11.95 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02581/2.879, allocations: 13.76 MB / 1.005 GB, free: 13.52 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006271/2.886, allocations: 5.791 MB / 1.011 GB, free: 7.242 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03791/2.924, allocations: 12.52 MB / 1.023 GB, free: 10.39 MB / 0.5577 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002549/2.926, allocations: 0.6224 MB / 1.023 GB, free: 9.742 MB / 0.5577 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00243/2.929, allocations: 35.97 kB / 1.023 GB, free: 9.707 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007553/2.936, allocations: 335.4 kB / 1.024 GB, free: 9.379 MB / 0.5577 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001619/2.938, allocations: 253.5 kB / 1.024 GB, free: 9.129 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006314/2.939, allocations: 100.6 kB / 1.024 GB, free: 9.031 MB / 0.5577 GB Notification: Performance of sorting global known variables: time 0.01044/2.949, allocations: 3.467 MB / 1.027 GB, free: 5.574 MB / 0.5577 GB Notification: Performance of sort global known variables: time 8.82e-07/2.949, allocations: 3.938 kB / 1.027 GB, free: 5.57 MB / 0.5577 GB Notification: Performance of remove unused functions: time 0.01499/2.964, allocations: 1.947 MB / 1.029 GB, free: 3.629 MB / 0.5577 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET140474741576075.x[3],$STATESET140474741576075.x[2],$STATESET140474741576075.x[1],$STATESET140474741576074.x[3],$STATESET140474741576074.x[2],$STATESET140474741576074.x[1],$STATESET140474741576073.x[3],$STATESET140474741576073.x[2],$STATESET140474741576073.x[1],$STATESET140474741576072.x[3],$STATESET140474741576072.x[2],$STATESET140474741576072.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.03945/3.004, allocations: 13.98 MB / 1.043 GB, free: 5.391 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.3985/3.402, allocations: 10.94 MB / 1.054 GB, free: 182.7 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/3.402, allocations: 5.031 kB / 1.054 GB, free: 182.7 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.01835/3.421, allocations: 5.364 MB / 1.059 GB, free: 181.2 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007402/3.428, allocations: 0.7288 MB / 1.06 GB, free: 181.2 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06789/3.496, allocations: 20.11 MB / 1.079 GB, free: 176.6 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01385/3.51, allocations: 5.55 MB / 1.085 GB, free: 175.7 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009494/3.52, allocations: 3.753 MB / 1.088 GB, free: 175.7 MB / 0.5733 GB Notification: Performance of SimCode: time 1.473e-06/3.52, allocations: 0 / 1.088 GB, free: 175.7 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.191/11.71, allocations: 0.5555 GB / 1.644 GB, free: 149.8 MB / 0.5733 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat does not exist to compare? outputFormat=mat