Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",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.002533/0.002533, allocations: 181.3 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.269/2.269, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.0011/0.0011, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.391e-05/3.418e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4482/0.552, allocations: 103.1 MB / 472.3 MB, free: 6.363 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.5524, allocations: 85.95 kB / 472.4 MB, free: 6.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9271/1.48, allocations: 136.4 MB / 0.5945 GB, free: 86.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.235e-06/1.48, allocations: 0 / 0.5945 GB, free: 86.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005437/1.48, allocations: 141.2 kB / 0.5947 GB, free: 86.71 MB / 410.7 MB 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.03133/1.511, allocations: 7.049 MB / 0.6016 GB, free: 81.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/1.512, allocations: 8.031 kB / 0.6016 GB, free: 81.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005919/1.517, allocations: 1.149 MB / 0.6027 GB, free: 80.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05757/1.575, allocations: 7.572 MB / 0.6101 GB, free: 72.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03588/1.611, allocations: 9.694 MB / 0.6196 GB, free: 63.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006572/1.612, allocations: 492.4 kB / 0.62 GB, free: 62.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003978/1.616, allocations: 0.6586 MB / 0.6207 GB, free: 62.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05428/1.67, allocations: 16.58 MB / 0.6369 GB, free: 44.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005778/1.671, allocations: 95.09 kB / 0.637 GB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003594/1.674, allocations: 311.8 kB / 0.6373 GB, free: 43.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003851/1.678, allocations: 1.588 MB / 0.6388 GB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04598/1.724, allocations: 13.51 MB / 0.652 GB, free: 28.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.461/2.185, allocations: 74.39 MB / 0.7246 GB, free: 45.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0401/2.226, allocations: 7.694 MB / 0.7322 GB, free: 44.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008559/2.234, allocations: 3.983 MB / 0.7361 GB, free: 44.78 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04841/2.283, allocations: 18.71 MB / 0.7543 GB, free: 39.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.497e-05/2.283, allocations: 74.84 kB / 0.7544 GB, free: 39.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 6.894e-06/2.283, allocations: 0 / 0.7544 GB, free: 39.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=370): time 0.2206/2.503, allocations: 38.95 MB / 0.7924 GB, free: 27.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/2.504, allocations: 273.4 kB / 0.7927 GB, free: 26.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01322/2.517, allocations: 5.316 MB / 0.7979 GB, free: 21.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001112/2.518, allocations: 81.7 kB / 0.798 GB, free: 21.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004187/2.522, allocations: 4.562 MB / 0.8024 GB, free: 17.76 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002354/2.525, allocations: 1.364 MB / 0.8037 GB, free: 16.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001377/2.526, allocations: 187.1 kB / 0.8039 GB, free: 16.37 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007244/2.527, allocations: 0.7032 MB / 0.8046 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009686/2.536, allocations: 3.662 MB / 0.8082 GB, free: 12.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01314/2.55, allocations: 8.866 MB / 0.8168 GB, free: 1.766 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0178/2.568, allocations: 5.799 MB / 0.8225 GB, free: 13.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002229/2.568, allocations: 52 kB / 0.8226 GB, free: 13.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.05893/2.627, allocations: 15.63 MB / 0.8378 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001675/2.627, allocations: 90.84 kB / 0.8379 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000303/2.627, allocations: 180.9 kB / 0.8381 GB, free: 336 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02424/2.652, allocations: 4.023 MB / 0.842 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01452/2.666, allocations: 2.047 MB / 0.844 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06057/2.727, allocations: 20.79 MB / 0.8643 GB, free: 5.211 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01238/2.739, allocations: 0.5462 MB / 0.8648 GB, free: 4.664 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003429/2.743, allocations: 0.5271 MB / 0.8654 GB, free: 4.141 MB / 474.7 MB 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.004399/2.747, allocations: 0.8119 MB / 0.8662 GB, free: 3.324 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002109/2.749, allocations: 0.5746 MB / 0.8667 GB, free: 2.742 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.369/3.118, allocations: 9.446 MB / 0.8759 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.547e-05/3.118, allocations: 37.94 kB / 0.876 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.001e-05/3.119, allocations: 16.84 kB / 0.876 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/3.119, allocations: 17.7 kB / 0.876 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07348/3.192, allocations: 18.94 MB / 0.8945 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.531e-05/3.192, allocations: 7.281 kB / 0.8945 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005526/3.198, allocations: 0.507 MB / 0.895 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02201/3.22, allocations: 3.57 MB / 0.8985 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001115/3.221, allocations: 67.42 kB / 0.8986 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04854/3.27, allocations: 18.72 MB / 0.9168 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/3.27, allocations: 3.375 kB / 0.9168 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04938/3.319, allocations: 13.97 MB / 0.9305 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005315/3.324, allocations: 1.12 MB / 0.9316 GB, free: 116.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002775/3.327, allocations: 59.89 kB / 0.9316 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006961/3.334, allocations: 219.5 kB / 0.9318 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001619/3.336, allocations: 222 kB / 0.932 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007467/3.337, allocations: 96.31 kB / 0.9321 GB, free: 116 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01055/3.347, allocations: 3.717 MB / 0.9358 GB, free: 114.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.403e-06/3.347, allocations: 2.812 kB / 0.9358 GB, free: 114.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0121/3.36, allocations: 1.86 MB / 0.9376 GB, free: 114.6 MB / 474.7 MB 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.04561/3.405, allocations: 14.8 MB / 0.952 GB, free: 103.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02295/3.428, allocations: 9.495 MB / 0.9613 GB, free: 95.01 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/3.428, allocations: 0 / 0.9613 GB, free: 95.01 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009524/3.438, allocations: 3.722 MB / 0.9649 GB, free: 91.62 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006411/3.444, allocations: 0.7177 MB / 0.9656 GB, free: 91.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05245/3.497, allocations: 16.12 MB / 0.9814 GB, free: 77.28 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01169/3.508, allocations: 5.032 MB / 0.9863 GB, free: 72.74 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008035/3.517, allocations: 3.334 MB / 0.9896 GB, free: 69.41 MB / 474.7 MB Notification: Performance of SimCode: time 2.224e-06/3.517, allocations: 0 / 0.9896 GB, free: 69.41 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.138/9.654, allocations: 187.1 MB / 1.172 GB, free: 25.7 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat