Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",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.001581/0.001581, allocations: 179.8 kB / 14.15 MB, free: 1.172 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 221.3 MB / 236 MB, free: 2.941 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.001006/0.001006, allocations: 87.23 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2094/0.2094, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.727e-05/3.738e-05, allocations: 8.156 kB / 451.9 MB, free: 9.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1519, allocations: 61.92 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4559/0.6079, allocations: 103.2 MB / 0.6026 GB, free: 1.973 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.6083, allocations: 79.95 kB / 0.6027 GB, free: 1.895 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2224/0.8306, allocations: 84.71 MB / 0.6854 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.026e-06/0.8307, allocations: 0 / 0.6854 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002074/0.8309, allocations: 68 kB / 0.6855 GB, free: 12.45 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.01931/0.8503, allocations: 3.86 MB / 0.6892 GB, free: 8.531 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.8503, allocations: 8.031 kB / 0.6892 GB, free: 8.523 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003217/0.8536, allocations: 0.75 MB / 0.69 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03548/0.8891, allocations: 5.875 MB / 0.6957 GB, free: 1.871 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01969/0.9088, allocations: 5.169 MB / 0.7008 GB, free: 12.65 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000463/0.9093, allocations: 279.3 kB / 0.701 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003036/0.9124, allocations: 367.9 kB / 0.7014 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02961/0.942, allocations: 10.36 MB / 0.7115 GB, free: 1.141 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000142/0.9422, allocations: 27.72 kB / 0.7115 GB, free: 1.113 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00101/0.9432, allocations: 171.9 kB / 0.7117 GB, free: 0.9453 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3761/1.319, allocations: 1.157 MB / 0.7128 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02627/1.346, allocations: 9.972 MB / 0.7226 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05977/1.405, allocations: 37.4 MB / 0.7591 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/1.416, allocations: 5.57 MB / 0.7645 GB, free: 111 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002904/1.419, allocations: 2.31 MB / 0.7668 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001501/1.42, allocations: 1.874 MB / 0.7686 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/1.42, allocations: 51.72 kB / 0.7687 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=224): time 1.178e-05/1.42, allocations: 2.719 kB / 0.7687 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=231): time 0.0283/1.449, allocations: 12.36 MB / 0.7807 GB, free: 105 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001299/1.45, allocations: 1.516 MB / 0.7822 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004006/1.454, allocations: 2.481 MB / 0.7846 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005626/1.455, allocations: 54.25 kB / 0.7847 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001805/1.457, allocations: 2.684 MB / 0.7873 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009902/1.458, allocations: 0.8483 MB / 0.7881 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/1.458, allocations: 106.4 kB / 0.7882 GB, free: 99.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002716/1.458, allocations: 0.5423 MB / 0.7888 GB, free: 99.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003107/1.461, allocations: 2.559 MB / 0.7913 GB, free: 98.75 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0043/1.465, allocations: 5.539 MB / 0.7967 GB, free: 93.91 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004911/1.47, allocations: 3.788 MB / 0.8004 GB, free: 92.74 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.667e-05/1.47, allocations: 30.97 kB / 0.8004 GB, free: 92.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=724) (initialization): time 0.05869/1.529, allocations: 18.88 MB / 0.8189 GB, free: 80.61 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.499e-05/1.529, allocations: 52 kB / 0.8189 GB, free: 80.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04156/1.571, allocations: 11.96 MB / 0.8306 GB, free: 70.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04429/1.615, allocations: 10.31 MB / 0.8407 GB, free: 59.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004404/1.62, allocations: 1.244 MB / 0.8419 GB, free: 58.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02317/1.643, allocations: 15.88 MB / 0.8574 GB, free: 42.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005403/1.648, allocations: 440.5 kB / 0.8578 GB, free: 41.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/1.649, allocations: 313.7 kB / 0.8581 GB, free: 41.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 477 * 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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (652): * Single equations (assignments): 641 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001116/1.65, allocations: 0.5084 MB / 0.8586 GB, free: 41.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005516/1.651, allocations: 272.4 kB / 0.8589 GB, free: 40.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00791/1.659, allocations: 5.069 MB / 0.8638 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006357/1.665, allocations: 4.351 MB / 0.8681 GB, free: 31.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/1.665, allocations: 8 kB / 0.8681 GB, free: 31.33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/1.665, allocations: 7.969 kB / 0.8681 GB, free: 31.32 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0204/1.686, allocations: 12.95 MB / 0.8807 GB, free: 18.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/1.686, allocations: 8 kB / 0.8807 GB, free: 18.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/1.688, allocations: 407.3 kB / 0.8811 GB, free: 17.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002781/1.69, allocations: 0.9383 MB / 0.882 GB, free: 16.87 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002377/1.691, allocations: 57.23 kB / 0.8821 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005574/1.696, allocations: 5.428 MB / 0.8874 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008739/1.697, allocations: 1.463 MB / 0.8888 GB, free: 9.531 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0118/1.709, allocations: 8.288 MB / 0.8969 GB, free: 0.9453 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/1.71, allocations: 333.6 kB / 0.8972 GB, free: 0.5977 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/1.71, allocations: 49.66 kB / 0.8973 GB, free: 0.5508 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/1.712, allocations: 195.7 kB / 0.8975 GB, free: 368 kB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003871/1.712, allocations: 137.7 kB / 0.8976 GB, free: 228 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001622/1.712, allocations: 73.22 kB / 0.8977 GB, free: 156 kB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003005/1.715, allocations: 1.681 MB / 0.8993 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/1.715, allocations: 0 / 0.8993 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005479/1.721, allocations: 1.114 MB / 0.9004 GB, free: 13.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01478/1.736, allocations: 10.88 MB / 0.911 GB, free: 2.227 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.327/2.063, allocations: 6.479 MB / 0.9173 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.015e-05/2.063, allocations: 1.938 kB / 0.9173 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005437/2.068, allocations: 2.496 MB / 0.9198 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002745/2.071, allocations: 333.1 kB / 0.9201 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02692/2.098, allocations: 9.875 MB / 0.9297 GB, free: 139.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005236/2.103, allocations: 3.246 MB / 0.9329 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006825/2.11, allocations: 2.06 MB / 0.9349 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003171/2.113, allocations: 1.669 MB / 0.9365 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.934e-06/2.113, allocations: 0 / 0.9365 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1203/2.234, allocations: 80.05 MB / 1.015 GB, free: 98.58 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/2.234, allocations: 183.1 kB / 1.015 GB, free: 98.35 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.892/6.126, allocations: 0 / 1.015 GB, free: 98.35 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat