Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001729/0.001729, 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.677/1.677, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009314/0.0009314, allocations: 96.55 kB / 297.2 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4169/0.4169, allocations: 45.23 MB / 394.6 MB, free: 31.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002899/0.00029, allocations: 11.98 kB / 468.5 MB, free: 7.629 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4073/0.4076, allocations: 63.24 MB / 0.5193 GB, free: 43.64 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1368/0.5445, allocations: 105.6 MB / 0.6224 GB, free: 15.94 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.5447, allocations: 83.92 kB / 0.6225 GB, free: 15.86 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5883/1.133, allocations: 103.4 MB / 0.7235 GB, free: 95.36 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.685e-06/1.133, allocations: 1.688 kB / 0.7235 GB, free: 95.36 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002481/1.133, allocations: 94.48 kB / 0.7235 GB, free: 95.36 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.03158/1.165, allocations: 6.503 MB / 0.7299 GB, free: 93.22 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.243e-05/1.165, allocations: 12.48 kB / 0.7299 GB, free: 93.22 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004588/1.17, allocations: 0.8887 MB / 0.7308 GB, free: 93.14 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01683/1.186, allocations: 3.096 MB / 0.7338 GB, free: 92.79 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01721/1.204, allocations: 6.088 MB / 0.7397 GB, free: 92.13 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000519/1.204, allocations: 370.4 kB / 0.7401 GB, free: 92.12 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00276/1.207, allocations: 497.7 kB / 0.7406 GB, free: 92.11 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03126/1.238, allocations: 12.64 MB / 0.7529 GB, free: 88.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002137/1.239, allocations: 74.03 kB / 0.753 GB, free: 88.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001091/1.24, allocations: 243.7 kB / 0.7532 GB, free: 88.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001602/1.241, allocations: 1.238 MB / 0.7544 GB, free: 88.27 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02193/1.263, allocations: 10.81 MB / 0.765 GB, free: 85.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06973/1.333, allocations: 57.97 MB / 0.8216 GB, free: 42.33 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01426/1.347, allocations: 5.372 MB / 0.8268 GB, free: 40.06 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02182/1.369, allocations: 12.3 MB / 0.8388 GB, free: 28.64 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/1.369, allocations: 55.88 kB / 0.8389 GB, free: 28.57 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=219): time 5.14e-06/1.369, allocations: 0 / 0.8389 GB, free: 28.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=258): time 0.06472/1.434, allocations: 25.08 MB / 0.8634 GB, free: 3.145 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002847/1.437, allocations: 4.652 MB / 0.8679 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008415/1.445, allocations: 4.107 MB / 0.8719 GB, free: 9.914 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008569/1.446, allocations: 68.84 kB / 0.872 GB, free: 9.844 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003246/1.45, allocations: 3.509 MB / 0.8754 GB, free: 6.34 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001755/1.451, allocations: 1.018 MB / 0.8764 GB, free: 5.328 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006333/1.452, allocations: 150.5 kB / 0.8766 GB, free: 5.184 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004637/1.452, allocations: 0.6243 MB / 0.8772 GB, free: 4.555 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005753/1.458, allocations: 3.231 MB / 0.8803 GB, free: 1.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01043/1.469, allocations: 7.492 MB / 0.8877 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008634/1.477, allocations: 4.792 MB / 0.8923 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-05/1.477, allocations: 44 kB / 0.8924 GB, free: 2.898 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.34/1.817, allocations: 13.25 MB / 0.9053 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.818, allocations: 68.06 kB / 0.9054 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01464/1.832, allocations: 6.501 MB / 0.9117 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01157/1.844, allocations: 3.349 MB / 0.915 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006879/1.851, allocations: 1.73 MB / 0.9167 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02143/1.872, allocations: 16.2 MB / 0.9325 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009364/1.882, allocations: 0.771 MB / 0.9333 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002428/1.884, allocations: 453.5 kB / 0.9337 GB, free: 104.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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 (906): * Single equations (assignments): 886 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008616/1.893, allocations: 2.339 MB / 0.936 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002731/1.896, allocations: 419.9 kB / 0.9364 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01715/1.913, allocations: 7.092 MB / 0.9433 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01331/1.926, allocations: 6.441 MB / 0.9496 GB, free: 101 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.563e-05/1.926, allocations: 7.062 kB / 0.9496 GB, free: 101 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.266e-05/1.926, allocations: 9.891 kB / 0.9496 GB, free: 101 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03487/1.961, allocations: 15.4 MB / 0.9647 GB, free: 95.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.072e-05/1.961, allocations: 6.594 kB / 0.9647 GB, free: 95.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/1.964, allocations: 448.4 kB / 0.9651 GB, free: 95.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01066/1.974, allocations: 3.335 MB / 0.9683 GB, free: 95.31 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008405/1.975, allocations: 81.5 kB / 0.9684 GB, free: 95.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01776/1.993, allocations: 16.87 MB / 0.9849 GB, free: 85.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002422/1.995, allocations: 4.456 MB / 0.9893 GB, free: 80.79 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02112/2.016, allocations: 11.31 MB / 1 GB, free: 76.16 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/2.019, allocations: 488.8 kB / 1.001 GB, free: 75.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002177/2.021, allocations: 66.8 kB / 1.001 GB, free: 75.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00456/2.025, allocations: 343 kB / 1.001 GB, free: 75.75 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001093/2.026, allocations: 203.1 kB / 1.001 GB, free: 75.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006227/2.027, allocations: 85.08 kB / 1.001 GB, free: 75.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009791/2.037, allocations: 2.873 MB / 1.004 GB, free: 74.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.31e-07/2.037, allocations: 0 / 1.004 GB, free: 74.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01288/2.05, allocations: 1.533 MB / 1.006 GB, free: 72.58 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.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 (196): * Single equations (assignments): 182 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0252/2.075, allocations: 13.26 MB / 1.019 GB, free: 60.69 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01816/2.093, allocations: 9.365 MB / 1.028 GB, free: 51.22 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/2.093, allocations: 4 kB / 1.028 GB, free: 51.22 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008621/2.102, allocations: 4.658 MB / 1.032 GB, free: 46.38 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/2.106, allocations: 0.5032 MB / 1.033 GB, free: 45.89 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4189/2.525, allocations: 151.6 MB / 1.181 GB, free: 77.81 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006629/2.531, allocations: 3.795 MB / 1.185 GB, free: 77 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.007874/2.539, allocations: 2.252 MB / 1.187 GB, free: 76.96 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004564/2.544, allocations: 2.276 MB / 1.189 GB, free: 76.95 MB / 0.5573 GB Notification: Performance of SimCode: time 2.554e-06/2.544, allocations: 0 / 1.189 GB, free: 76.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1684/2.712, allocations: 106.3 MB / 1.293 GB, free: 19.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/2.712, allocations: 200.4 kB / 1.293 GB, free: 19.71 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.909/8.621, allocations: 0 / 1.293 GB, free: 19.71 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat