Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008788/0.0008786, allocations: 90.12 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 179.5 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 223.2 MB / 241.2 MB, free: 5.406 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002693/0.0002693, allocations: 6.812 kB / 300.9 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1299, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.03471/0.1647, allocations: 34.76 MB / 386.1 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01863/0.1834, allocations: 8.053 MB / 394.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007699/0.1911, allocations: 163.6 kB / 394.3 MB, free: 468 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00594/0.1971, allocations: 1.757 MB / 396.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01484/0.212, allocations: 5.362 MB / 401.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002643/0.2147, allocations: 0.5032 MB / 401.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005634/0.2203, allocations: 3.961 MB / 405.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006208/0.2265, allocations: 3.724 MB / 409.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002898/0.2295, allocations: 1.113 MB / 410.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003058/0.2326, allocations: 1.647 MB / 412.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009205/0.2335, allocations: 120 kB / 412.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002519/0.236, allocations: 0.8932 MB / 413.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002171/0.2382, allocations: 1.473 MB / 414.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001466/0.2397, allocations: 0.7376 MB / 415.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006332/0.2461, allocations: 4.777 MB / 420.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.2461, allocations: 0 / 420.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2461, allocations: 0 / 420.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002565/0.2464, allocations: 0 / 420.4 MB, free: 6.246 MB / 350.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.008465/0.2548, allocations: 3.528 MB / 423.9 MB, free: 2.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.2549, allocations: 8.031 kB / 423.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00184/0.2567, allocations: 0.6406 MB / 424.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006772/0.2635, allocations: 1.89 MB / 426.5 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2144/0.4779, allocations: 2.286 MB / 428.7 MB, free: 65.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.4782, allocations: 212.9 kB / 429 MB, free: 65.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/0.4792, allocations: 375.4 kB / 429.3 MB, free: 65.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01732/0.4965, allocations: 8.852 MB / 438.2 MB, free: 63.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00012/0.4967, allocations: 39.06 kB / 438.2 MB, free: 63.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004416/0.4972, allocations: 135.4 kB / 438.3 MB, free: 63.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002419/0.4996, allocations: 1.645 MB / 440 MB, free: 63.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.5127, allocations: 7.472 MB / 447.5 MB, free: 58.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03334/0.5461, allocations: 35.12 MB / 482.6 MB, free: 22.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006862/0.553, allocations: 3.432 MB / 486 MB, free: 19.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.5546, allocations: 1.45 MB / 487.5 MB, free: 17.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007764/0.5623, allocations: 6.759 MB / 494.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.5624, allocations: 57.88 kB / 494.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=132): time 5.009e-06/0.5624, allocations: 0 / 494.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=139): time 0.02155/0.584, allocations: 11.1 MB / 0.4935 GB, free: 15.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001412/0.5854, allocations: 1.612 MB / 0.4951 GB, free: 13.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004885/0.5903, allocations: 3.52 MB / 0.4986 GB, free: 10.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002548/0.5906, allocations: 49.23 kB / 0.4986 GB, free: 9.973 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001884/0.5925, allocations: 2.785 MB / 0.5013 GB, free: 7.191 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006463/0.5932, allocations: 0.5682 MB / 0.5019 GB, free: 6.629 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002113/0.5934, allocations: 108 kB / 0.502 GB, free: 6.523 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003088/0.5937, allocations: 0.5334 MB / 0.5025 GB, free: 5.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002685/0.5964, allocations: 1.892 MB / 0.5043 GB, free: 4.086 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00501/0.6014, allocations: 5.341 MB / 0.5096 GB, free: 13.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004044/0.6055, allocations: 3.108 MB / 0.5126 GB, free: 9.898 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-05/0.6055, allocations: 36 kB / 0.5126 GB, free: 9.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01686/0.6224, allocations: 8.395 MB / 0.5208 GB, free: 1.453 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.953e-05/0.6225, allocations: 56.97 kB / 0.5209 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007967/0.6305, allocations: 3.125 MB / 0.5239 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007513/0.638, allocations: 1.869 MB / 0.5258 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003743/0.6418, allocations: 1.244 MB / 0.527 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007373/0.6492, allocations: 5.723 MB / 0.5326 GB, free: 5.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00457/0.6538, allocations: 375.2 kB / 0.5329 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009636/0.6548, allocations: 347.9 kB / 0.5333 GB, free: 4.43 MB / 398.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.003821/0.6586, allocations: 1.857 MB / 0.5351 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006924/0.6593, allocations: 300.1 kB / 0.5354 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0053/0.6646, allocations: 2.766 MB / 0.5381 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004176/0.6688, allocations: 2.366 MB / 0.5404 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.6688, allocations: 4 kB / 0.5404 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.6688, allocations: 4.453 kB / 0.5404 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/0.6819, allocations: 7.834 MB / 0.548 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.6819, allocations: 0 / 0.548 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009852/0.6829, allocations: 227.6 kB / 0.5482 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002776/0.6857, allocations: 1.057 MB / 0.5493 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.6858, allocations: 40.84 kB / 0.5493 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005213/0.6911, allocations: 4.955 MB / 0.5541 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000976/0.6921, allocations: 1.486 MB / 0.5556 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007411/0.6995, allocations: 4.941 MB / 0.5604 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.7006, allocations: 369 kB / 0.5608 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003202/0.7009, allocations: 35.94 kB / 0.5608 GB, free: 7.574 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.7021, allocations: 126.2 kB / 0.5609 GB, free: 7.453 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.7024, allocations: 84.47 kB / 0.561 GB, free: 7.367 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.7025, allocations: 47.97 kB / 0.5611 GB, free: 7.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003366/0.7059, allocations: 2.164 MB / 0.5632 GB, free: 5.168 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.603e-06/0.7059, allocations: 4.109 kB / 0.5632 GB, free: 5.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004969/0.7108, allocations: 0.9566 MB / 0.5641 GB, free: 4.215 MB / 430.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.008035/0.7189, allocations: 5.609 MB / 0.5696 GB, free: 14.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009416/0.7283, allocations: 5.178 MB / 0.5746 GB, free: 9.344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.7284, allocations: 4 kB / 0.5746 GB, free: 9.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0035/0.7319, allocations: 1.997 MB / 0.5766 GB, free: 7.266 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002451/0.7344, allocations: 382.4 kB / 0.577 GB, free: 6.895 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.315/1.049, allocations: 31.08 MB / 0.6073 GB, free: 132.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003187/1.053, allocations: 2.907 MB / 0.6102 GB, free: 131.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004121/1.057, allocations: 1.696 MB / 0.6118 GB, free: 131.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002488/1.059, allocations: 1.61 MB / 0.6134 GB, free: 130.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.623e-06/1.059, allocations: 0 / 0.6134 GB, free: 130.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/1.161, allocations: 69.44 MB / 0.6812 GB, free: 64.45 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/1.161, allocations: 229.1 kB / 0.6814 GB, free: 64.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.841/5.002, allocations: 0 / 0.6814 GB, free: 64.21 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat