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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009348/0.0009347, allocations: 97.02 kB / 16.94 MB, free: 5.98 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.0009567/0.0009568, allocations: 182.5 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.4 MB / 224 MB, free: 13.03 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004442, allocations: 11.94 kB / 280.9 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09406/0.09452, allocations: 47.57 MB / 328.4 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.03066/0.1252, allocations: 32.85 MB / 361.3 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01772/0.143, allocations: 8.38 MB / 369.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006335/0.1494, allocations: 159.6 kB / 369.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006905/0.1563, allocations: 1.602 MB / 371.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01684/0.1732, allocations: 4.8 MB / 376.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002763/0.176, allocations: 0.4953 MB / 376.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004489/0.1805, allocations: 1.966 MB / 378.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2161/0.3966, allocations: 3.692 MB / 382.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.3987, allocations: 0.9164 MB / 383.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002363/0.4011, allocations: 1.156 MB / 384.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008993/0.402, allocations: 121.4 kB / 384.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002435/0.4045, allocations: 0.8606 MB / 385.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00222/0.4067, allocations: 1.372 MB / 386.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001699/0.4085, allocations: 0.7399 MB / 387.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008728/0.4172, allocations: 4.777 MB / 392.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4172, allocations: 0 / 392.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4172, allocations: 0 / 392.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002658/0.4175, allocations: 0 / 392.3 MB, free: 10.13 MB / 318.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.01013/0.4277, allocations: 3.545 MB / 395.8 MB, free: 8.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.4277, allocations: 13.69 kB / 395.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002118/0.4299, allocations: 0.6417 MB / 396.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007962/0.4378, allocations: 2.178 MB / 398.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005878/0.4437, allocations: 2.251 MB / 400.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.444, allocations: 215.2 kB / 401.1 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001597/0.4456, allocations: 373.6 kB / 401.5 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/0.461, allocations: 8.932 MB / 410.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001016/0.4612, allocations: 44.45 kB / 410.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003826/0.4615, allocations: 136.6 kB / 410.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002123/0.4637, allocations: 1.643 MB / 412.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01378/0.4775, allocations: 7.574 MB / 419.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04375/0.5212, allocations: 35.26 MB / 455.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00816/0.5294, allocations: 3.454 MB / 458.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01132/0.5408, allocations: 6.857 MB / 465.4 MB, free: 7.281 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.5409, allocations: 52.39 kB / 465.4 MB, free: 7.227 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 6.242e-06/0.5409, allocations: 0 / 465.4 MB, free: 7.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=139): time 0.02727/0.5682, allocations: 11.46 MB / 476.9 MB, free: 11.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001513/0.5697, allocations: 1.638 MB / 478.5 MB, free: 9.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005834/0.5756, allocations: 3.674 MB / 482.2 MB, free: 6.113 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003967/0.576, allocations: 44.2 kB / 482.3 MB, free: 6.066 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001945/0.578, allocations: 2.792 MB / 485.1 MB, free: 3.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007618/0.5787, allocations: 0.5674 MB / 485.6 MB, free: 2.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.579, allocations: 108 kB / 485.7 MB, free: 2.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000364/0.5793, allocations: 0.5297 MB / 486.3 MB, free: 2.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002774/0.5821, allocations: 1.927 MB / 488.2 MB, free: 160 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005829/0.5879, allocations: 5.353 MB / 493.5 MB, free: 9.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00435/0.5923, allocations: 3.136 MB / 496.7 MB, free: 6.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.358e-05/0.5924, allocations: 36 kB / 496.7 MB, free: 6.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01969/0.6121, allocations: 8.766 MB / 0.4936 GB, free: 13.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.434e-05/0.6122, allocations: 59.12 kB / 0.4937 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01005/0.6223, allocations: 3.479 MB / 0.4971 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009883/0.6322, allocations: 2.246 MB / 0.4993 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004175/0.6364, allocations: 1.248 MB / 0.5005 GB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009875/0.6463, allocations: 7.231 MB / 0.5076 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/0.6513, allocations: 383.1 kB / 0.5079 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008736/0.6522, allocations: 348 kB / 0.5083 GB, free: 14.52 MB / 430.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.003741/0.6559, allocations: 1.85 MB / 0.5101 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006187/0.6566, allocations: 304 kB / 0.5103 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005159/0.6617, allocations: 2.761 MB / 0.513 GB, free: 9.578 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004215/0.666, allocations: 2.359 MB / 0.5153 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.666, allocations: 4 kB / 0.5154 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-05/0.666, allocations: 7.969 kB / 0.5154 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/0.6808, allocations: 7.865 MB / 0.523 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.6808, allocations: 5.859 kB / 0.523 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.6819, allocations: 223.6 kB / 0.5233 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002946/0.6848, allocations: 1.059 MB / 0.5243 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/0.685, allocations: 35.97 kB / 0.5243 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005407/0.6904, allocations: 5.05 MB / 0.5293 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009925/0.6914, allocations: 1.494 MB / 0.5307 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007938/0.6994, allocations: 5.086 MB / 0.5357 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/0.7007, allocations: 378.8 kB / 0.536 GB, free: 1.398 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003537/0.701, allocations: 24 kB / 0.5361 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/0.7024, allocations: 145.9 kB / 0.5362 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/0.7027, allocations: 88.45 kB / 0.5363 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.7028, allocations: 39.98 kB / 0.5363 GB, free: 1.105 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.2233/0.9261, allocations: 2.285 MB / 0.5386 GB, free: 159.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.9261, allocations: 0 / 0.5386 GB, free: 159.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00642/0.9325, allocations: 0.9841 MB / 0.5395 GB, free: 159.4 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.008929/0.9415, allocations: 6.101 MB / 0.5455 GB, free: 157.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01015/0.9517, allocations: 5.225 MB / 0.5506 GB, free: 155.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.9517, allocations: 3.875 kB / 0.5506 GB, free: 155.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003288/0.955, allocations: 2 MB / 0.5525 GB, free: 154.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.9571, allocations: 374.2 kB / 0.5529 GB, free: 154.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07896/1.036, allocations: 115.7 MB / 0.6658 GB, free: 45.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002963/1.039, allocations: 2.999 MB / 0.6688 GB, free: 43.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00404/1.043, allocations: 1.704 MB / 0.6704 GB, free: 41.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002844/1.046, allocations: 1.612 MB / 0.672 GB, free: 39.91 MB / 446.1 MB Notification: Performance of SimCode: time 1.163e-06/1.046, allocations: 0 / 0.672 GB, free: 39.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2817/1.328, allocations: 71.56 MB / 0.7419 GB, free: 144.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/1.328, allocations: 224.2 kB / 0.7421 GB, free: 144.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.286/4.614, allocations: 4.062 kB / 0.7421 GB, free: 144.2 MB / 446.1 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) Environment - environmentSimulation: 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