Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",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.002075/0.002081, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.16/2.16, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.737e-05/2.739e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3312, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1485/0.4797, allocations: 92.19 MB / 454.6 MB, free: 10 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/0.4801, allocations: 87.95 kB / 454.7 MB, free: 9.918 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6022/1.082, allocations: 78.39 MB / 0.5206 GB, free: 96.48 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.284e-06/1.082, allocations: 0 / 0.5206 GB, free: 96.48 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002133/1.083, allocations: 79.31 kB / 0.5207 GB, free: 96.48 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.02161/1.104, allocations: 4.154 MB / 0.5247 GB, free: 94.77 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/1.104, allocations: 11.36 kB / 0.5247 GB, free: 94.77 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01729/1.122, allocations: 2.257 MB / 0.527 GB, free: 94.48 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01734/1.139, allocations: 4.403 MB / 0.5313 GB, free: 93.91 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002699/1.139, allocations: 143.2 kB / 0.5314 GB, free: 93.9 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002068/1.141, allocations: 253 kB / 0.5316 GB, free: 93.89 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01438/1.156, allocations: 5.945 MB / 0.5374 GB, free: 92.58 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02206/1.178, allocations: 9.274 MB / 0.5465 GB, free: 87.27 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002055/1.178, allocations: 54.16 kB / 0.5465 GB, free: 87.24 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001391/1.18, allocations: 33.03 kB / 0.5466 GB, free: 87.24 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002155/1.182, allocations: 1.034 MB / 0.5476 GB, free: 87.04 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0639/1.246, allocations: 48.41 MB / 0.5949 GB, free: 42.43 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004323/1.25, allocations: 2.403 MB / 0.5972 GB, free: 39.89 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002427/1.252, allocations: 1.245 MB / 0.5984 GB, free: 38.63 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001127/1.254, allocations: 0.9864 MB / 0.5994 GB, free: 37.49 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/1.254, allocations: 63.2 kB / 0.5994 GB, free: 37.41 MB / 395.1 MB Notification: Performance of pre-optimization done (n=158): time 5.11e-06/1.254, allocations: 0 / 0.5994 GB, free: 37.41 MB / 395.1 MB Notification: Performance of matching and sorting (n=165): time 0.03262/1.286, allocations: 9.258 MB / 0.6085 GB, free: 28.04 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/1.286, allocations: 141.8 kB / 0.6086 GB, free: 27.86 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006288/1.293, allocations: 2.959 MB / 0.6115 GB, free: 24.91 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004015/1.293, allocations: 29.7 kB / 0.6115 GB, free: 24.87 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/1.296, allocations: 3.157 MB / 0.6146 GB, free: 21.67 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.297, allocations: 0.6519 MB / 0.6153 GB, free: 21.01 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007138/1.298, allocations: 0 / 0.6153 GB, free: 21.01 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000478/1.298, allocations: 0.5835 MB / 0.6158 GB, free: 20.41 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004409/1.302, allocations: 1.871 MB / 0.6177 GB, free: 18.54 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007392/1.31, allocations: 5.898 MB / 0.6234 GB, free: 10.61 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007197/1.317, allocations: 3.294 MB / 0.6266 GB, free: 7.316 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001399/1.317, allocations: 44 kB / 0.6267 GB, free: 7.273 MB / 395.1 MB Notification: Performance of matching and sorting (n=840) (initialization): time 0.02458/1.342, allocations: 7.875 MB / 0.6344 GB, free: 15.39 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001342/1.342, allocations: 68 kB / 0.6344 GB, free: 15.32 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01089/1.353, allocations: 2.687 MB / 0.6371 GB, free: 12.63 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009223/1.362, allocations: 1.518 MB / 0.6385 GB, free: 11.1 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008814/1.371, allocations: 1.431 MB / 0.6399 GB, free: 9.664 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009745/1.381, allocations: 5.369 MB / 0.6452 GB, free: 4.047 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00742/1.388, allocations: 323.3 kB / 0.6455 GB, free: 3.73 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001745/1.39, allocations: 411.2 kB / 0.6459 GB, free: 3.336 MB / 411.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring2.s:VARIABLE(unit = "m" ) "(Guarded) distance between the origin of frame_a and the origin of frame_b (>= s_small))" type: Real spring3.r_rel_0[1]:VARIABLE(unit = "m" ) "Position vector from frame_a to frame_b resolved in world frame" type: Real [3] spring1.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real spring1.s:VARIABLE(unit = "m" ) "(Guarded) distance between the origin of frame_a and the origin of frame_b (>= s_small))" type: Real spring3.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 661 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (768): * Single equations (assignments): 758 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {7 28} Notification: Performance of prepare postOptimizeDAE: time 0.001952/1.392, allocations: 475.7 kB / 0.6463 GB, free: 2.871 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3036/1.696, allocations: 3.355 MB / 0.6496 GB, free: 96.12 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/1.697, allocations: 310.2 kB / 0.6499 GB, free: 96.12 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/1.708, allocations: 2.984 MB / 0.6528 GB, free: 96 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01039/1.718, allocations: 2.571 MB / 0.6553 GB, free: 95.88 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.804e-05/1.718, allocations: 3.031 kB / 0.6553 GB, free: 95.88 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.548e-05/1.719, allocations: 15.42 kB / 0.6553 GB, free: 95.87 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02793/1.746, allocations: 8.078 MB / 0.6632 GB, free: 95.26 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.842e-05/1.747, allocations: 0.7188 kB / 0.6632 GB, free: 95.26 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001995/1.749, allocations: 208.1 kB / 0.6634 GB, free: 95.26 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008347/1.757, allocations: 1.39 MB / 0.6648 GB, free: 95.21 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004068/1.757, allocations: 16.44 kB / 0.6648 GB, free: 95.21 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009301/1.767, allocations: 5.615 MB / 0.6703 GB, free: 92.25 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001056/1.768, allocations: 1.395 MB / 0.6717 GB, free: 90.95 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/1.782, allocations: 5.28 MB / 0.6768 GB, free: 89.29 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/1.783, allocations: 352.7 kB / 0.6771 GB, free: 89.19 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008329/1.784, allocations: 13.81 kB / 0.6772 GB, free: 89.19 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002891/1.787, allocations: 120.2 kB / 0.6773 GB, free: 89.18 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004488/1.787, allocations: 90 kB / 0.6774 GB, free: 89.17 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/1.788, allocations: 53.09 kB / 0.6774 GB, free: 89.16 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004866/1.793, allocations: 1.933 MB / 0.6793 GB, free: 88.45 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.082e-06/1.793, allocations: 6.062 kB / 0.6793 GB, free: 88.45 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.007542/1.8, allocations: 0.893 MB / 0.6802 GB, free: 88.45 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 89 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {7 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01317/1.813, allocations: 5.873 MB / 0.6859 GB, free: 85.85 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01307/1.826, allocations: 5.105 MB / 0.6909 GB, free: 84.16 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/1.827, allocations: 0 / 0.6909 GB, free: 84.16 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006373/1.833, allocations: 1.988 MB / 0.6928 GB, free: 83.31 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/1.836, allocations: 297.9 kB / 0.6931 GB, free: 83.18 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02824/1.864, allocations: 9.025 MB / 0.7019 GB, free: 80.02 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006524/1.87, allocations: 3.19 MB / 0.705 GB, free: 78.79 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004006/1.875, allocations: 1.804 MB / 0.7068 GB, free: 77.36 MB / 411.1 MB Notification: Performance of SimCode: time 1.623e-06/1.875, allocations: 0 / 0.7068 GB, free: 77.36 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.995/6.869, allocations: 157 MB / 0.8601 GB, free: 108.6 MB / 443.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat