Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008913/0.0008914, allocations: 90.95 kB / 292.1 MB, free: 5.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1761/0.1761, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.703e-05/2.706e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 63.25 MB / 0.5115 GB, free: 6.699 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4041/0.508, allocations: 115.6 MB / 0.6243 GB, free: 10.27 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.5082, allocations: 80.5 kB / 0.6244 GB, free: 10.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6277/1.136, allocations: 143.2 MB / 0.7642 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.884e-06/1.136, allocations: 0 / 0.7642 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004174/1.136, allocations: 133.5 kB / 0.7643 GB, free: 110.1 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02348/1.16, allocations: 7.085 MB / 0.7712 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/1.16, allocations: 17.56 kB / 0.7712 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004094/1.164, allocations: 1.151 MB / 0.7724 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03057/1.195, allocations: 7.56 MB / 0.7798 GB, free: 107 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02215/1.217, allocations: 8.313 MB / 0.7879 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005356/1.217, allocations: 489.7 kB / 0.7883 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003205/1.221, allocations: 0.6552 MB / 0.789 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03691/1.258, allocations: 16.58 MB / 0.8052 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005706/1.258, allocations: 101.5 kB / 0.8053 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003202/1.261, allocations: 312.5 kB / 0.8056 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002407/1.264, allocations: 1.579 MB / 0.8071 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02805/1.292, allocations: 13.51 MB / 0.8203 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08019/1.372, allocations: 74.32 MB / 0.8929 GB, free: 42.78 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02023/1.392, allocations: 7.689 MB / 0.9004 GB, free: 36.37 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004754/1.397, allocations: 3.984 MB / 0.9043 GB, free: 32.69 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02625/1.423, allocations: 18.64 MB / 0.9225 GB, free: 16.16 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/1.424, allocations: 72.5 kB / 0.9226 GB, free: 16.08 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=287): time 6.081e-06/1.424, allocations: 0 / 0.9226 GB, free: 16.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=370): time 0.403/1.827, allocations: 38.73 MB / 0.9604 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/1.827, allocations: 269.7 kB / 0.9606 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009614/1.836, allocations: 5.266 MB / 0.9658 GB, free: 117 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008556/1.837, allocations: 85.73 kB / 0.9659 GB, free: 117 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003765/1.841, allocations: 4.763 MB / 0.9705 GB, free: 115.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002088/1.843, allocations: 1.358 MB / 0.9718 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005801/1.844, allocations: 187.2 kB / 0.972 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000421/1.844, allocations: 0.6933 MB / 0.9727 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00546/1.85, allocations: 3.669 MB / 0.9763 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006941/1.857, allocations: 8.876 MB / 0.985 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00677/1.863, allocations: 5.586 MB / 0.9904 GB, free: 108 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.163e-05/1.863, allocations: 53.81 kB / 0.9905 GB, free: 108 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.02887/1.892, allocations: 15.86 MB / 1.006 GB, free: 107 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001097/1.892, allocations: 83.69 kB / 1.006 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/1.893, allocations: 185.1 kB / 1.006 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01136/1.904, allocations: 4.014 MB / 1.01 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007105/1.911, allocations: 2.041 MB / 1.012 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02774/1.939, allocations: 20.79 MB / 1.032 GB, free: 97.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009324/1.948, allocations: 0.5456 MB / 1.033 GB, free: 97.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002014/1.95, allocations: 0.5305 MB / 1.033 GB, free: 97.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1088): * Single equations (assignments): 1083 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001802/1.952, allocations: 0.8073 MB / 1.034 GB, free: 96.5 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001428/1.954, allocations: 0.5735 MB / 1.035 GB, free: 96.18 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01877/1.972, allocations: 9.455 MB / 1.044 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.048e-05/1.973, allocations: 41.05 kB / 1.044 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.131e-05/1.973, allocations: 18.03 kB / 1.044 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.471e-05/1.973, allocations: 17.81 kB / 1.044 GB, free: 93.17 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03707/2.01, allocations: 18.93 MB / 1.063 GB, free: 86.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.384e-05/2.01, allocations: 0 / 1.063 GB, free: 86.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002597/2.012, allocations: 0.5077 MB / 1.063 GB, free: 86.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01048/2.023, allocations: 3.565 MB / 1.067 GB, free: 83.75 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005766/2.023, allocations: 59.84 kB / 1.067 GB, free: 83.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02315/2.047, allocations: 18.71 MB / 1.085 GB, free: 67.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/2.047, allocations: 8.094 kB / 1.085 GB, free: 67.61 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02124/2.068, allocations: 13.95 MB / 1.099 GB, free: 55.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001623/2.07, allocations: 0.5853 MB / 1.099 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008827/2.07, allocations: 52.78 kB / 1.099 GB, free: 55.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002548/2.073, allocations: 226.4 kB / 1.099 GB, free: 55.17 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006239/2.074, allocations: 219.6 kB / 1.1 GB, free: 55.04 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000251/2.074, allocations: 91.38 kB / 1.1 GB, free: 54.95 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004686/2.079, allocations: 3.676 MB / 1.103 GB, free: 51.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.062e-06/2.079, allocations: 3.938 kB / 1.103 GB, free: 51.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007607/2.086, allocations: 1.86 MB / 1.105 GB, free: 49.86 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02201/2.108, allocations: 14.82 MB / 1.12 GB, free: 36.52 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01351/2.122, allocations: 9.485 MB / 1.129 GB, free: 27.02 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/2.122, allocations: 0 / 1.129 GB, free: 27.02 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004879/2.127, allocations: 3.733 MB / 1.132 GB, free: 23.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004223/2.131, allocations: 0.7182 MB / 1.133 GB, free: 22.56 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03617/2.167, allocations: 15.33 MB / 1.148 GB, free: 7.191 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007519/2.175, allocations: 4.999 MB / 1.153 GB, free: 2.199 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008141/2.183, allocations: 2.805 MB / 1.156 GB, free: 15.41 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2817/2.465, allocations: 3.253 MB / 1.159 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of SimCode: time 2.505e-06/2.465, allocations: 0 / 1.159 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1888/2.653, allocations: 140.9 MB / 1.297 GB, free: 52.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/2.654, allocations: 177.6 kB / 1.297 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.699/8.352, allocations: 4.062 kB / 1.297 GB, free: 51.97 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat