Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.FreeBody,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",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.001021/0.001021, allocations: 172.3 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008237/0.0008236, allocations: 74.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.968e-05/2.987e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08745/0.08749, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2888/0.3763, allocations: 93.75 MB / 463.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.3767, allocations: 86.08 kB / 464 MB, free: 15.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1829/0.5596, allocations: 73.62 MB / 0.525 GB, free: 6.824 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5596, allocations: 0 / 0.525 GB, free: 6.824 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001515/0.5598, allocations: 68 kB / 0.525 GB, free: 6.758 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.01419/0.574, allocations: 3.862 MB / 0.5288 GB, free: 2.836 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.5741, allocations: 8.031 kB / 0.5288 GB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001945/0.576, allocations: 0.6836 MB / 0.5295 GB, free: 2.133 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2176/0.7936, allocations: 2.158 MB / 0.5316 GB, free: 93.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/0.8063, allocations: 4.479 MB / 0.536 GB, free: 93.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002652/0.8066, allocations: 288 kB / 0.5362 GB, free: 93.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001372/0.808, allocations: 374.1 kB / 0.5366 GB, free: 93.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.8253, allocations: 9.266 MB / 0.5456 GB, free: 90.83 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001418/0.8255, allocations: 53.12 kB / 0.5457 GB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005287/0.8261, allocations: 186.5 kB / 0.5459 GB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001344/0.8274, allocations: 0.9084 MB / 0.5468 GB, free: 90.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01392/0.8413, allocations: 7.454 MB / 0.554 GB, free: 90.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03781/0.8792, allocations: 43.92 MB / 0.5969 GB, free: 58.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007187/0.8864, allocations: 3.419 MB / 0.6003 GB, free: 57.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001606/0.8881, allocations: 1.413 MB / 0.6016 GB, free: 56.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007827/0.8959, allocations: 6.872 MB / 0.6084 GB, free: 52.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.896, allocations: 54.8 kB / 0.6084 GB, free: 52.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 4.369e-06/0.896, allocations: 2.5 kB / 0.6084 GB, free: 52.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=139): time 0.01935/0.9154, allocations: 9.353 MB / 0.6175 GB, free: 48.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009747/0.9164, allocations: 1.619 MB / 0.6191 GB, free: 47.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003969/0.9204, allocations: 3.143 MB / 0.6222 GB, free: 46.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002279/0.9206, allocations: 45.3 kB / 0.6222 GB, free: 45.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.9219, allocations: 2.804 MB / 0.625 GB, free: 43.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005198/0.9225, allocations: 0.5711 MB / 0.6255 GB, free: 43.31 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.9227, allocations: 108 kB / 0.6256 GB, free: 43.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002176/0.9229, allocations: 0.5345 MB / 0.6262 GB, free: 42.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00214/0.925, allocations: 1.848 MB / 0.628 GB, free: 41.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003262/0.9283, allocations: 5.286 MB / 0.6331 GB, free: 34.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003335/0.9317, allocations: 3.098 MB / 0.6361 GB, free: 31.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.793e-05/0.9317, allocations: 36 kB / 0.6362 GB, free: 31.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.01612/0.9478, allocations: 8.369 MB / 0.6444 GB, free: 24.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.277e-05/0.9479, allocations: 60.03 kB / 0.6444 GB, free: 24.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008442/0.9564, allocations: 3.132 MB / 0.6475 GB, free: 22.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008577/0.965, allocations: 1.943 MB / 0.6494 GB, free: 20.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00374/0.9688, allocations: 1.246 MB / 0.6506 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006212/0.975, allocations: 5.683 MB / 0.6561 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004155/0.9792, allocations: 371.5 kB / 0.6565 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006177/0.9798, allocations: 347 kB / 0.6568 GB, free: 14.06 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 559 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (674): * Single equations (assignments): 665 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006877/0.9805, allocations: 0.5319 MB / 0.6573 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004154/0.9809, allocations: 300.1 kB / 0.6576 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004718/0.9857, allocations: 2.746 MB / 0.6603 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00369/0.9894, allocations: 2.321 MB / 0.6626 GB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.9894, allocations: 0 / 0.6626 GB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.9894, allocations: 14.12 kB / 0.6626 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/1.001, allocations: 7.824 MB / 0.6702 GB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/1.001, allocations: 0 / 0.6702 GB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000968/1.002, allocations: 223.7 kB / 0.6704 GB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00265/1.005, allocations: 1.041 MB / 0.6715 GB, free: 132 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/1.005, allocations: 31.98 kB / 0.6715 GB, free: 100 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00543/1.01, allocations: 4.959 MB / 0.6763 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001023/1.011, allocations: 1.478 MB / 0.6778 GB, free: 9.262 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007653/1.019, allocations: 5.041 MB / 0.6827 GB, free: 4.141 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/1.02, allocations: 369 kB / 0.6831 GB, free: 3.758 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004158/1.02, allocations: 27.98 kB / 0.6831 GB, free: 3.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/1.022, allocations: 131.8 kB / 0.6832 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/1.022, allocations: 84.64 kB / 0.6833 GB, free: 3.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/1.022, allocations: 39.98 kB / 0.6833 GB, free: 3.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003521/1.026, allocations: 2.167 MB / 0.6854 GB, free: 1.324 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.026, allocations: 0 / 0.6854 GB, free: 1.324 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004498/1.03, allocations: 0.9668 MB / 0.6864 GB, free: 376 kB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 98 * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2086/1.239, allocations: 6.023 MB / 0.6923 GB, free: 97.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009613/1.248, allocations: 5.079 MB / 0.6972 GB, free: 96.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/1.248, allocations: 1 kB / 0.6972 GB, free: 96.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003975/1.252, allocations: 2.006 MB / 0.6992 GB, free: 96.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/1.255, allocations: 364.7 kB / 0.6995 GB, free: 96.19 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/1.27, allocations: 8.202 MB / 0.7075 GB, free: 94.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002468/1.273, allocations: 2.98 MB / 0.7105 GB, free: 93.82 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003626/1.276, allocations: 1.707 MB / 0.7121 GB, free: 93.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001639/1.278, allocations: 1.617 MB / 0.7137 GB, free: 93.78 MB / 426.7 MB Notification: Performance of SimCode: time 7.72e-07/1.278, allocations: 0 / 0.7137 GB, free: 93.78 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09412/1.372, allocations: 70.03 MB / 0.7821 GB, free: 56.06 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/1.372, allocations: 190.8 kB / 0.7823 GB, free: 55.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.63/5.002, allocations: 0 / 0.7823 GB, free: 55.84 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat