Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0031/0.0031, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 227.2 MB / 245 MB, free: 7.652 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001018/0.001017, allocations: 101.5 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4228/0.4228, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003313, allocations: 8.219 kB / 468.5 MB, free: 7.652 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5031/0.5035, allocations: 63.24 MB / 0.5193 GB, free: 43.9 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1654/0.669, allocations: 115.4 MB / 0.632 GB, free: 6.133 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.6692, allocations: 83.92 kB / 0.6321 GB, free: 6.055 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6788/1.348, allocations: 143.1 MB / 0.7718 GB, free: 92.86 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.796e-06/1.348, allocations: 0 / 0.7718 GB, free: 92.86 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005816/1.349, allocations: 135.1 kB / 0.772 GB, free: 92.86 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02794/1.377, allocations: 7.657 MB / 0.7794 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/1.377, allocations: 15.17 kB / 0.7794 GB, free: 88.03 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005794/1.383, allocations: 1.146 MB / 0.7806 GB, free: 87.27 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03096/1.414, allocations: 7.549 MB / 0.7879 GB, free: 83.49 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02449/1.438, allocations: 8.354 MB / 0.7961 GB, free: 78.92 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006218/1.439, allocations: 488.9 kB / 0.7966 GB, free: 78.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004224/1.443, allocations: 0.6527 MB / 0.7972 GB, free: 77.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04285/1.486, allocations: 16.72 MB / 0.8135 GB, free: 59.83 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007325/1.487, allocations: 99.02 kB / 0.8136 GB, free: 59.73 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003863/1.491, allocations: 311.9 kB / 0.8139 GB, free: 59.46 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002625/1.493, allocations: 1.584 MB / 0.8155 GB, free: 57.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03241/1.526, allocations: 13.74 MB / 0.8289 GB, free: 44.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4282/1.954, allocations: 74.26 MB / 0.9014 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02231/1.976, allocations: 7.701 MB / 0.9089 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02915/2.005, allocations: 18.57 MB / 0.9271 GB, free: 98.15 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.281e-05/2.006, allocations: 64.62 kB / 0.9271 GB, free: 98.11 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 6.001e-06/2.006, allocations: 0 / 0.9271 GB, free: 98.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.166/2.172, allocations: 48.19 MB / 0.9742 GB, free: 89.65 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.452e-05/2.172, allocations: 270.9 kB / 0.9744 GB, free: 89.36 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009704/2.181, allocations: 5.349 MB / 0.9797 GB, free: 87.48 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001064/2.182, allocations: 80.8 kB / 0.9797 GB, free: 87.41 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003673/2.186, allocations: 4.764 MB / 0.9844 GB, free: 83.75 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002253/2.188, allocations: 1.333 MB / 0.9857 GB, free: 82.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009775/2.189, allocations: 187.8 kB / 0.9859 GB, free: 82.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004921/2.19, allocations: 0.6939 MB / 0.9866 GB, free: 82.15 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005804/2.196, allocations: 3.748 MB / 0.9902 GB, free: 80.89 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009788/2.206, allocations: 8.946 MB / 0.999 GB, free: 72.63 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0097/2.215, allocations: 5.606 MB / 1.004 GB, free: 70.45 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001525/2.216, allocations: 50 kB / 1.004 GB, free: 70.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03894/2.254, allocations: 16.12 MB / 1.02 GB, free: 59.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003026/2.255, allocations: 84 kB / 1.02 GB, free: 58.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000419/2.255, allocations: 180 kB / 1.02 GB, free: 58.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01412/2.269, allocations: 4.077 MB / 1.024 GB, free: 56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007652/2.277, allocations: 2.032 MB / 1.026 GB, free: 54.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03063/2.308, allocations: 21.76 MB / 1.048 GB, free: 34.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009938/2.318, allocations: 0.5384 MB / 1.048 GB, free: 34.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002759/2.321, allocations: 0.5273 MB / 1.049 GB, free: 33.82 MB / 0.5261 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1081): * Single equations (assignments): 1076 * 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 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0097/2.33, allocations: 3.115 MB / 1.052 GB, free: 30.69 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002174/2.332, allocations: 0.5784 MB / 1.052 GB, free: 30.11 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02604/2.359, allocations: 9.54 MB / 1.062 GB, free: 20.52 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.097e-05/2.359, allocations: 39.98 kB / 1.062 GB, free: 20.48 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.929e-05/2.359, allocations: 16 kB / 1.062 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001267/2.359, allocations: 19.94 kB / 1.062 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05097/2.41, allocations: 18.99 MB / 1.08 GB, free: 1.344 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-05/2.41, allocations: 0 / 1.08 GB, free: 1.344 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003192/2.413, allocations: 0.4999 MB / 1.081 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01424/2.428, allocations: 3.67 MB / 1.084 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001092/2.429, allocations: 64.61 kB / 1.084 GB, free: 13.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03478/2.463, allocations: 19.63 MB / 1.104 GB, free: 9.207 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/2.464, allocations: 3.844 kB / 1.104 GB, free: 9.207 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3907/2.854, allocations: 14.05 MB / 1.117 GB, free: 131.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002033/2.856, allocations: 0.5781 MB / 1.118 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001247/2.858, allocations: 62.77 kB / 1.118 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003091/2.861, allocations: 232.8 kB / 1.118 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008517/2.862, allocations: 228.7 kB / 1.118 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002776/2.862, allocations: 87.23 kB / 1.118 GB, free: 131.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.007711/2.87, allocations: 3.767 MB / 1.122 GB, free: 131.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.12e-07/2.87, allocations: 0 / 1.122 GB, free: 131.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.014/2.884, allocations: 1.84 MB / 1.124 GB, free: 131.5 MB / 0.5573 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * 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): 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.03256/2.916, allocations: 14.9 MB / 1.138 GB, free: 130.2 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02016/2.936, allocations: 9.569 MB / 1.148 GB, free: 128 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.448e-05/2.936, allocations: 0 / 1.148 GB, free: 128 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007281/2.944, allocations: 3.749 MB / 1.151 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006701/2.951, allocations: 0.7139 MB / 1.152 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1773/3.128, allocations: 190.7 MB / 1.338 GB, free: 6.781 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008961/3.137, allocations: 4.986 MB / 1.343 GB, free: 3.207 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.00834/3.145, allocations: 2.786 MB / 1.346 GB, free: 1.438 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3322/3.477, allocations: 3.562 MB / 1.349 GB, free: 179.1 MB / 0.6042 GB Notification: Performance of SimCode: time 9.22e-07/3.478, allocations: 0.7812 kB / 1.349 GB, free: 179.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2488/3.726, allocations: 140.7 MB / 1.487 GB, free: 105.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002143/3.727, allocations: 206.9 kB / 1.487 GB, free: 105.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/11.41, allocations: 4.062 kB / 1.487 GB, free: 105.6 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat