Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 223.2 MB / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009982/0.0009983, allocations: 92.38 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002971/0.0002971, allocations: 12 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2638, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.396, allocations: 104.9 MB / 0.4946 GB, free: 7.488 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/0.3963, allocations: 91.94 kB / 0.4947 GB, free: 7.398 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5485/0.9448, allocations: 137.8 MB / 0.6293 GB, free: 14.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.9449, allocations: 4 kB / 0.6293 GB, free: 14.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005589/0.9454, allocations: 136 kB / 0.6295 GB, free: 14.1 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.02535/0.9708, allocations: 7.615 MB / 0.6369 GB, free: 6.398 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.9709, allocations: 8.031 kB / 0.6369 GB, free: 6.391 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005495/0.9764, allocations: 1.146 MB / 0.638 GB, free: 5.234 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03174/1.008, allocations: 7.553 MB / 0.6454 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02616/1.034, allocations: 9.133 MB / 0.6543 GB, free: 4.441 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005856/1.035, allocations: 492.9 kB / 0.6548 GB, free: 3.957 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003778/1.039, allocations: 0.6519 MB / 0.6554 GB, free: 3.305 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2943/1.333, allocations: 16.73 MB / 0.6718 GB, free: 56.67 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009564/1.334, allocations: 100.8 kB / 0.6719 GB, free: 56.67 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004092/1.338, allocations: 317.2 kB / 0.6722 GB, free: 56.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003323/1.342, allocations: 1.583 MB / 0.6737 GB, free: 56.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03262/1.374, allocations: 13.77 MB / 0.6872 GB, free: 56.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0798/1.454, allocations: 74.32 MB / 0.7597 GB, free: 23.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01952/1.474, allocations: 7.752 MB / 0.7673 GB, free: 21.56 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02837/1.502, allocations: 18.65 MB / 0.7855 GB, free: 10.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.86e-05/1.502, allocations: 67.03 kB / 0.7856 GB, free: 10.46 MB / 442.7 MB Notification: Performance of pre-optimization done (n=287): time 6.682e-06/1.502, allocations: 0 / 0.7856 GB, free: 10.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=370): time 0.1989/1.701, allocations: 50.9 MB / 0.8353 GB, free: 1.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001765/1.701, allocations: 274.5 kB / 0.8356 GB, free: 1.176 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2886/1.99, allocations: 5.355 MB / 0.8408 GB, free: 104.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008459/1.991, allocations: 81.11 kB / 0.8409 GB, free: 104.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003582/1.994, allocations: 4.757 MB / 0.8455 GB, free: 103.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001752/1.996, allocations: 1.357 MB / 0.8468 GB, free: 102.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006103/1.997, allocations: 183.2 kB / 0.847 GB, free: 102.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004134/1.997, allocations: 0.7014 MB / 0.8477 GB, free: 102.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00506/2.002, allocations: 3.776 MB / 0.8514 GB, free: 102.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007924/2.01, allocations: 8.978 MB / 0.8601 GB, free: 95.79 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/2.02, allocations: 5.65 MB / 0.8657 GB, free: 95.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002247/2.021, allocations: 53.56 kB / 0.8657 GB, free: 95.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03532/2.056, allocations: 16.12 MB / 0.8815 GB, free: 94.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004154/2.056, allocations: 83.5 kB / 0.8815 GB, free: 94.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004636/2.057, allocations: 180.6 kB / 0.8817 GB, free: 94.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01359/2.07, allocations: 4.072 MB / 0.8857 GB, free: 94.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007982/2.078, allocations: 2.046 MB / 0.8877 GB, free: 94.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03164/2.11, allocations: 21.72 MB / 0.9089 GB, free: 84.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008458/2.119, allocations: 0.5441 MB / 0.9094 GB, free: 84.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002067/2.121, allocations: 0.5264 MB / 0.9099 GB, free: 84.66 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 () * 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.007756/2.129, allocations: 3.121 MB / 0.913 GB, free: 83.24 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001751/2.13, allocations: 0.5695 MB / 0.9135 GB, free: 82.93 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02158/2.152, allocations: 9.564 MB / 0.9229 GB, free: 79.78 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.925e-05/2.152, allocations: 42.95 kB / 0.9229 GB, free: 79.78 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.238e-05/2.152, allocations: 15.47 kB / 0.9229 GB, free: 79.78 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.138e-05/2.152, allocations: 16.36 kB / 0.9229 GB, free: 79.78 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04299/2.195, allocations: 19.05 MB / 0.9416 GB, free: 65.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.543e-05/2.195, allocations: 0 / 0.9416 GB, free: 65.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002901/2.198, allocations: 0.5057 MB / 0.942 GB, free: 64.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01228/2.21, allocations: 3.617 MB / 0.9456 GB, free: 62.44 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009558/2.211, allocations: 63.8 kB / 0.9456 GB, free: 62.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02815/2.24, allocations: 19.64 MB / 0.9648 GB, free: 45.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/2.24, allocations: 0 / 0.9648 GB, free: 45.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02728/2.267, allocations: 14.11 MB / 0.9786 GB, free: 33.99 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002202/2.269, allocations: 0.5893 MB / 0.9792 GB, free: 33.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002096/2.271, allocations: 56 kB / 0.9792 GB, free: 33.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004363/2.276, allocations: 221.8 kB / 0.9794 GB, free: 33.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001179/2.277, allocations: 228.8 kB / 0.9797 GB, free: 33.06 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006531/2.278, allocations: 98.42 kB / 0.9797 GB, free: 32.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008449/2.286, allocations: 3.757 MB / 0.9834 GB, free: 29.91 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.286, allocations: 0 / 0.9834 GB, free: 29.91 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0119/2.298, allocations: 1.85 MB / 0.9852 GB, free: 28.07 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 () * 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.02897/2.327, allocations: 14.97 MB / 0.9998 GB, free: 13.68 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2755/2.603, allocations: 9.663 MB / 1.009 GB, free: 98.74 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/2.603, allocations: 3.625 kB / 1.009 GB, free: 98.74 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006401/2.609, allocations: 3.802 MB / 1.013 GB, free: 98.43 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005287/2.614, allocations: 0.7143 MB / 1.014 GB, free: 98.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1739/2.788, allocations: 190.9 MB / 1.2 GB, free: 5.535 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01101/2.799, allocations: 5.003 MB / 1.205 GB, free: 3.941 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009245/2.809, allocations: 2.803 MB / 1.208 GB, free: 3.715 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006895/2.816, allocations: 3.255 MB / 1.211 GB, free: 1.039 MB / 0.5261 GB Notification: Performance of SimCode: time 1.283e-06/2.816, allocations: 3.562 kB / 1.211 GB, free: 1.039 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.454/3.27, allocations: 141 MB / 1.349 GB, free: 93.65 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001306/3.27, allocations: 221.7 kB / 1.349 GB, free: 93.41 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.045/10.31, allocations: 0 / 1.349 GB, free: 93.41 MB / 0.5261 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat