Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001589/0.001588, allocations: 177.7 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009438/0.0009438, allocations: 93.45 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4345/0.4345, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003508, allocations: 12 kB / 460 MB, free: 1.414 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4227/0.4231, allocations: 61.9 MB / 0.5096 GB, free: 37.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1452/0.5684, allocations: 108.8 MB / 0.6159 GB, free: 2.289 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003479/0.5688, allocations: 79.94 kB / 0.6159 GB, free: 2.215 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6502/1.219, allocations: 148 MB / 0.7605 GB, free: 80.78 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.219, allocations: 0 / 0.7605 GB, free: 80.78 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007539/1.22, allocations: 165 kB / 0.7606 GB, free: 80.77 MB / 490.7 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.0421/1.262, allocations: 9.445 MB / 0.7698 GB, free: 75.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.637e-05/1.262, allocations: 9.031 kB / 0.7698 GB, free: 75.09 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007866/1.27, allocations: 1.35 MB / 0.7712 GB, free: 74.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03128/1.301, allocations: 7.765 MB / 0.7787 GB, free: 66.43 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02844/1.33, allocations: 10.47 MB / 0.789 GB, free: 55.87 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007007/1.33, allocations: 0.5817 MB / 0.7895 GB, free: 55.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004593/1.335, allocations: 0.7963 MB / 0.7903 GB, free: 54.49 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04365/1.379, allocations: 18.34 MB / 0.8082 GB, free: 34.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007899/1.38, allocations: 107 kB / 0.8083 GB, free: 34.49 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003859/1.383, allocations: 375.8 kB / 0.8087 GB, free: 34.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002593/1.386, allocations: 1.687 MB / 0.8103 GB, free: 32.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03445/1.421, allocations: 14.92 MB / 0.8249 GB, free: 17.49 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4626/1.883, allocations: 81.14 MB / 0.9042 GB, free: 51.04 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02037/1.904, allocations: 7.582 MB / 0.9116 GB, free: 50.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02579/1.929, allocations: 17.03 MB / 0.9282 GB, free: 45.44 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.409e-05/1.929, allocations: 68.75 kB / 0.9283 GB, free: 45.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=301): time 4.889e-06/1.93, allocations: 2.531 kB / 0.9283 GB, free: 45.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=329): time 0.07506/2.005, allocations: 28.82 MB / 0.9564 GB, free: 39.19 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003416/2.008, allocations: 6.321 MB / 0.9626 GB, free: 33.09 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01013/2.018, allocations: 5.827 MB / 0.9683 GB, free: 31 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008935/2.019, allocations: 75.88 kB / 0.9683 GB, free: 30.94 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003379/2.023, allocations: 5.348 MB / 0.9736 GB, free: 26.83 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001776/2.024, allocations: 1.315 MB / 0.9748 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008295/2.025, allocations: 200.4 kB / 0.975 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004493/2.026, allocations: 0.7279 MB / 0.9757 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005884/2.032, allocations: 4.011 MB / 0.9797 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00969/2.041, allocations: 9.836 MB / 0.9893 GB, free: 14.81 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/2.052, allocations: 6.083 MB / 0.9952 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003083/2.052, allocations: 59.38 kB / 0.9953 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1316) (initialization): time 0.0488/2.101, allocations: 16.61 MB / 1.011 GB, free: 3.332 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001354/2.101, allocations: 96 kB / 1.012 GB, free: 3.238 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02425/2.125, allocations: 8.375 MB / 1.02 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01656/2.142, allocations: 3.919 MB / 1.024 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009052/2.151, allocations: 2.369 MB / 1.026 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01774/2.169, allocations: 13.99 MB / 1.04 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01144/2.18, allocations: 0.8762 MB / 1.04 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003258/2.183, allocations: 0.5982 MB / 1.041 GB, free: 11.08 MB / 0.5417 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 () * Number of clocked 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.01038/2.194, allocations: 3.478 MB / 1.044 GB, free: 8.02 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001951/2.196, allocations: 0.5974 MB / 1.045 GB, free: 7.418 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01797/2.214, allocations: 7.82 MB / 1.053 GB, free: 15.89 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01511/2.229, allocations: 6.963 MB / 1.059 GB, free: 8.824 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-05/2.229, allocations: 8 kB / 1.059 GB, free: 8.816 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001189/2.229, allocations: 15.94 kB / 1.059 GB, free: 8.801 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04317/2.272, allocations: 19.45 MB / 1.078 GB, free: 5.184 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-05/2.272, allocations: 4.469 kB / 1.078 GB, free: 5.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003355/2.276, allocations: 0.663 MB / 1.079 GB, free: 4.516 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009938/2.286, allocations: 3.14 MB / 1.082 GB, free: 1.332 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009777/2.287, allocations: 107.9 kB / 1.082 GB, free: 1.227 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01635/2.303, allocations: 14.31 MB / 1.096 GB, free: 2.145 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3368/2.64, allocations: 6.087 MB / 1.102 GB, free: 162.4 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02062/2.661, allocations: 12.79 MB / 1.115 GB, free: 160.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002723/2.663, allocations: 0.6492 MB / 1.115 GB, free: 160.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001735/2.665, allocations: 86.31 kB / 1.115 GB, free: 160.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004385/2.669, allocations: 387.7 kB / 1.116 GB, free: 160.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000912/2.67, allocations: 249.1 kB / 1.116 GB, free: 160.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003008/2.671, allocations: 102.1 kB / 1.116 GB, free: 160.7 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01044/2.681, allocations: 4.069 MB / 1.12 GB, free: 160.5 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.02e-07/2.681, allocations: 0 / 1.12 GB, free: 160.5 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01316/2.694, allocations: 2.102 MB / 1.122 GB, free: 160.5 MB / 0.5886 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 () * Number of clocked 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.02362/2.718, allocations: 14.28 MB / 1.136 GB, free: 157.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02298/2.741, allocations: 11.52 MB / 1.147 GB, free: 155.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/2.741, allocations: 0 / 1.147 GB, free: 155.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009836/2.751, allocations: 5.478 MB / 1.153 GB, free: 153 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00645/2.757, allocations: 0.8555 MB / 1.153 GB, free: 152.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5386/3.296, allocations: 215.6 MB / 1.364 GB, free: 163.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01907/3.315, allocations: 5.536 MB / 1.369 GB, free: 162.7 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01149/3.327, allocations: 3.03 MB / 1.372 GB, free: 162.7 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007509/3.334, allocations: 3.681 MB / 1.376 GB, free: 162.7 MB / 0.6042 GB Notification: Performance of SimCode: time 1.042e-06/3.334, allocations: 0 / 1.376 GB, free: 162.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2083/3.543, allocations: 150.5 MB / 1.523 GB, free: 47.15 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/3.543, allocations: 205.7 kB / 1.523 GB, free: 46.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.319/11.86, allocations: 0 / 1.523 GB, free: 46.91 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat