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.001097/0.001097, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 97.69 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002393/0.0002394, allocations: 8 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.23, allocations: 51.48 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1078/0.3379, allocations: 96.2 MB / 0.4939 GB, free: 10.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.3382, allocations: 91.94 kB / 0.4939 GB, free: 10.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.412/0.7502, allocations: 75.28 MB / 0.5675 GB, free: 43.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.7502, allocations: 0 / 0.5675 GB, free: 43.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002228/0.7504, allocations: 79.94 kB / 0.5675 GB, free: 42.98 MB / 378.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.01575/0.7662, allocations: 4.161 MB / 0.5716 GB, free: 38.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.7663, allocations: 12.02 kB / 0.5716 GB, free: 38.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002373/0.7686, allocations: 0.6837 MB / 0.5723 GB, free: 38.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00928/0.778, allocations: 2.21 MB / 0.5744 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01005/0.788, allocations: 3.831 MB / 0.5782 GB, free: 31.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002741/0.7883, allocations: 283.4 kB / 0.5784 GB, free: 31.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001892/0.7902, allocations: 371.9 kB / 0.5788 GB, free: 31.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01746/0.8077, allocations: 9.335 MB / 0.5879 GB, free: 21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001934/0.8079, allocations: 59.47 kB / 0.588 GB, free: 20.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001061/0.809, allocations: 191.8 kB / 0.5882 GB, free: 20.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001077/0.8101, allocations: 0.8999 MB / 0.589 GB, free: 19.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01327/0.8234, allocations: 7.567 MB / 0.5964 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04687/0.8703, allocations: 43.89 MB / 0.6393 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008009/0.8783, allocations: 3.436 MB / 0.6426 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01129/0.8897, allocations: 6.851 MB / 0.6493 GB, free: 4.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.8897, allocations: 51.16 kB / 0.6494 GB, free: 4.121 MB / 426.7 MB Notification: Performance of pre-optimization done (n=132): time 4.027e-06/0.8898, allocations: 4 kB / 0.6494 GB, free: 4.117 MB / 426.7 MB Notification: Performance of matching and sorting (n=139): time 0.02904/0.9188, allocations: 11.3 MB / 0.6604 GB, free: 8.586 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001387/0.9202, allocations: 1.628 MB / 0.662 GB, free: 6.785 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007115/0.9274, allocations: 3.148 MB / 0.6651 GB, free: 3.641 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003652/0.9278, allocations: 41.7 kB / 0.6651 GB, free: 3.594 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00233/0.9301, allocations: 2.806 MB / 0.6679 GB, free: 0.75 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008289/0.931, allocations: 0.571 MB / 0.6684 GB, free: 176 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005731/0.9316, allocations: 108 kB / 0.6685 GB, free: 68 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.2427/1.174, allocations: 0.5323 MB / 0.669 GB, free: 110.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003391/1.178, allocations: 1.897 MB / 0.6709 GB, free: 110.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003255/1.181, allocations: 5.327 MB / 0.6761 GB, free: 105.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003497/1.184, allocations: 3.11 MB / 0.6791 GB, free: 105.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.252e-05/1.185, allocations: 35.34 kB / 0.6792 GB, free: 105.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.01594/1.2, allocations: 8.432 MB / 0.6874 GB, free: 105.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.802e-05/1.201, allocations: 59.69 kB / 0.6875 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008559/1.209, allocations: 3.144 MB / 0.6905 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008625/1.218, allocations: 1.907 MB / 0.6924 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003847/1.222, allocations: 1.255 MB / 0.6936 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006441/1.228, allocations: 5.905 MB / 0.6994 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/1.232, allocations: 376.7 kB / 0.6997 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005439/1.233, allocations: 347.9 kB / 0.7001 GB, free: 102.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 559 * 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 (674): * Single equations (assignments): 665 * 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.00261/1.236, allocations: 1.851 MB / 0.7019 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004782/1.236, allocations: 297.2 kB / 0.7022 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004474/1.241, allocations: 2.757 MB / 0.7049 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00364/1.244, allocations: 2.347 MB / 0.7072 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/1.244, allocations: 4.25 kB / 0.7072 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/1.244, allocations: 3.656 kB / 0.7072 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/1.257, allocations: 7.824 MB / 0.7148 GB, free: 97.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/1.257, allocations: 0 / 0.7148 GB, free: 97.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009215/1.258, allocations: 222.5 kB / 0.715 GB, free: 97.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002601/1.26, allocations: 1.047 MB / 0.716 GB, free: 96.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/1.26, allocations: 29.52 kB / 0.7161 GB, free: 96.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00419/1.265, allocations: 5.059 MB / 0.721 GB, free: 93.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006802/1.265, allocations: 1.496 MB / 0.7225 GB, free: 92.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006844/1.272, allocations: 5.074 MB / 0.7274 GB, free: 89.38 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/1.273, allocations: 365.8 kB / 0.7278 GB, free: 89.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003222/1.274, allocations: 39.8 kB / 0.7278 GB, free: 88.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/1.275, allocations: 119.8 kB / 0.7279 GB, free: 88.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/1.275, allocations: 90.33 kB / 0.728 GB, free: 88.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/1.275, allocations: 43.5 kB / 0.7281 GB, free: 88.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003807/1.279, allocations: 2.177 MB / 0.7302 GB, free: 87.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.142e-06/1.279, allocations: 0 / 0.7302 GB, free: 87.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004836/1.284, allocations: 0.9699 MB / 0.7311 GB, free: 86.1 MB / 442.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 {(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.006406/1.291, allocations: 6.072 MB / 0.7371 GB, free: 80.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007641/1.298, allocations: 5.145 MB / 0.7421 GB, free: 76.19 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.298, allocations: 0 / 0.7421 GB, free: 76.19 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003238/1.302, allocations: 2.013 MB / 0.744 GB, free: 74.44 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/1.303, allocations: 370.9 kB / 0.7444 GB, free: 74.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2739/1.577, allocations: 115.3 MB / 0.857 GB, free: 137.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002627/1.58, allocations: 2.982 MB / 0.8599 GB, free: 136.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004104/1.584, allocations: 1.699 MB / 0.8616 GB, free: 136.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/1.586, allocations: 1.612 MB / 0.8632 GB, free: 136.6 MB / 474.7 MB Notification: Performance of SimCode: time 9.72e-07/1.586, allocations: 0 / 0.8632 GB, free: 136.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09532/1.681, allocations: 69.8 MB / 0.9313 GB, free: 93.09 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/1.681, allocations: 227.3 kB / 0.9315 GB, free: 92.84 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.914/5.595, allocations: 0 / 0.9315 GB, free: 92.84 MB / 474.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