Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009752/0.0009752, allocations: 172.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 221.5 MB / 230.7 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008929/0.0008928, allocations: 104.6 kB / 281.6 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.219/0.219, allocations: 44.15 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.991e-05/1.984e-05, allocations: 4 kB / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1389, allocations: 61.92 MB / 0.4948 GB, free: 1.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5845/0.7234, allocations: 102.8 MB / 0.5952 GB, free: 9.547 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.7237, allocations: 79.95 kB / 0.5952 GB, free: 9.469 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2206/0.9443, allocations: 85.02 MB / 0.6783 GB, free: 3.766 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.9443, allocations: 0 / 0.6783 GB, free: 3.766 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001646/0.9445, allocations: 75.98 kB / 0.6783 GB, free: 3.691 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.01282/0.9573, allocations: 3.611 MB / 0.6819 GB, free: 20 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.9574, allocations: 11.98 kB / 0.6819 GB, free: 8 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01693/0.9743, allocations: 3.629 MB / 0.6854 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.9874, allocations: 4.744 MB / 0.69 GB, free: 7.57 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000214/0.9876, allocations: 124 kB / 0.6902 GB, free: 7.449 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002486/0.9901, allocations: 220 kB / 0.6904 GB, free: 7.234 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01368/1.004, allocations: 7.071 MB / 0.6973 GB, free: 164 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02112/1.025, allocations: 9.327 MB / 0.7064 GB, free: 6.363 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001341/1.025, allocations: 31.66 kB / 0.7064 GB, free: 6.332 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004763/1.026, allocations: 16 kB / 0.7064 GB, free: 6.316 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001527/1.027, allocations: 1.168 MB / 0.7076 GB, free: 5.148 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3795/1.407, allocations: 33.35 MB / 0.7401 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00558/1.412, allocations: 3.947 MB / 0.744 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00335/1.416, allocations: 2.087 MB / 0.746 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001138/1.417, allocations: 1.319 MB / 0.7473 GB, free: 120 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/1.417, allocations: 61.86 kB / 0.7474 GB, free: 120 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=238): time 5.62e-06/1.417, allocations: 0 / 0.7474 GB, free: 120 MB / 0.5105 GB Notification: Performance of matching and sorting (n=256): time 0.03146/1.448, allocations: 15.45 MB / 0.7625 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/1.449, allocations: 74.56 kB / 0.7625 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004867/1.453, allocations: 2.329 MB / 0.7648 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006237/1.454, allocations: 25.7 kB / 0.7648 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001606/1.456, allocations: 2.744 MB / 0.7675 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001094/1.457, allocations: 0.9151 MB / 0.7684 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/1.457, allocations: 3.75 kB / 0.7684 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003205/1.457, allocations: 0.5556 MB / 0.769 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002627/1.46, allocations: 2.323 MB / 0.7712 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003822/1.464, allocations: 5.487 MB / 0.7766 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003954/1.468, allocations: 3.605 MB / 0.7801 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.392e-05/1.468, allocations: 32.25 kB / 0.7801 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=777) (initialization): time 0.01912/1.487, allocations: 8.85 MB / 0.7888 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.033e-05/1.487, allocations: 55.72 kB / 0.7888 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01213/1.499, allocations: 4.433 MB / 0.7932 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01034/1.51, allocations: 2.056 MB / 0.7952 GB, free: 102 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004823/1.514, allocations: 1.336 MB / 0.7965 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00595/1.52, allocations: 4.794 MB / 0.8012 GB, free: 97.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004699/1.525, allocations: 286.7 kB / 0.8014 GB, free: 97.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009736/1.526, allocations: 343 kB / 0.8018 GB, free: 96.75 MB / 0.5105 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.0009314/1.527, allocations: 392.8 kB / 0.8021 GB, free: 96.36 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008314/1.535, allocations: 4.645 MB / 0.8067 GB, free: 92.49 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008251/1.536, allocations: 280.3 kB / 0.8069 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009431/1.546, allocations: 5.15 MB / 0.812 GB, free: 88.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008355/1.554, allocations: 4.457 MB / 0.8163 GB, free: 84.47 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/1.554, allocations: 4 kB / 0.8163 GB, free: 84.47 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.882e-05/1.554, allocations: 6.984 kB / 0.8163 GB, free: 84.47 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0235/1.578, allocations: 13.35 MB / 0.8294 GB, free: 73.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.119e-05/1.578, allocations: 10.12 kB / 0.8294 GB, free: 73.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/1.58, allocations: 418.3 kB / 0.8298 GB, free: 73.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004147/1.584, allocations: 1.173 MB / 0.8309 GB, free: 72.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003997/1.584, allocations: 31.73 kB / 0.8309 GB, free: 72.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0038/1.588, allocations: 4.342 MB / 0.8352 GB, free: 68.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006618/1.589, allocations: 1.41 MB / 0.8366 GB, free: 66.92 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.011/1.6, allocations: 8.646 MB / 0.845 GB, free: 58.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006663/1.601, allocations: 333.5 kB / 0.8453 GB, free: 57.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004408/1.601, allocations: 19.98 kB / 0.8453 GB, free: 57.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/1.603, allocations: 159.7 kB / 0.8455 GB, free: 57.56 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003305/1.603, allocations: 175.3 kB / 0.8457 GB, free: 57.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/1.603, allocations: 79.3 kB / 0.8457 GB, free: 57.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002149/1.605, allocations: 1.524 MB / 0.8472 GB, free: 55.79 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.022e-06/1.605, allocations: 112 / 0.8472 GB, free: 55.79 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004499/1.61, allocations: 0.9542 MB / 0.8482 GB, free: 54.84 MB / 0.5105 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.01157/1.621, allocations: 11.88 MB / 0.8598 GB, free: 42.61 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009133/1.631, allocations: 6.165 MB / 0.8658 GB, free: 36.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.421e-05/1.631, allocations: 4.312 kB / 0.8658 GB, free: 36.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004317/1.635, allocations: 2.8 MB / 0.8685 GB, free: 33.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/1.637, allocations: 254.1 kB / 0.8688 GB, free: 33.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02311/1.66, allocations: 10.13 MB / 0.8787 GB, free: 23.01 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003878/1.664, allocations: 3.319 MB / 0.8819 GB, free: 19.68 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00486/1.669, allocations: 2.185 MB / 0.884 GB, free: 17.49 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002891/1.672, allocations: 1.768 MB / 0.8858 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of SimCode: time 2.354e-06/1.672, allocations: 0 / 0.8858 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.465/2.137, allocations: 68.26 MB / 0.9524 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/2.137, allocations: 131.2 kB / 0.9526 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.599/5.736, allocations: 3.938 kB / 0.9526 GB, free: 136.1 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat