Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.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.Joints.FreeMotion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.00137, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.2 MB / 245 MB, free: 5.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 96.55 kB / 297.2 MB, free: 5.938 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4522/0.4522, allocations: 45.23 MB / 394.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.0003311, allocations: 11.98 kB / 468.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4171/0.4175, allocations: 63.24 MB / 0.5193 GB, free: 37.3 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.5651, allocations: 104.4 MB / 0.6213 GB, free: 14.96 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.5654, allocations: 83.92 kB / 0.6213 GB, free: 14.88 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5997/1.165, allocations: 88.6 MB / 0.7079 GB, free: 103.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.01e-06/1.165, allocations: 0 / 0.7079 GB, free: 103.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003467/1.166, allocations: 71.38 kB / 0.7079 GB, free: 103.4 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.01419/1.18, allocations: 3.781 MB / 0.7116 GB, free: 101.7 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/1.18, allocations: 10.22 kB / 0.7116 GB, free: 101.7 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003661/1.183, allocations: 0.7629 MB / 0.7124 GB, free: 101.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01712/1.201, allocations: 3.679 MB / 0.716 GB, free: 101.3 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01305/1.214, allocations: 4.131 MB / 0.72 GB, free: 100.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000436/1.214, allocations: 287.9 kB / 0.7203 GB, free: 100.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002548/1.217, allocations: 376.3 kB / 0.7206 GB, free: 100.7 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02242/1.239, allocations: 10.08 MB / 0.7305 GB, free: 96.43 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002896/1.24, allocations: 30.75 kB / 0.7305 GB, free: 96.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002702/1.242, allocations: 173 kB / 0.7307 GB, free: 96.32 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00178/1.244, allocations: 1.166 MB / 0.7318 GB, free: 96.11 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01627/1.26, allocations: 9.885 MB / 0.7415 GB, free: 93.12 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04949/1.31, allocations: 35.72 MB / 0.7763 GB, free: 64.49 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006855/1.317, allocations: 4.285 MB / 0.7805 GB, free: 59.98 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001058/1.318, allocations: 1.315 MB / 0.7818 GB, free: 58.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/1.318, allocations: 52.5 kB / 0.7819 GB, free: 58.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=236): time 5.831e-06/1.318, allocations: 0 / 0.7819 GB, free: 58.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=252): time 0.03801/1.356, allocations: 16.97 MB / 0.7984 GB, free: 41.21 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001201/1.357, allocations: 1.53 MB / 0.7999 GB, free: 39.53 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004981/1.362, allocations: 2.419 MB / 0.8023 GB, free: 37.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006007/1.363, allocations: 60.52 kB / 0.8024 GB, free: 37.04 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001729/1.365, allocations: 2.666 MB / 0.805 GB, free: 34.36 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001398/1.366, allocations: 0.9267 MB / 0.8059 GB, free: 33.45 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007413/1.367, allocations: 107.6 kB / 0.806 GB, free: 33.34 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005809/1.367, allocations: 0.5377 MB / 0.8065 GB, free: 32.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003779/1.371, allocations: 2.377 MB / 0.8088 GB, free: 30.41 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005136/1.376, allocations: 5.321 MB / 0.814 GB, free: 23.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004921/1.381, allocations: 3.568 MB / 0.8175 GB, free: 20.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/1.381, allocations: 28 kB / 0.8175 GB, free: 20.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=731) (initialization): time 0.02011/1.402, allocations: 9.275 MB / 0.8266 GB, free: 10.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/1.402, allocations: 48 kB / 0.8266 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01228/1.414, allocations: 4.465 MB / 0.831 GB, free: 6.215 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009702/1.424, allocations: 2.031 MB / 0.833 GB, free: 4.168 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004738/1.429, allocations: 1.252 MB / 0.8342 GB, free: 2.914 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007392/1.436, allocations: 5.127 MB / 0.8392 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005956/1.442, allocations: 387.6 kB / 0.8396 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00185/1.444, allocations: 320 kB / 0.8399 GB, free: 12.84 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * Number of states: 0 () * Number of discrete variables: 26 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (669): * Single equations (assignments): 657 * Array equations: 8 * 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.006937/1.451, allocations: 2.061 MB / 0.8419 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009986/1.452, allocations: 272.4 kB / 0.8421 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/1.464, allocations: 5.271 MB / 0.8473 GB, free: 5.188 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01016/1.474, allocations: 4.542 MB / 0.8517 GB, free: 0.6289 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.677e-05/1.474, allocations: 4 kB / 0.8517 GB, free: 0.625 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.269e-05/1.474, allocations: 7.969 kB / 0.8517 GB, free: 0.6172 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03537/1.51, allocations: 14.34 MB / 0.8657 GB, free: 2.066 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.972e-05/1.51, allocations: 12 kB / 0.8658 GB, free: 2.055 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/1.512, allocations: 403.3 kB / 0.8661 GB, free: 1.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004281/1.516, allocations: 1.193 MB / 0.8673 GB, free: 464 kB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006803/1.517, allocations: 63.97 kB / 0.8674 GB, free: 400 kB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005387/1.522, allocations: 4.519 MB / 0.8718 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001184/1.524, allocations: 1.483 MB / 0.8732 GB, free: 9.984 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0164/1.54, allocations: 8.683 MB / 0.8817 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/1.541, allocations: 329.5 kB / 0.882 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/1.543, allocations: 51.98 kB / 0.8821 GB, free: 0.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00228/1.545, allocations: 187.7 kB / 0.8822 GB, free: 324 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006103/1.545, allocations: 168.9 kB / 0.8824 GB, free: 156 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003895/1.546, allocations: 73.86 kB / 0.8825 GB, free: 84 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.3854/1.931, allocations: 1.647 MB / 0.8841 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.51e-07/1.931, allocations: 0.5 kB / 0.8841 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007232/1.939, allocations: 1.044 MB / 0.8851 GB, free: 136.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[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 (192): * Single equations (assignments): 182 * Array equations: 6 * 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.01383/1.952, allocations: 11.84 MB / 0.8967 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01138/1.964, allocations: 6.329 MB / 0.9028 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.679e-05/1.964, allocations: 2.75 kB / 0.9028 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005484/1.969, allocations: 2.834 MB / 0.9056 GB, free: 130.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00327/1.973, allocations: 352 kB / 0.906 GB, free: 130.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1001/2.073, allocations: 103.1 MB / 1.007 GB, free: 42.29 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003963/2.077, allocations: 3.321 MB / 1.01 GB, free: 41.04 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004869/2.082, allocations: 2.067 MB / 1.012 GB, free: 40.91 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002944/2.085, allocations: 1.735 MB / 1.014 GB, free: 39.49 MB / 0.5261 GB Notification: Performance of SimCode: time 1.333e-06/2.085, allocations: 0 / 1.014 GB, free: 39.49 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.105/2.19, allocations: 70.22 MB / 1.082 GB, free: 4.652 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/2.19, allocations: 201.4 kB / 1.082 GB, free: 4.41 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.145/6.335, allocations: 0 / 1.082 GB, free: 4.41 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat