Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 99.42 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001742/0.001742, allocations: 197.5 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002837, allocations: 4 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.09941, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.212/0.3114, allocations: 32.86 MB / 391.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01933/0.3308, allocations: 8.402 MB / 399.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007851/0.3387, allocations: 164.2 kB / 399.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006742/0.3455, allocations: 1.605 MB / 401.2 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.018/0.3635, allocations: 4.792 MB / 406 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003059/0.3666, allocations: 0.4934 MB / 406.5 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005513/0.3721, allocations: 1.993 MB / 408.5 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008052/0.3802, allocations: 3.691 MB / 412.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002699/0.383, allocations: 0.9187 MB / 413.1 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002169/0.3852, allocations: 1.156 MB / 414.3 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004746/0.3857, allocations: 120 kB / 414.4 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.3876, allocations: 0.8426 MB / 415.2 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.3889, allocations: 1.368 MB / 416.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007793/0.3897, allocations: 0.7376 MB / 417.3 MB, free: 264 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004877/0.3945, allocations: 4.764 MB / 422.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3946, allocations: 4 kB / 422.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3946, allocations: 4 kB / 422.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001778/0.3948, allocations: 0 / 422.1 MB, free: 11.47 MB / 334.1 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.007545/0.4023, allocations: 3.545 MB / 425.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.4024, allocations: 8.031 kB / 425.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001253/0.4037, allocations: 0.6367 MB / 426.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007926/0.4116, allocations: 2.233 MB / 428.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005478/0.4171, allocations: 2.088 MB / 430.6 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003292/0.4175, allocations: 213.4 kB / 430.8 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001466/0.419, allocations: 371.7 kB / 431.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01905/0.438, allocations: 8.975 MB / 440.2 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.4382, allocations: 35.69 kB / 440.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000382/0.4386, allocations: 139.9 kB / 440.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002479/0.4411, allocations: 1.638 MB / 442 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/0.4567, allocations: 7.619 MB / 449.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04642/0.5032, allocations: 35.25 MB / 484.8 MB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008577/0.5118, allocations: 3.487 MB / 488.3 MB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01077/0.5226, allocations: 6.934 MB / 495.3 MB, free: 0 / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.269e-05/0.5228, allocations: 55.2 kB / 495.3 MB, free: 15.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=132): time 3.727e-06/0.5228, allocations: 0 / 495.3 MB, free: 15.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=139): time 0.02718/0.55, allocations: 11.49 MB / 0.4949 GB, free: 4.219 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001402/0.5514, allocations: 1.635 MB / 0.4965 GB, free: 2.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005067/0.5565, allocations: 3.649 MB / 0.5001 GB, free: 14.76 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003451/0.5569, allocations: 45.7 kB / 0.5001 GB, free: 14.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002081/0.559, allocations: 2.79 MB / 0.5029 GB, free: 11.88 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007587/0.5597, allocations: 0.5672 MB / 0.5034 GB, free: 11.31 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/0.5599, allocations: 104 kB / 0.5035 GB, free: 11.21 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003733/0.5603, allocations: 0.5373 MB / 0.504 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.5632, allocations: 1.935 MB / 0.5059 GB, free: 8.723 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00549/0.5687, allocations: 5.369 MB / 0.5112 GB, free: 1.621 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004802/0.5736, allocations: 3.15 MB / 0.5142 GB, free: 14.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.217e-05/0.5736, allocations: 32 kB / 0.5143 GB, free: 14.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02074/0.5944, allocations: 8.863 MB / 0.5229 GB, free: 5.555 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.324e-05/0.5945, allocations: 56 kB / 0.523 GB, free: 5.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01041/0.6049, allocations: 3.57 MB / 0.5265 GB, free: 1.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2032/0.8082, allocations: 2.34 MB / 0.5288 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004448/0.8127, allocations: 1.251 MB / 0.53 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.8232, allocations: 7.261 MB / 0.5371 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004881/0.8281, allocations: 386.2 kB / 0.5374 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007652/0.8289, allocations: 343.1 kB / 0.5378 GB, free: 136 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (672): * Single equations (assignments): 663 * 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.003574/0.8325, allocations: 1.852 MB / 0.5396 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005548/0.8331, allocations: 303.4 kB / 0.5399 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000774/0.8338, allocations: 405.7 kB / 0.5402 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004835/0.8387, allocations: 2.387 MB / 0.5426 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/0.8387, allocations: 2.812 kB / 0.5426 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/0.8388, allocations: 6.531 kB / 0.5426 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/0.8539, allocations: 7.873 MB / 0.5503 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/0.8539, allocations: 0 / 0.5503 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.855, allocations: 232.7 kB / 0.5505 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002711/0.8577, allocations: 1.051 MB / 0.5515 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001653/0.8579, allocations: 35.42 kB / 0.5516 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004427/0.8623, allocations: 5.055 MB / 0.5565 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007096/0.863, allocations: 1.501 MB / 0.558 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006555/0.8696, allocations: 5.129 MB / 0.563 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.8707, allocations: 381.1 kB / 0.5633 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003269/0.8711, allocations: 28.09 kB / 0.5634 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.8724, allocations: 135.3 kB / 0.5635 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.8726, allocations: 85.33 kB / 0.5636 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.405e-05/0.8727, allocations: 41.12 kB / 0.5636 GB, free: 124 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002995/0.8757, allocations: 2.264 MB / 0.5658 GB, free: 123.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8757, allocations: 0 / 0.5658 GB, free: 123.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004784/0.8805, allocations: 0.99 MB / 0.5668 GB, free: 123 MB / 446.1 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 () * Number of clocked 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 {(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 Backend phase and start with SimCode phase: time 0.006701/0.8872, allocations: 6.121 MB / 0.5728 GB, free: 117.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007887/0.8951, allocations: 5.259 MB / 0.5779 GB, free: 111.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.8952, allocations: 3.281 kB / 0.5779 GB, free: 111.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003188/0.8984, allocations: 2.014 MB / 0.5799 GB, free: 109.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.9003, allocations: 368.8 kB / 0.5802 GB, free: 109.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06509/0.9654, allocations: 115.7 MB / 0.6932 GB, free: 5.855 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002899/0.9683, allocations: 2.979 MB / 0.6961 GB, free: 2.84 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003866/0.9722, allocations: 1.7 MB / 0.6978 GB, free: 1.137 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1769/1.149, allocations: 1.603 MB / 0.6993 GB, free: 152.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.373e-06/1.149, allocations: 0.5312 kB / 0.6993 GB, free: 152.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4255/1.575, allocations: 71.19 MB / 0.7689 GB, free: 102.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001243/1.575, allocations: 223.7 kB / 0.7691 GB, free: 102.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.505/5.08, allocations: 2.531 kB / 0.7691 GB, free: 102.5 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat