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.001503/0.001503, allocations: 185.9 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.946/1.946, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001152/0.001152, allocations: 89.55 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004167/0.0004166, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3498, allocations: 47.56 MB / 374.6 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2236/0.5735, allocations: 103.2 MB / 477.8 MB, free: 9.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003487/0.5739, allocations: 99.94 kB / 477.9 MB, free: 9.312 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8121/1.386, allocations: 136.3 MB / 0.5999 GB, free: 14.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.986e-06/1.386, allocations: 0 / 0.5999 GB, free: 14.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005071/1.387, allocations: 128 kB / 0.6 GB, free: 14.6 MB / 378.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.03326/1.42, allocations: 7.675 MB / 0.6075 GB, free: 6.836 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/1.42, allocations: 12.03 kB / 0.6075 GB, free: 6.824 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005645/1.426, allocations: 1.142 MB / 0.6086 GB, free: 5.672 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05776/1.483, allocations: 7.557 MB / 0.616 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03946/1.523, allocations: 9.744 MB / 0.6255 GB, free: 4.266 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008739/1.524, allocations: 488.9 kB / 0.626 GB, free: 3.785 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004385/1.528, allocations: 0.6558 MB / 0.6266 GB, free: 3.129 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06236/1.591, allocations: 16.73 MB / 0.643 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000711/1.591, allocations: 99.17 kB / 0.643 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003757/1.595, allocations: 315.8 kB / 0.6433 GB, free: 0.543 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3167/1.912, allocations: 1.587 MB / 0.6449 GB, free: 63.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04648/1.958, allocations: 13.76 MB / 0.6583 GB, free: 63.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.119/2.078, allocations: 74.43 MB / 0.731 GB, free: 17.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03835/2.116, allocations: 7.746 MB / 0.7386 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04627/2.162, allocations: 18.71 MB / 0.7569 GB, free: 5.312 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.792e-05/2.162, allocations: 65.69 kB / 0.7569 GB, free: 5.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=287): time 7.234e-06/2.162, allocations: 0 / 0.7569 GB, free: 5.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=370): time 0.3183/2.481, allocations: 49.78 MB / 0.8055 GB, free: 14.26 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001955/2.481, allocations: 269.8 kB / 0.8058 GB, free: 13.94 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01551/2.496, allocations: 5.4 MB / 0.8111 GB, free: 8.539 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001087/2.498, allocations: 81.7 kB / 0.8111 GB, free: 8.453 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006048/2.504, allocations: 4.566 MB / 0.8156 GB, free: 3.891 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002938/2.507, allocations: 1.362 MB / 0.8169 GB, free: 2.539 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001649/2.508, allocations: 187.4 kB / 0.8171 GB, free: 2.359 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001063/2.509, allocations: 0.6955 MB / 0.8178 GB, free: 1.652 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3281/2.838, allocations: 3.783 MB / 0.8215 GB, free: 109.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01411/2.852, allocations: 8.975 MB / 0.8302 GB, free: 102.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/2.866, allocations: 5.651 MB / 0.8358 GB, free: 102.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002039/2.866, allocations: 52.81 kB / 0.8358 GB, free: 102.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.05689/2.923, allocations: 15.89 MB / 0.8513 GB, free: 101.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001874/2.923, allocations: 83.69 kB / 0.8514 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003702/2.923, allocations: 181.5 kB / 0.8516 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02352/2.947, allocations: 4.068 MB / 0.8556 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01289/2.96, allocations: 2.044 MB / 0.8576 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05245/3.012, allocations: 21.72 MB / 0.8788 GB, free: 93.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0115/3.024, allocations: 0.5427 MB / 0.8793 GB, free: 93.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002264/3.026, allocations: 0.5215 MB / 0.8798 GB, free: 93.77 MB / 458.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 () * Number of clocked 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.009175/3.036, allocations: 3.136 MB / 0.8829 GB, free: 92.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001595/3.037, allocations: 0.5756 MB / 0.8834 GB, free: 92.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03727/3.074, allocations: 9.568 MB / 0.8928 GB, free: 89.31 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.426e-05/3.075, allocations: 39.47 kB / 0.8928 GB, free: 89.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.898e-05/3.075, allocations: 18.48 kB / 0.8928 GB, free: 89.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.802e-05/3.075, allocations: 21.05 kB / 0.8928 GB, free: 89.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06663/3.141, allocations: 19.07 MB / 0.9115 GB, free: 77.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.884e-05/3.141, allocations: 0 / 0.9115 GB, free: 77.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005112/3.147, allocations: 0.5049 MB / 0.912 GB, free: 77.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02277/3.169, allocations: 3.623 MB / 0.9155 GB, free: 74.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/3.17, allocations: 68.27 kB / 0.9156 GB, free: 74.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04792/3.218, allocations: 19.63 MB / 0.9347 GB, free: 58.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/3.218, allocations: 7.938 kB / 0.9347 GB, free: 58.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04569/3.264, allocations: 14.12 MB / 0.9485 GB, free: 46.44 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004305/3.269, allocations: 1.127 MB / 0.9496 GB, free: 45.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002129/3.271, allocations: 59.28 kB / 0.9497 GB, free: 45.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006201/3.277, allocations: 215.7 kB / 0.9499 GB, free: 45.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001562/3.279, allocations: 237.9 kB / 0.9501 GB, free: 44.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004991/3.279, allocations: 88 kB / 0.9502 GB, free: 44.71 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01027/3.289, allocations: 3.804 MB / 0.9539 GB, free: 40.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.42e-07/3.289, allocations: 3.828 kB / 0.9539 GB, free: 40.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01192/3.301, allocations: 1.851 MB / 0.9557 GB, free: 39.07 MB / 458.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 () * Number of clocked 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.04694/3.348, allocations: 14.98 MB / 0.9703 GB, free: 24.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02365/3.372, allocations: 9.661 MB / 0.9798 GB, free: 14.33 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.647e-06/3.372, allocations: 0.5 kB / 0.9798 GB, free: 14.33 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3175/3.69, allocations: 3.789 MB / 0.9835 GB, free: 104 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006203/3.696, allocations: 0.7106 MB / 0.9842 GB, free: 103.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2071/3.903, allocations: 192 MB / 1.172 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01117/3.914, allocations: 5.024 MB / 1.177 GB, free: 9.578 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008422/3.923, allocations: 3.331 MB / 1.18 GB, free: 6.895 MB / 0.5105 GB Notification: Performance of SimCode: time 9.72e-07/3.923, allocations: 0 / 1.18 GB, free: 6.895 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.8/9.723, allocations: 187 MB / 1.363 GB, free: 58.16 MB / 0.5105 GB (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