Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009979/0.0009979, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009816/0.0009818, allocations: 91.61 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.213e-05/2.207e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1149, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3991/0.514, allocations: 93.76 MB / 481.3 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.5143, allocations: 87.95 kB / 481.4 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2017/0.716, allocations: 79.5 MB / 0.5478 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.7161, allocations: 0 / 0.5478 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001525/0.7162, allocations: 83.98 kB / 0.5478 GB, free: 0.6641 MB / 426.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.311/1.027, allocations: 4.14 MB / 0.5519 GB, free: 95.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.907e-05/1.027, allocations: 10.62 kB / 0.5519 GB, free: 95.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.013/1.04, allocations: 2.253 MB / 0.5541 GB, free: 95.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01505/1.055, allocations: 4.251 MB / 0.5582 GB, free: 95.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004275/1.056, allocations: 142.2 kB / 0.5584 GB, free: 95.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002284/1.058, allocations: 249.4 kB / 0.5586 GB, free: 95.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01421/1.072, allocations: 5.949 MB / 0.5644 GB, free: 95.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02068/1.093, allocations: 9.283 MB / 0.5735 GB, free: 92.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001818/1.093, allocations: 54.69 kB / 0.5735 GB, free: 92.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007981/1.094, allocations: 34.47 kB / 0.5736 GB, free: 92.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001267/1.095, allocations: 1.031 MB / 0.5746 GB, free: 92.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04215/1.138, allocations: 48.39 MB / 0.6218 GB, free: 57.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002524/1.14, allocations: 2.399 MB / 0.6242 GB, free: 55.78 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/1.141, allocations: 1.249 MB / 0.6254 GB, free: 55.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000654/1.142, allocations: 0.9915 MB / 0.6264 GB, free: 54.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/1.142, allocations: 60.88 kB / 0.6264 GB, free: 54.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=158): time 3.938e-06/1.142, allocations: 0 / 0.6264 GB, free: 54.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=165): time 0.01909/1.161, allocations: 9.213 MB / 0.6354 GB, free: 50.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/1.161, allocations: 144.4 kB / 0.6356 GB, free: 50.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005208/1.167, allocations: 2.953 MB / 0.6384 GB, free: 48.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003781/1.167, allocations: 28.52 kB / 0.6385 GB, free: 48.94 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/1.169, allocations: 3.156 MB / 0.6416 GB, free: 46.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007526/1.169, allocations: 0.6555 MB / 0.6422 GB, free: 45.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/1.17, allocations: 0 / 0.6422 GB, free: 45.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002767/1.17, allocations: 0.5831 MB / 0.6428 GB, free: 45.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/1.172, allocations: 1.878 MB / 0.6446 GB, free: 44.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003768/1.176, allocations: 5.892 MB / 0.6504 GB, free: 38.64 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003615/1.179, allocations: 3.294 MB / 0.6536 GB, free: 36.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.728e-05/1.18, allocations: 44 kB / 0.6536 GB, free: 36.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=840) (initialization): time 0.01417/1.194, allocations: 7.915 MB / 0.6613 GB, free: 29.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-05/1.194, allocations: 65.56 kB / 0.6614 GB, free: 29.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005187/1.199, allocations: 2.705 MB / 0.664 GB, free: 27.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004521/1.204, allocations: 1.512 MB / 0.6655 GB, free: 26.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00444/1.208, allocations: 1.431 MB / 0.6669 GB, free: 24.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004558/1.213, allocations: 5.373 MB / 0.6722 GB, free: 19.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005132/1.218, allocations: 317.2 kB / 0.6725 GB, free: 19.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/1.219, allocations: 410.3 kB / 0.6729 GB, free: 19.27 MB / 426.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.0009975/1.22, allocations: 486.3 kB / 0.6733 GB, free: 18.79 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006281/1.226, allocations: 3.355 MB / 0.6766 GB, free: 16.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006048/1.227, allocations: 308.1 kB / 0.6769 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005934/1.233, allocations: 2.991 MB / 0.6798 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004627/1.237, allocations: 2.568 MB / 0.6823 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/1.238, allocations: 4 kB / 0.6823 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-05/1.238, allocations: 7.406 kB / 0.6823 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01342/1.251, allocations: 8.089 MB / 0.6902 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/1.251, allocations: 0 / 0.6902 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009033/1.252, allocations: 203.7 kB / 0.6904 GB, free: 4.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003966/1.256, allocations: 1.397 MB / 0.6918 GB, free: 2.715 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001695/1.256, allocations: 19.97 kB / 0.6918 GB, free: 2.695 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005871/1.262, allocations: 5.609 MB / 0.6973 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001069/1.263, allocations: 1.393 MB / 0.6986 GB, free: 11.33 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009438/1.273, allocations: 5.279 MB / 0.7038 GB, free: 6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/1.274, allocations: 357.1 kB / 0.7041 GB, free: 5.629 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003923/1.274, allocations: 11.94 kB / 0.7042 GB, free: 5.617 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/1.276, allocations: 111.8 kB / 0.7043 GB, free: 5.508 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/1.276, allocations: 97.16 kB / 0.7044 GB, free: 5.414 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/1.276, allocations: 43.98 kB / 0.7044 GB, free: 5.371 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003106/1.279, allocations: 1.928 MB / 0.7063 GB, free: 3.453 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.279, allocations: 0 / 0.7063 GB, free: 3.453 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005646/1.285, allocations: 0.899 MB / 0.7072 GB, free: 2.559 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.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.2944/1.579, allocations: 5.865 MB / 0.7129 GB, free: 99.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0125/1.592, allocations: 5.101 MB / 0.7179 GB, free: 98.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.592, allocations: 0.8125 kB / 0.7179 GB, free: 98.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004755/1.596, allocations: 1.99 MB / 0.7198 GB, free: 98.44 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/1.599, allocations: 289.7 kB / 0.7201 GB, free: 98.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03109/1.63, allocations: 8.568 MB / 0.7285 GB, free: 96.74 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004244/1.634, allocations: 3.185 MB / 0.7316 GB, free: 95.95 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004805/1.639, allocations: 1.906 MB / 0.7334 GB, free: 95.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0028/1.642, allocations: 1.751 MB / 0.7351 GB, free: 95.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.253e-06/1.642, allocations: 0 / 0.7351 GB, free: 95.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1111/1.753, allocations: 69.57 MB / 0.8031 GB, free: 61.3 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/1.753, allocations: 155.9 kB / 0.8032 GB, free: 61.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.287/6.041, allocations: 0 / 0.8032 GB, free: 61.11 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat