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.001346/0.001346, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009853/0.0009853, allocations: 88.53 kB / 286.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2049/0.2049, allocations: 45.15 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.081e-05/2.084e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1181, allocations: 63.25 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.5602, allocations: 103.7 MB / 0.6057 GB, free: 15.04 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.5605, allocations: 78.58 kB / 0.6058 GB, free: 15 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2229/0.7834, allocations: 87.3 MB / 0.691 GB, free: 15.76 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.7835, allocations: 0 / 0.691 GB, free: 15.76 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002115/0.7837, allocations: 72 kB / 0.6911 GB, free: 15.69 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.01349/0.7972, allocations: 3.619 MB / 0.6946 GB, free: 12.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.7973, allocations: 8.031 kB / 0.6947 GB, free: 12 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01729/0.8146, allocations: 3.688 MB / 0.6983 GB, free: 8.301 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01358/0.8282, allocations: 4.108 MB / 0.7023 GB, free: 4.141 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000344/0.8285, allocations: 120 kB / 0.7024 GB, free: 4.023 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002756/0.8313, allocations: 215.9 kB / 0.7026 GB, free: 3.812 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0146/0.8459, allocations: 7.075 MB / 0.7095 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02137/0.8674, allocations: 9.338 MB / 0.7186 GB, free: 2.93 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001298/0.8675, allocations: 27.72 kB / 0.7186 GB, free: 2.902 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000596/0.8681, allocations: 16 kB / 0.7187 GB, free: 2.887 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0016/0.8698, allocations: 1.16 MB / 0.7198 GB, free: 1.727 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3527/1.222, allocations: 33.36 MB / 0.7524 GB, free: 141 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005444/1.228, allocations: 3.947 MB / 0.7562 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00342/1.231, allocations: 2.082 MB / 0.7583 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001165/1.233, allocations: 1.313 MB / 0.7595 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/1.233, allocations: 55.23 kB / 0.7596 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=238): time 6.432e-06/1.233, allocations: 0 / 0.7596 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=256): time 0.03252/1.265, allocations: 15.45 MB / 0.7747 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/1.265, allocations: 78.27 kB / 0.7748 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003135/1.268, allocations: 2.328 MB / 0.777 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003367/1.269, allocations: 31.91 kB / 0.7771 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001196/1.27, allocations: 2.743 MB / 0.7797 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008131/1.271, allocations: 0.9228 MB / 0.7806 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/1.271, allocations: 0 / 0.7806 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002562/1.271, allocations: 0.5566 MB / 0.7812 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002649/1.274, allocations: 2.324 MB / 0.7835 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004727/1.279, allocations: 5.49 MB / 0.7888 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004279/1.283, allocations: 3.602 MB / 0.7923 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.933e-05/1.283, allocations: 34.42 kB / 0.7924 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=777) (initialization): time 0.01925/1.302, allocations: 8.822 MB / 0.801 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.573e-05/1.302, allocations: 54.34 kB / 0.801 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01138/1.314, allocations: 4.401 MB / 0.8053 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01018/1.324, allocations: 2.024 MB / 0.8073 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004356/1.328, allocations: 1.334 MB / 0.8086 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005328/1.334, allocations: 4.787 MB / 0.8133 GB, free: 123 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004398/1.338, allocations: 286 kB / 0.8136 GB, free: 123 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009186/1.339, allocations: 340.6 kB / 0.8139 GB, free: 122.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (715): * Single equations (assignments): 703 * 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.0008403/1.34, allocations: 391.1 kB / 0.8143 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007702/1.348, allocations: 4.648 MB / 0.8188 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005974/1.348, allocations: 274.4 kB / 0.8191 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008809/1.357, allocations: 5.153 MB / 0.8241 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00744/1.365, allocations: 4.455 MB / 0.8284 GB, free: 117 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/1.365, allocations: 7.328 kB / 0.8284 GB, free: 117 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/1.365, allocations: 9.141 kB / 0.8285 GB, free: 117 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02063/1.385, allocations: 13.34 MB / 0.8415 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/1.385, allocations: 12.22 kB / 0.8415 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/1.387, allocations: 414.5 kB / 0.8419 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003924/1.391, allocations: 1.177 MB / 0.843 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002381/1.391, allocations: 31.06 kB / 0.8431 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00359/1.395, allocations: 4.333 MB / 0.8473 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007032/1.396, allocations: 1.421 MB / 0.8487 GB, free: 99.57 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01145/1.407, allocations: 8.645 MB / 0.8571 GB, free: 91.69 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008541/1.408, allocations: 325.2 kB / 0.8574 GB, free: 91.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003589/1.408, allocations: 27.84 kB / 0.8575 GB, free: 91.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/1.41, allocations: 158.8 kB / 0.8576 GB, free: 91.25 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002927/1.41, allocations: 167 kB / 0.8578 GB, free: 91.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/1.41, allocations: 79.78 kB / 0.8579 GB, free: 91.08 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002054/1.412, allocations: 1.52 MB / 0.8593 GB, free: 89.76 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.132e-06/1.412, allocations: 0 / 0.8593 GB, free: 89.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004522/1.417, allocations: 0.9498 MB / 0.8603 GB, free: 88.82 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 186 * 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.01231/1.429, allocations: 11.91 MB / 0.8719 GB, free: 77.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008943/1.438, allocations: 6.163 MB / 0.8779 GB, free: 72.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/1.438, allocations: 1.5 kB / 0.8779 GB, free: 72.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004236/1.442, allocations: 2.785 MB / 0.8806 GB, free: 69.73 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/1.444, allocations: 259.9 kB / 0.8809 GB, free: 69.52 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/1.462, allocations: 10.14 MB / 0.8908 GB, free: 59.65 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002908/1.465, allocations: 3.33 MB / 0.894 GB, free: 56.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004461/1.469, allocations: 2.18 MB / 0.8962 GB, free: 54.12 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002262/1.471, allocations: 1.761 MB / 0.8979 GB, free: 52.36 MB / 0.5261 GB Notification: Performance of SimCode: time 1.273e-06/1.471, allocations: 0 / 0.8979 GB, free: 52.36 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4135/1.885, allocations: 68.25 MB / 0.9645 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/1.885, allocations: 127.6 kB / 0.9647 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.523/5.408, allocations: 0 / 0.9647 GB, free: 124.6 MB / 0.5261 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