Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001892/0.001892, allocations: 177.2 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.744/1.744, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008658/0.0008651, allocations: 78.25 kB / 262.4 MB, free: 1.699 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.972e-05/1.975e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1042, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3764/0.4806, allocations: 92.43 MB / 455.6 MB, free: 3.172 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.481, allocations: 86.31 kB / 455.7 MB, free: 3.125 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.209/0.69, allocations: 78.41 MB / 0.5216 GB, free: 10.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6901, allocations: 0 / 0.5216 GB, free: 10.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002166/0.6903, allocations: 83.94 kB / 0.5217 GB, free: 9.969 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01901/0.7094, allocations: 4.154 MB / 0.5257 GB, free: 5.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.7094, allocations: 8.031 kB / 0.5257 GB, free: 5.742 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/0.7207, allocations: 2.252 MB / 0.5279 GB, free: 3.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2824/1.003, allocations: 4.39 MB / 0.5322 GB, free: 92.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004218/1.004, allocations: 139.8 kB / 0.5323 GB, free: 92.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002502/1.006, allocations: 251.7 kB / 0.5326 GB, free: 92.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01461/1.021, allocations: 5.945 MB / 0.5384 GB, free: 92.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02236/1.043, allocations: 9.28 MB / 0.5474 GB, free: 89.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000278/1.043, allocations: 57.06 kB / 0.5475 GB, free: 89.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001763/1.045, allocations: 35.55 kB / 0.5475 GB, free: 89.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001795/1.047, allocations: 1.023 MB / 0.5485 GB, free: 89.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04508/1.092, allocations: 48.4 MB / 0.5958 GB, free: 56.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002591/1.095, allocations: 2.404 MB / 0.5981 GB, free: 55.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/1.096, allocations: 1.24 MB / 0.5994 GB, free: 54.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007321/1.097, allocations: 1.001 MB / 0.6003 GB, free: 53.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/1.097, allocations: 52.98 kB / 0.6004 GB, free: 53.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 5.5e-06/1.097, allocations: 0 / 0.6004 GB, free: 53.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=165): time 0.01837/1.115, allocations: 9.274 MB / 0.6094 GB, free: 49.83 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/1.115, allocations: 147.8 kB / 0.6096 GB, free: 49.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004325/1.12, allocations: 2.964 MB / 0.6125 GB, free: 48.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003274/1.12, allocations: 29.23 kB / 0.6125 GB, free: 48.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/1.122, allocations: 3.161 MB / 0.6156 GB, free: 46.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007178/1.122, allocations: 0.6552 MB / 0.6162 GB, free: 45.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002118/1.123, allocations: 3.781 kB / 0.6162 GB, free: 45.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002921/1.123, allocations: 0.5823 MB / 0.6168 GB, free: 45.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002225/1.125, allocations: 1.872 MB / 0.6186 GB, free: 44.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003817/1.129, allocations: 5.887 MB / 0.6244 GB, free: 38.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003917/1.133, allocations: 3.293 MB / 0.6276 GB, free: 37.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.653e-05/1.133, allocations: 41.75 kB / 0.6276 GB, free: 37.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=840) (initialization): time 0.01488/1.148, allocations: 7.929 MB / 0.6354 GB, free: 32.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.555e-05/1.148, allocations: 64 kB / 0.6354 GB, free: 32.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005148/1.153, allocations: 2.687 MB / 0.6381 GB, free: 30.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004542/1.158, allocations: 1.522 MB / 0.6396 GB, free: 29.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004634/1.162, allocations: 1.437 MB / 0.641 GB, free: 28.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004654/1.167, allocations: 5.365 MB / 0.6462 GB, free: 23.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00588/1.173, allocations: 329.5 kB / 0.6465 GB, free: 22.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001785/1.175, allocations: 402.8 kB / 0.6469 GB, free: 22.48 MB / 410.7 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.001718/1.177, allocations: 482.3 kB / 0.6474 GB, free: 22.01 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006533/1.183, allocations: 3.356 MB / 0.6506 GB, free: 19.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007609/1.184, allocations: 308 kB / 0.6509 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006141/1.19, allocations: 2.992 MB / 0.6538 GB, free: 16.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004878/1.195, allocations: 2.582 MB / 0.6564 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.987e-05/1.195, allocations: 4 kB / 0.6564 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.85e-05/1.195, allocations: 8.953 kB / 0.6564 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01747/1.212, allocations: 8.093 MB / 0.6643 GB, free: 8.301 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/1.213, allocations: 0 / 0.6643 GB, free: 8.301 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009533/1.213, allocations: 200.7 kB / 0.6645 GB, free: 8.145 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004109/1.218, allocations: 1.392 MB / 0.6658 GB, free: 7.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002329/1.218, allocations: 20.2 kB / 0.6659 GB, free: 7.168 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005301/1.223, allocations: 5.607 MB / 0.6713 GB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007413/1.224, allocations: 1.399 MB / 0.6727 GB, free: 0.5039 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/1.235, allocations: 5.273 MB / 0.6778 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/1.236, allocations: 353 kB / 0.6782 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009773/1.237, allocations: 11.98 kB / 0.6782 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002171/1.239, allocations: 119.8 kB / 0.6783 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003736/1.24, allocations: 97.16 kB / 0.6784 GB, free: 10.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/1.24, allocations: 44.77 kB / 0.6784 GB, free: 10.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005456/1.245, allocations: 1.929 MB / 0.6803 GB, free: 8.641 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.245, allocations: 7.938 kB / 0.6803 GB, free: 8.633 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006955/1.252, allocations: 0.8956 MB / 0.6812 GB, free: 7.742 MB / 426.7 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.009558/1.262, allocations: 5.876 MB / 0.6869 GB, free: 1.812 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.268/1.53, allocations: 5.094 MB / 0.6919 GB, free: 99.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/1.53, allocations: 4.5 kB / 0.6919 GB, free: 99.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004727/1.535, allocations: 1.976 MB / 0.6939 GB, free: 99.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002657/1.538, allocations: 295.5 kB / 0.6941 GB, free: 99.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03247/1.57, allocations: 8.578 MB / 0.7025 GB, free: 97.47 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008552/1.579, allocations: 3.192 MB / 0.7056 GB, free: 96.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.006755/1.585, allocations: 1.909 MB / 0.7075 GB, free: 96.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004/1.589, allocations: 1.753 MB / 0.7092 GB, free: 96.64 MB / 426.7 MB Notification: Performance of SimCode: time 1.934e-06/1.59, allocations: 2.719 kB / 0.7092 GB, free: 96.64 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1191/1.709, allocations: 69.63 MB / 0.7772 GB, free: 63.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/1.709, allocations: 147.9 kB / 0.7774 GB, free: 63.21 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.72/6.429, allocations: 4 kB / 0.7774 GB, free: 63.21 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat