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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009823/0.0009821, allocations: 87.56 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.903e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4077/0.5138, allocations: 94.81 MB / 482.4 MB, free: 15.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.5141, allocations: 83.95 kB / 482.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1944/0.7085, allocations: 72.97 MB / 0.5424 GB, free: 6.285 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.7085, allocations: 3.938 kB / 0.5424 GB, free: 6.281 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002135/0.7088, allocations: 72 kB / 0.5425 GB, free: 6.211 MB / 426.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.01522/0.724, allocations: 3.851 MB / 0.5462 GB, free: 2.301 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.7241, allocations: 12.03 kB / 0.5462 GB, free: 2.289 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01061/0.7347, allocations: 2.159 MB / 0.5484 GB, free: 124 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.309/1.044, allocations: 4.311 MB / 0.5526 GB, free: 98.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/1.044, allocations: 122 kB / 0.5527 GB, free: 98.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001787/1.046, allocations: 220.9 kB / 0.5529 GB, free: 98.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01143/1.057, allocations: 5.345 MB / 0.5581 GB, free: 98.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01809/1.075, allocations: 8.284 MB / 0.5662 GB, free: 95.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003936/1.076, allocations: 54.39 kB / 0.5663 GB, free: 95.97 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001222/1.077, allocations: 36.94 kB / 0.5663 GB, free: 95.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001626/1.079, allocations: 0.9067 MB / 0.5672 GB, free: 95.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04315/1.122, allocations: 42.8 MB / 0.609 GB, free: 65.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00307/1.125, allocations: 2.398 MB / 0.6113 GB, free: 64.32 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001578/1.127, allocations: 1.327 MB / 0.6126 GB, free: 63.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006037/1.127, allocations: 0.6609 MB / 0.6133 GB, free: 63.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/1.127, allocations: 53.27 kB / 0.6133 GB, free: 63.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=138): time 4.949e-06/1.127, allocations: 4.031 kB / 0.6133 GB, free: 63.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=145): time 0.01937/1.147, allocations: 8.773 MB / 0.6219 GB, free: 59.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/1.147, allocations: 143 kB / 0.622 GB, free: 59.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00542/1.152, allocations: 2.771 MB / 0.6247 GB, free: 58.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003217/1.153, allocations: 25.7 kB / 0.6247 GB, free: 58.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/1.154, allocations: 2.847 MB / 0.6275 GB, free: 55.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007296/1.155, allocations: 0.5768 MB / 0.6281 GB, free: 55.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005091/1.156, allocations: 0 / 0.6281 GB, free: 55.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004356/1.156, allocations: 0.5414 MB / 0.6286 GB, free: 55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00259/1.159, allocations: 1.812 MB / 0.6304 GB, free: 54.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003977/1.163, allocations: 5.361 MB / 0.6356 GB, free: 48.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003841/1.166, allocations: 3.078 MB / 0.6386 GB, free: 47.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.95e-05/1.167, allocations: 35.34 kB / 0.6387 GB, free: 47.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=742) (initialization): time 0.01829/1.185, allocations: 7.8 MB / 0.6463 GB, free: 44.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/1.185, allocations: 61.56 kB / 0.6463 GB, free: 44.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008983/1.194, allocations: 3.082 MB / 0.6493 GB, free: 42.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009097/1.203, allocations: 1.936 MB / 0.6512 GB, free: 41.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00429/1.208, allocations: 1.298 MB / 0.6525 GB, free: 39.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006467/1.214, allocations: 5.518 MB / 0.6579 GB, free: 34.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004389/1.218, allocations: 277.1 kB / 0.6582 GB, free: 34.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001175/1.22, allocations: 355.6 kB / 0.6585 GB, free: 34.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (704): * Single equations (assignments): 695 * 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.001532/1.221, allocations: 437 kB / 0.6589 GB, free: 33.95 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005297/1.226, allocations: 3.019 MB / 0.6619 GB, free: 31.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006563/1.227, allocations: 283.8 kB / 0.6621 GB, free: 31.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005062/1.232, allocations: 2.657 MB / 0.6647 GB, free: 29.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00368/1.236, allocations: 2.253 MB / 0.6669 GB, free: 27.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/1.236, allocations: 4 kB / 0.6669 GB, free: 27.28 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/1.236, allocations: 11.03 kB / 0.6669 GB, free: 27.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/1.249, allocations: 7.539 MB / 0.6743 GB, free: 21.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/1.249, allocations: 4.094 kB / 0.6743 GB, free: 21.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/1.25, allocations: 246.2 kB / 0.6745 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002761/1.253, allocations: 1.024 MB / 0.6755 GB, free: 20.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001994/1.253, allocations: 18.89 kB / 0.6756 GB, free: 20.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004429/1.258, allocations: 4.854 MB / 0.6803 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007067/1.258, allocations: 1.411 MB / 0.6817 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0067/1.265, allocations: 5.027 MB / 0.6866 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009401/1.266, allocations: 352.6 kB / 0.6869 GB, free: 8.707 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006613/1.267, allocations: 11.98 kB / 0.6869 GB, free: 8.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001726/1.269, allocations: 107.4 kB / 0.687 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002231/1.269, allocations: 92.58 kB / 0.6871 GB, free: 8.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/1.269, allocations: 41.16 kB / 0.6872 GB, free: 8.461 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003357/1.272, allocations: 1.83 MB / 0.689 GB, free: 6.637 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.91e-07/1.272, allocations: 0 / 0.689 GB, free: 6.637 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005779/1.278, allocations: 0.8707 MB / 0.6898 GB, free: 5.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.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 (111): * Single equations (assignments): 104 * 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.008061/1.286, allocations: 6.02 MB / 0.6957 GB, free: 15.69 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009737/1.296, allocations: 4.925 MB / 0.7005 GB, free: 10.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.296, allocations: 0 / 0.7005 GB, free: 10.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004086/1.3, allocations: 1.99 MB / 0.7024 GB, free: 8.668 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/1.303, allocations: 309.5 kB / 0.7027 GB, free: 8.367 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02293/1.326, allocations: 8.049 MB / 0.7106 GB, free: 292 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2361/1.562, allocations: 2.977 MB / 0.7135 GB, free: 102.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005898/1.568, allocations: 1.785 MB / 0.7152 GB, free: 102.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002619/1.57, allocations: 1.609 MB / 0.7168 GB, free: 102.5 MB / 442.7 MB Notification: Performance of SimCode: time 3.015e-06/1.57, allocations: 0 / 0.7168 GB, free: 102.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1057/1.676, allocations: 65.88 MB / 0.7812 GB, free: 84.09 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001441/1.676, allocations: 151 kB / 0.7813 GB, free: 83.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.063/5.739, allocations: 3.938 kB / 0.7813 GB, free: 83.89 MB / 442.7 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