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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001851/0.001851, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009737/0.000974, allocations: 100.8 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.396e-05/2.371e-05, allocations: 4 kB / 343.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1255, allocations: 51.48 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.427/0.5525, allocations: 95.47 MB / 490.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.5528, allocations: 80.7 kB / 490.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2003/0.7531, allocations: 73.72 MB / 0.5513 GB, free: 8.668 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.7532, allocations: 0 / 0.5513 GB, free: 8.668 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000251/0.7534, allocations: 76 kB / 0.5514 GB, free: 8.594 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.01624/0.7697, allocations: 3.951 MB / 0.5552 GB, free: 4.586 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.7697, allocations: 11.97 kB / 0.5552 GB, free: 4.574 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01112/0.7809, allocations: 2.215 MB / 0.5574 GB, free: 2.352 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01155/0.7925, allocations: 3.81 MB / 0.5611 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002758/0.7928, allocations: 120 kB / 0.5612 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001993/0.7948, allocations: 220 kB / 0.5615 GB, free: 14.15 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01156/0.8064, allocations: 5.348 MB / 0.5667 GB, free: 8.797 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3107/1.117, allocations: 8.282 MB / 0.5748 GB, free: 79.33 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002594/1.117, allocations: 53.95 kB / 0.5748 GB, free: 79.33 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009403/1.118, allocations: 28.44 kB / 0.5748 GB, free: 79.33 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00149/1.12, allocations: 0.9095 MB / 0.5757 GB, free: 79.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04369/1.164, allocations: 42.8 MB / 0.6175 GB, free: 52.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003167/1.167, allocations: 2.394 MB / 0.6199 GB, free: 51.58 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001382/1.168, allocations: 1.328 MB / 0.6212 GB, free: 51.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005441/1.169, allocations: 0.675 MB / 0.6218 GB, free: 50.98 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/1.169, allocations: 47.22 kB / 0.6219 GB, free: 50.94 MB / 442.7 MB Notification: Performance of pre-optimization done (n=138): time 4.508e-06/1.169, allocations: 2.5 kB / 0.6219 GB, free: 50.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=145): time 0.01861/1.187, allocations: 8.771 MB / 0.6304 GB, free: 48.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/1.188, allocations: 145.3 kB / 0.6306 GB, free: 48.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004159/1.192, allocations: 2.768 MB / 0.6333 GB, free: 48.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003384/1.192, allocations: 26.67 kB / 0.6333 GB, free: 48.08 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/1.194, allocations: 2.851 MB / 0.6361 GB, free: 46.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008515/1.195, allocations: 0.5749 MB / 0.6367 GB, free: 45.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003281/1.195, allocations: 1.062 kB / 0.6367 GB, free: 45.85 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003243/1.195, allocations: 0.5413 MB / 0.6372 GB, free: 45.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003252/1.199, allocations: 1.811 MB / 0.639 GB, free: 44.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004779/1.203, allocations: 5.354 MB / 0.6442 GB, free: 39.31 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004934/1.208, allocations: 3.079 MB / 0.6472 GB, free: 38.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001553/1.209, allocations: 39.03 kB / 0.6472 GB, free: 38.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=742) (initialization): time 0.0236/1.232, allocations: 7.767 MB / 0.6548 GB, free: 35.73 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001482/1.232, allocations: 64.66 kB / 0.6549 GB, free: 35.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01001/1.242, allocations: 3.052 MB / 0.6578 GB, free: 34.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009441/1.252, allocations: 1.903 MB / 0.6597 GB, free: 34.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004744/1.257, allocations: 1.303 MB / 0.661 GB, free: 34.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007413/1.264, allocations: 5.502 MB / 0.6664 GB, free: 31.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005434/1.27, allocations: 280.8 kB / 0.6666 GB, free: 31.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001731/1.271, allocations: 356 kB / 0.667 GB, free: 31.1 MB / 442.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.001718/1.273, allocations: 429 kB / 0.6674 GB, free: 30.75 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005596/1.279, allocations: 3.023 MB / 0.6703 GB, free: 29.74 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009636/1.28, allocations: 290.1 kB / 0.6706 GB, free: 29.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005552/1.285, allocations: 2.641 MB / 0.6732 GB, free: 28.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004122/1.29, allocations: 2.268 MB / 0.6754 GB, free: 27.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/1.29, allocations: 3.25 kB / 0.6754 GB, free: 27.99 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.004e-05/1.29, allocations: 11.55 kB / 0.6754 GB, free: 27.99 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/1.304, allocations: 7.535 MB / 0.6828 GB, free: 25.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.379e-05/1.304, allocations: 5.344 kB / 0.6828 GB, free: 25.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/1.305, allocations: 238.5 kB / 0.683 GB, free: 25.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002739/1.308, allocations: 1.024 MB / 0.684 GB, free: 24.87 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002028/1.308, allocations: 20.48 kB / 0.684 GB, free: 24.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004392/1.313, allocations: 4.856 MB / 0.6888 GB, free: 21.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007108/1.314, allocations: 1.414 MB / 0.6901 GB, free: 20.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006941/1.321, allocations: 5.029 MB / 0.6951 GB, free: 18.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009243/1.321, allocations: 347.8 kB / 0.6954 GB, free: 17.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003299/1.322, allocations: 15.86 kB / 0.6954 GB, free: 17.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/1.323, allocations: 105 kB / 0.6955 GB, free: 17.83 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/1.323, allocations: 89.61 kB / 0.6956 GB, free: 17.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/1.324, allocations: 40.92 kB / 0.6956 GB, free: 17.81 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002883/1.326, allocations: 1.829 MB / 0.6974 GB, free: 17.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.326, allocations: 3.75 kB / 0.6974 GB, free: 17.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006953/1.333, allocations: 0.877 MB / 0.6983 GB, free: 17.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET11.x[3],$STATESET11.x[2],$STATESET11.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.00765/1.341, allocations: 6.004 MB / 0.7041 GB, free: 14.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008791/1.35, allocations: 4.928 MB / 0.7089 GB, free: 12.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/1.35, allocations: 4.188 kB / 0.7089 GB, free: 12.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003399/1.353, allocations: 1.985 MB / 0.7109 GB, free: 11.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/1.356, allocations: 308.2 kB / 0.7112 GB, free: 11.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01888/1.375, allocations: 8.058 MB / 0.7191 GB, free: 4.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002808/1.377, allocations: 2.976 MB / 0.722 GB, free: 1.805 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004459/1.382, allocations: 1.785 MB / 0.7237 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004465/1.386, allocations: 1.758 MB / 0.7254 GB, free: 15.81 MB / 458.7 MB Notification: Performance of SimCode: time 1.292e-06/1.386, allocations: 0 / 0.7254 GB, free: 15.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4281/1.814, allocations: 65.87 MB / 0.7897 GB, free: 86.03 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/1.815, allocations: 146.6 kB / 0.7899 GB, free: 85.84 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.212/6.027, allocations: 4 kB / 0.7899 GB, free: 85.84 MB / 458.7 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