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.0009243/0.0009244, allocations: 95.33 kB / 17 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.00102/0.00102, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002676/0.0002679, allocations: 4 kB / 306.8 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.127, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.2681/0.3952, allocations: 34.77 MB / 393.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02444/0.4197, allocations: 8.082 MB / 401.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01078/0.4305, allocations: 165.3 kB / 401.3 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008084/0.4387, allocations: 1.765 MB / 403.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01986/0.4586, allocations: 5.355 MB / 408.4 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003313/0.4619, allocations: 0.5055 MB / 409 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006949/0.4689, allocations: 4.013 MB / 413 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007269/0.4762, allocations: 3.713 MB / 416.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003096/0.4793, allocations: 1.109 MB / 417.8 MB, free: 172 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00315/0.4825, allocations: 1.655 MB / 419.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009439/0.4835, allocations: 124 kB / 419.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002763/0.4862, allocations: 0.8698 MB / 420.4 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002299/0.4885, allocations: 1.473 MB / 421.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001743/0.4903, allocations: 0.7376 MB / 422.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006626/0.497, allocations: 4.771 MB / 427.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.497, allocations: 3.938 kB / 427.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.497, allocations: 0 / 427.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003356/0.4973, allocations: 4 kB / 427.4 MB, free: 6.5 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.009843/0.5072, allocations: 3.525 MB / 430.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.5073, allocations: 8.031 kB / 431 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002181/0.5095, allocations: 0.6406 MB / 431.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00699/0.5165, allocations: 1.937 MB / 433.5 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005562/0.5221, allocations: 2.197 MB / 435.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/0.5224, allocations: 205.4 kB / 435.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001519/0.5239, allocations: 371.7 kB / 436.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01721/0.5411, allocations: 8.897 MB / 445.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.992e-05/0.5413, allocations: 35.66 kB / 445.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000372/0.5416, allocations: 139.9 kB / 445.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002235/0.5439, allocations: 1.638 MB / 447 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01405/0.5579, allocations: 7.517 MB / 454.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04318/0.6011, allocations: 35.11 MB / 489.6 MB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008135/0.6093, allocations: 3.484 MB / 493.1 MB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/0.6114, allocations: 1.435 MB / 494.5 MB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009811/0.6212, allocations: 6.856 MB / 0.4896 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.6213, allocations: 55.16 kB / 0.4897 GB, free: 10.13 MB / 414.1 MB Notification: Performance of pre-optimization done (n=132): time 3.587e-06/0.6213, allocations: 0 / 0.4897 GB, free: 10.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=139): time 0.0246/0.6459, allocations: 11.2 MB / 0.5006 GB, free: 14.76 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001271/0.6472, allocations: 1.627 MB / 0.5022 GB, free: 12.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005073/0.6523, allocations: 3.52 MB / 0.5057 GB, free: 9.434 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003033/0.6526, allocations: 45.69 kB / 0.5057 GB, free: 9.383 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002074/0.6547, allocations: 2.79 MB / 0.5084 GB, free: 6.555 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007544/0.6554, allocations: 0.5672 MB / 0.509 GB, free: 5.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.6557, allocations: 104 kB / 0.5091 GB, free: 5.879 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003239/0.656, allocations: 0.5334 MB / 0.5096 GB, free: 5.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002871/0.6589, allocations: 1.912 MB / 0.5115 GB, free: 3.422 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005301/0.6642, allocations: 5.349 MB / 0.5167 GB, free: 12.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004848/0.6691, allocations: 3.116 MB / 0.5197 GB, free: 9.227 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-05/0.6692, allocations: 36 kB / 0.5198 GB, free: 9.191 MB / 446.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01986/0.689, allocations: 8.492 MB / 0.5281 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.104e-05/0.6891, allocations: 56 kB / 0.5281 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2776/0.9668, allocations: 3.208 MB / 0.5313 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/0.9772, allocations: 1.96 MB / 0.5332 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005211/0.9824, allocations: 1.252 MB / 0.5344 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009212/0.9917, allocations: 5.757 MB / 0.54 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005843/0.9975, allocations: 380.2 kB / 0.5404 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/0.9989, allocations: 344.2 kB / 0.5407 GB, free: 137 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.004078/1.003, allocations: 1.848 MB / 0.5425 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009953/1.004, allocations: 301.2 kB / 0.5428 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00095/1.005, allocations: 406.1 kB / 0.5432 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005254/1.01, allocations: 2.387 MB / 0.5455 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-05/1.01, allocations: 2.438 kB / 0.5455 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/1.01, allocations: 5.234 kB / 0.5455 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01547/1.026, allocations: 7.863 MB / 0.5532 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/1.026, allocations: 0 / 0.5532 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/1.027, allocations: 239.6 kB / 0.5534 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002593/1.029, allocations: 1.058 MB / 0.5545 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001553/1.03, allocations: 36.27 kB / 0.5545 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004441/1.034, allocations: 4.964 MB / 0.5593 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007491/1.035, allocations: 1.487 MB / 0.5608 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006913/1.042, allocations: 4.98 MB / 0.5657 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008712/1.043, allocations: 375.3 kB / 0.566 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/1.043, allocations: 23.69 kB / 0.566 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/1.044, allocations: 136.2 kB / 0.5662 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/1.044, allocations: 86.89 kB / 0.5663 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/1.044, allocations: 44.34 kB / 0.5663 GB, free: 123.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002834/1.047, allocations: 2.17 MB / 0.5684 GB, free: 122.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.047, allocations: 0 / 0.5684 GB, free: 122.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004997/1.052, allocations: 0.959 MB / 0.5693 GB, free: 121.3 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.006828/1.059, allocations: 5.634 MB / 0.5749 GB, free: 115.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008723/1.068, allocations: 5.208 MB / 0.5799 GB, free: 110.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/1.068, allocations: 4 kB / 0.5799 GB, free: 110.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003168/1.071, allocations: 2.019 MB / 0.5819 GB, free: 108.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002423/1.074, allocations: 382.5 kB / 0.5823 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05243/1.126, allocations: 31.21 MB / 0.6128 GB, free: 73.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002617/1.129, allocations: 2.904 MB / 0.6156 GB, free: 70.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003825/1.132, allocations: 1.695 MB / 0.6172 GB, free: 69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002017/1.135, allocations: 1.608 MB / 0.6188 GB, free: 67.39 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/1.135, allocations: 3.062 kB / 0.6188 GB, free: 67.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/1.24, allocations: 69.39 MB / 0.6866 GB, free: 14.36 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003018/1.24, allocations: 229 kB / 0.6868 GB, free: 14.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.657/4.897, allocations: 4 kB / 0.6868 GB, free: 14.12 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