Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",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.001491/0.001491, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.933/1.933, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001192/0.001192, allocations: 94.34 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5873/0.5873, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004733/0.0004733, allocations: 20 kB / 431.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1286, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5366/0.6652, allocations: 102.4 MB / 0.5788 GB, free: 172 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003098/0.6656, allocations: 75.95 kB / 0.5789 GB, free: 96 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3952/1.061, allocations: 87.54 MB / 0.6644 GB, free: 7.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.326e-06/1.061, allocations: 0 / 0.6644 GB, free: 7.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002171/1.061, allocations: 72 kB / 0.6644 GB, free: 7.84 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: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.01654/1.078, allocations: 3.884 MB / 0.6682 GB, free: 3.887 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/1.078, allocations: 8.031 kB / 0.6682 GB, free: 3.879 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004302/1.082, allocations: 0.7793 MB / 0.669 GB, free: 3.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3789/1.461, allocations: 3.645 MB / 0.6726 GB, free: 95.87 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02018/1.481, allocations: 4.973 MB / 0.6774 GB, free: 95.64 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004877/1.482, allocations: 290.3 kB / 0.6777 GB, free: 95.63 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00299/1.485, allocations: 393 kB / 0.6781 GB, free: 95.63 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03331/1.518, allocations: 10.35 MB / 0.6882 GB, free: 94.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002706/1.518, allocations: 36.5 kB / 0.6882 GB, free: 94.24 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002125/1.521, allocations: 176.1 kB / 0.6884 GB, free: 94.24 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002635/1.523, allocations: 1.201 MB / 0.6895 GB, free: 94.23 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02912/1.552, allocations: 10.17 MB / 0.6995 GB, free: 94.19 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08191/1.634, allocations: 36.56 MB / 0.7352 GB, free: 73.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01269/1.647, allocations: 4.403 MB / 0.7395 GB, free: 71.64 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001664/1.649, allocations: 1.321 MB / 0.7408 GB, free: 70.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/1.649, allocations: 51.75 kB / 0.7408 GB, free: 70.41 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 7.885e-06/1.649, allocations: 3.891 kB / 0.7408 GB, free: 70.41 MB / 490.7 MB Notification: Performance of matching and sorting (n=261): time 0.06921/1.718, allocations: 17.3 MB / 0.7577 GB, free: 64.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00143/1.72, allocations: 1.544 MB / 0.7592 GB, free: 62.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005407/1.725, allocations: 2.484 MB / 0.7617 GB, free: 61.96 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006777/1.726, allocations: 61.59 kB / 0.7617 GB, free: 61.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/1.728, allocations: 2.732 MB / 0.7644 GB, free: 59.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001592/1.73, allocations: 0.9583 MB / 0.7653 GB, free: 59.06 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008389/1.731, allocations: 109.8 kB / 0.7654 GB, free: 58.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004625/1.731, allocations: 0.5556 MB / 0.766 GB, free: 58.56 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006149/1.737, allocations: 2.435 MB / 0.7683 GB, free: 57.81 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008861/1.746, allocations: 5.461 MB / 0.7737 GB, free: 53 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008749/1.755, allocations: 3.642 MB / 0.7772 GB, free: 51.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/1.755, allocations: 37.06 kB / 0.7773 GB, free: 51.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.0367/1.792, allocations: 9.422 MB / 0.7865 GB, free: 47.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.691e-05/1.792, allocations: 56.22 kB / 0.7865 GB, free: 47.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02308/1.815, allocations: 4.59 MB / 0.791 GB, free: 44.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01941/1.835, allocations: 2.055 MB / 0.793 GB, free: 43.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008034/1.843, allocations: 1.294 MB / 0.7943 GB, free: 42.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/1.854, allocations: 5.157 MB / 0.7993 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006826/1.861, allocations: 397.2 kB / 0.7997 GB, free: 37.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/1.863, allocations: 322.8 kB / 0.8 GB, free: 36.76 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 482 * Number of states: 0 () * Number of discrete variables: 24 (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.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 (691): * Single equations (assignments): 679 * 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.006391/1.869, allocations: 2.11 MB / 0.8021 GB, free: 34.94 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007988/1.87, allocations: 288.3 kB / 0.8023 GB, free: 34.65 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01821/1.888, allocations: 5.389 MB / 0.8076 GB, free: 30.28 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01589/1.904, allocations: 4.64 MB / 0.8121 GB, free: 26.45 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.232e-05/1.904, allocations: 11.12 kB / 0.8121 GB, free: 26.44 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.142e-05/1.904, allocations: 11.48 kB / 0.8121 GB, free: 26.44 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04333/1.948, allocations: 14.64 MB / 0.8264 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.43e-05/1.948, allocations: 12.88 kB / 0.8265 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003785/1.952, allocations: 423.3 kB / 0.8269 GB, free: 13.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007968/1.96, allocations: 1.193 MB / 0.828 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006807/1.96, allocations: 67.28 kB / 0.8281 GB, free: 12.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00718/1.968, allocations: 4.527 MB / 0.8325 GB, free: 7.691 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001236/1.969, allocations: 1.486 MB / 0.834 GB, free: 6.066 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02441/1.993, allocations: 8.849 MB / 0.8426 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/1.995, allocations: 347.2 kB / 0.8429 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001318/1.996, allocations: 55.98 kB / 0.843 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003868/2, allocations: 191.7 kB / 0.8432 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/2.001, allocations: 169.6 kB / 0.8433 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004551/2.001, allocations: 83.09 kB / 0.8434 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005015/2.006, allocations: 1.701 MB / 0.8451 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.02e-07/2.006, allocations: 0 / 0.8451 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007811/2.014, allocations: 1.067 MB / 0.8461 GB, free: 9.184 MB / 0.4948 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 (202): * Single equations (assignments): 192 * 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.02862/2.043, allocations: 12 MB / 0.8578 GB, free: 12.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0198/2.063, allocations: 6.486 MB / 0.8642 GB, free: 6.297 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.477e-05/2.063, allocations: 1.938 kB / 0.8642 GB, free: 6.297 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009757/2.073, allocations: 2.907 MB / 0.867 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003239/2.076, allocations: 343.8 kB / 0.8673 GB, free: 3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4543/2.53, allocations: 106.5 MB / 0.9713 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009472/2.54, allocations: 3.41 MB / 0.9747 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005417/2.545, allocations: 1.865 MB / 0.9765 GB, free: 48.06 MB / 0.5261 GB Notification: Performance of SimCode: time 1.774e-06/2.545, allocations: 2.844 kB / 0.9765 GB, free: 48.06 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.794/7.34, allocations: 150 MB / 1.123 GB, free: 132 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat