Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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 3.2.3+maint.om/package.mo): time 0.001521/0.001521, allocations: 183.6 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.923/1.923, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 88.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.000394, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3232, allocations: 47.58 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.03925/0.3625, allocations: 32.85 MB / 407.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02022/0.3828, allocations: 8.376 MB / 415.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006515/0.3894, allocations: 163.6 kB / 416 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005152/0.3945, allocations: 1.598 MB / 417.6 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01677/0.4114, allocations: 4.788 MB / 422.4 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00296/0.4144, allocations: 0.507 MB / 422.9 MB, free: 444 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004953/0.4193, allocations: 1.953 MB / 424.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00772/0.4271, allocations: 3.701 MB / 428.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002217/0.4294, allocations: 0.9148 MB / 429.5 MB, free: 9.793 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002568/0.432, allocations: 1.16 MB / 430.6 MB, free: 8.629 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007305/0.4328, allocations: 120 kB / 430.8 MB, free: 8.512 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002699/0.4355, allocations: 0.866 MB / 431.6 MB, free: 7.645 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002339/0.4379, allocations: 1.364 MB / 433 MB, free: 6.277 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.4391, allocations: 0.7376 MB / 433.7 MB, free: 5.531 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008105/0.4473, allocations: 4.783 MB / 438.5 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4473, allocations: 0 / 438.5 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.24e-06/0.4473, allocations: 3.984 kB / 438.5 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000202/0.4476, allocations: 0 / 438.5 MB, free: 0.7344 MB / 314.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.01107/0.4586, allocations: 3.552 MB / 442.1 MB, free: 13.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.4587, allocations: 8.031 kB / 442.1 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002043/0.4608, allocations: 0.6367 MB / 442.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01361/0.4744, allocations: 2.179 MB / 444.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006578/0.481, allocations: 2.248 MB / 447.1 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002735/0.4813, allocations: 217.4 kB / 447.4 MB, free: 7.746 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001937/0.4833, allocations: 375.6 kB / 447.7 MB, free: 7.379 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02516/0.5085, allocations: 8.932 MB / 456.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001622/0.5087, allocations: 43.67 kB / 456.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006726/0.5094, allocations: 131.9 kB / 456.8 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004445/0.5138, allocations: 1.634 MB / 458.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02467/0.5385, allocations: 7.584 MB / 466 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06708/0.6057, allocations: 35.25 MB / 0.4895 GB, free: 128 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2801/0.8858, allocations: 3.455 MB / 0.4929 GB, free: 107.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01519/0.901, allocations: 6.862 MB / 0.4996 GB, free: 103.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.9011, allocations: 52.42 kB / 0.4997 GB, free: 103.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 4.719e-06/0.9011, allocations: 0 / 0.4997 GB, free: 103.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=139): time 0.04391/0.945, allocations: 11.46 MB / 0.5109 GB, free: 98.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001372/0.9465, allocations: 1.633 MB / 0.5125 GB, free: 96.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006118/0.9526, allocations: 3.667 MB / 0.516 GB, free: 93.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003557/0.953, allocations: 43.34 kB / 0.5161 GB, free: 93.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001827/0.9548, allocations: 2.739 MB / 0.5188 GB, free: 90.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008069/0.9557, allocations: 0.5725 MB / 0.5193 GB, free: 90.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004137/0.9561, allocations: 108 kB / 0.5194 GB, free: 90.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002868/0.9564, allocations: 0.5381 MB / 0.5199 GB, free: 89.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004313/0.9607, allocations: 1.924 MB / 0.5218 GB, free: 87.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007135/0.9679, allocations: 5.352 MB / 0.5271 GB, free: 80.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00822/0.9762, allocations: 3.135 MB / 0.5301 GB, free: 77.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001375/0.9764, allocations: 40 kB / 0.5302 GB, free: 77.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.04186/1.018, allocations: 8.666 MB / 0.5386 GB, free: 68.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.994e-05/1.018, allocations: 60 kB / 0.5387 GB, free: 68.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01885/1.037, allocations: 3.47 MB / 0.5421 GB, free: 65.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01971/1.057, allocations: 2.246 MB / 0.5443 GB, free: 63.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006708/1.064, allocations: 1.255 MB / 0.5455 GB, free: 61.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01542/1.079, allocations: 7.24 MB / 0.5526 GB, free: 54.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006176/1.085, allocations: 379.3 kB / 0.5529 GB, free: 53.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00091/1.086, allocations: 340 kB / 0.5532 GB, free: 53.65 MB / 378.7 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.004175/1.091, allocations: 1.856 MB / 0.5551 GB, free: 51.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007135/1.091, allocations: 308.2 kB / 0.5553 GB, free: 51.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008361/1.1, allocations: 2.763 MB / 0.558 GB, free: 48.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007433/1.107, allocations: 2.36 MB / 0.5603 GB, free: 46.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.672e-05/1.107, allocations: 3.938 kB / 0.5604 GB, free: 46.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.273e-05/1.107, allocations: 7.984 kB / 0.5604 GB, free: 46.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02065/1.128, allocations: 7.853 MB / 0.568 GB, free: 38.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-05/1.128, allocations: 0 / 0.568 GB, free: 38.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/1.13, allocations: 231.6 kB / 0.5682 GB, free: 38.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005407/1.135, allocations: 1.045 MB / 0.5693 GB, free: 37.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003028/1.136, allocations: 43.92 kB / 0.5693 GB, free: 37.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007854/1.144, allocations: 5.059 MB / 0.5743 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001106/1.145, allocations: 1.489 MB / 0.5757 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02145/1.166, allocations: 5.098 MB / 0.5807 GB, free: 24.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001587/1.168, allocations: 377 kB / 0.581 GB, free: 24.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001885/1.17, allocations: 28.33 kB / 0.5811 GB, free: 24.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005957/1.176, allocations: 125 kB / 0.5812 GB, free: 24.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006475/1.177, allocations: 88.47 kB / 0.5813 GB, free: 24.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001729/1.177, allocations: 40.84 kB / 0.5813 GB, free: 24.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004709/1.181, allocations: 2.293 MB / 0.5836 GB, free: 21.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.182, allocations: 0 / 0.5836 GB, free: 21.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006471/1.188, allocations: 0.9828 MB / 0.5845 GB, free: 20.99 MB / 378.7 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.01326/1.201, allocations: 6.108 MB / 0.5905 GB, free: 14.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01309/1.214, allocations: 5.228 MB / 0.5956 GB, free: 9.543 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/1.215, allocations: 4.594 kB / 0.5956 GB, free: 9.539 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006121/1.221, allocations: 2.014 MB / 0.5976 GB, free: 7.457 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003006/1.224, allocations: 366.3 kB / 0.5979 GB, free: 7.102 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.387/1.611, allocations: 116.1 MB / 0.7113 GB, free: 90.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004176/1.615, allocations: 2.986 MB / 0.7142 GB, free: 89.18 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003166/1.618, allocations: 1.656 MB / 0.7158 GB, free: 87.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/1.618, allocations: 0 / 0.7158 GB, free: 87.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.715/6.333, allocations: 134 MB / 0.8467 GB, free: 136.6 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat