Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001261/0.001261, allocations: 197 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.54/1.54, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009222/0.0009223, allocations: 92.47 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.665e-05/5.735e-05, allocations: 7.984 kB / 350.7 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1234, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4287/0.5522, allocations: 105.5 MB / 0.4957 GB, free: 232 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.5525, allocations: 92.03 kB / 0.4958 GB, free: 184 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6693/1.222, allocations: 143.1 MB / 0.6356 GB, free: 76.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.222, allocations: 0 / 0.6356 GB, free: 76.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004874/1.222, allocations: 140.8 kB / 0.6357 GB, free: 76.92 MB / 442.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.02441/1.247, allocations: 7.088 MB / 0.6426 GB, free: 74.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/1.247, allocations: 7.656 kB / 0.6427 GB, free: 74.29 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00596/1.253, allocations: 1.145 MB / 0.6438 GB, free: 74.19 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03074/1.284, allocations: 7.565 MB / 0.6512 GB, free: 73.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02269/1.306, allocations: 8.198 MB / 0.6592 GB, free: 70.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005579/1.307, allocations: 493.8 kB / 0.6596 GB, free: 70.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003587/1.311, allocations: 0.6515 MB / 0.6603 GB, free: 70.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04603/1.357, allocations: 16.59 MB / 0.6765 GB, free: 59.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007843/1.357, allocations: 96.81 kB / 0.6766 GB, free: 59.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004036/1.362, allocations: 319.3 kB / 0.6769 GB, free: 59.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002957/1.365, allocations: 1.582 MB / 0.6784 GB, free: 58.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03274/1.397, allocations: 13.51 MB / 0.6916 GB, free: 45.11 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4525/1.85, allocations: 74.32 MB / 0.7642 GB, free: 38.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02154/1.871, allocations: 7.681 MB / 0.7717 GB, free: 38.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006376/1.878, allocations: 3.976 MB / 0.7756 GB, free: 38.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03965/1.918, allocations: 18.65 MB / 0.7938 GB, free: 33.72 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001021/1.918, allocations: 69.94 kB / 0.7939 GB, free: 33.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=287): time 8.526e-06/1.918, allocations: 0 / 0.7939 GB, free: 33.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=370): time 0.1412/2.059, allocations: 38.73 MB / 0.8317 GB, free: 25.45 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001568/2.059, allocations: 274.8 kB / 0.8319 GB, free: 25.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01367/2.073, allocations: 5.272 MB / 0.8371 GB, free: 23.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001313/2.074, allocations: 83.55 kB / 0.8372 GB, free: 23.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004781/2.079, allocations: 4.761 MB / 0.8418 GB, free: 19.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002633/2.082, allocations: 1.356 MB / 0.8431 GB, free: 18.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001913/2.084, allocations: 186.3 kB / 0.8433 GB, free: 18.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001253/2.085, allocations: 0.6977 MB / 0.844 GB, free: 17.86 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007508/2.092, allocations: 3.663 MB / 0.8476 GB, free: 16.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.012/2.104, allocations: 8.87 MB / 0.8562 GB, free: 8.379 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/2.115, allocations: 5.595 MB / 0.8617 GB, free: 6.574 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003483/2.115, allocations: 52 kB / 0.8618 GB, free: 6.574 MB / 458.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.04058/2.156, allocations: 16 MB / 0.8774 GB, free: 13.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003042/2.156, allocations: 88.06 kB / 0.8775 GB, free: 13.53 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004238/2.157, allocations: 190.1 kB / 0.8776 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01367/2.17, allocations: 4.012 MB / 0.8816 GB, free: 10.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008254/2.179, allocations: 2.044 MB / 0.8836 GB, free: 8.773 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03827/2.217, allocations: 20.88 MB / 0.9039 GB, free: 7.121 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01124/2.228, allocations: 0.5405 MB / 0.9045 GB, free: 6.656 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003035/2.231, allocations: 0.5265 MB / 0.905 GB, free: 6.141 MB / 490.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.004758/2.236, allocations: 0.8041 MB / 0.9058 GB, free: 5.34 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002486/2.238, allocations: 0.5746 MB / 0.9063 GB, free: 4.762 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02661/2.265, allocations: 9.449 MB / 0.9156 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.231e-05/2.265, allocations: 40 kB / 0.9156 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.426e-05/2.265, allocations: 16 kB / 0.9156 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.429e-05/2.265, allocations: 15.94 kB / 0.9156 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05398/2.319, allocations: 18.94 MB / 0.9341 GB, free: 8.574 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.011e-05/2.32, allocations: 0 / 0.9341 GB, free: 8.574 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003295/2.323, allocations: 0.5124 MB / 0.9346 GB, free: 8.062 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01283/2.336, allocations: 3.566 MB / 0.9381 GB, free: 4.484 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001143/2.337, allocations: 59.98 kB / 0.9382 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3869/2.724, allocations: 18.71 MB / 0.9564 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/2.724, allocations: 3 kB / 0.9564 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02839/2.752, allocations: 13.94 MB / 0.9701 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002569/2.755, allocations: 0.58 MB / 0.9706 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002628/2.758, allocations: 66.23 kB / 0.9707 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004458/2.762, allocations: 219.5 kB / 0.9709 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001279/2.763, allocations: 228.3 kB / 0.9711 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003641/2.764, allocations: 91.25 kB / 0.9712 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009666/2.773, allocations: 3.676 MB / 0.9748 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.152e-06/2.773, allocations: 1.5 kB / 0.9748 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01379/2.787, allocations: 1.853 MB / 0.9766 GB, free: 133.4 MB / 0.5105 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.03877/2.826, allocations: 14.82 MB / 0.9911 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01884/2.845, allocations: 9.491 MB / 1 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/2.845, allocations: 3.938 kB / 1 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00715/2.852, allocations: 3.721 MB / 1.004 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006294/2.858, allocations: 0.7153 MB / 1.005 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04606/2.905, allocations: 15.34 MB / 1.02 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01007/2.915, allocations: 5.002 MB / 1.025 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0093/2.924, allocations: 2.804 MB / 1.027 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006437/2.931, allocations: 3.256 MB / 1.03 GB, free: 114 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/2.931, allocations: 0 / 1.03 GB, free: 114 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5669/3.497, allocations: 140.9 MB / 1.168 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/3.498, allocations: 194.7 kB / 1.168 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/10.9, allocations: 0 / 1.168 GB, free: 113.4 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat