Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical",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.002222/0.002228, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 86.81 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2984/0.2984, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.327e-05/2.325e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3973, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2055/0.6028, allocations: 101 MB / 0.5646 GB, free: 14.23 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.6032, allocations: 75.95 kB / 0.5647 GB, free: 14.16 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.828/1.431, allocations: 82.22 MB / 0.6449 GB, free: 112 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.785e-06/1.431, allocations: 0 / 0.6449 GB, free: 112 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002208/1.431, allocations: 70.41 kB / 0.645 GB, free: 112 MB / 475.1 MB 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.02322/1.455, allocations: 3.863 MB / 0.6488 GB, free: 110.5 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/1.455, allocations: 14.53 kB / 0.6488 GB, free: 110.5 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04368/1.498, allocations: 5.875 MB / 0.6545 GB, free: 110.2 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02251/1.521, allocations: 5.302 MB / 0.6597 GB, free: 109.7 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003379/1.521, allocations: 119 kB / 0.6598 GB, free: 109.7 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002725/1.524, allocations: 219.9 kB / 0.66 GB, free: 109.7 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01755/1.542, allocations: 6.893 MB / 0.6668 GB, free: 109.7 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02568/1.567, allocations: 9.205 MB / 0.6758 GB, free: 108.3 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001984/1.568, allocations: 31.22 kB / 0.6758 GB, free: 108.3 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002166/1.57, allocations: 15.03 kB / 0.6758 GB, free: 108.3 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002574/1.573, allocations: 1.163 MB / 0.6769 GB, free: 108.1 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07274/1.645, allocations: 35.13 MB / 0.7112 GB, free: 86.82 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006607/1.652, allocations: 4.078 MB / 0.7152 GB, free: 84.54 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004427/1.656, allocations: 2.276 MB / 0.7174 GB, free: 83.66 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002223/1.659, allocations: 1.879 MB / 0.7193 GB, free: 81.91 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/1.659, allocations: 51.88 kB / 0.7193 GB, free: 81.85 MB / 475.1 MB Notification: Performance of pre-optimization done (n=226): time 6.402e-06/1.659, allocations: 0 / 0.7193 GB, free: 81.85 MB / 475.1 MB Notification: Performance of matching and sorting (n=233): time 0.04669/1.706, allocations: 11.79 MB / 0.7308 GB, free: 72.12 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/1.706, allocations: 69.41 kB / 0.7309 GB, free: 72.05 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/1.71, allocations: 2.405 MB / 0.7333 GB, free: 69.94 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006159/1.711, allocations: 27.02 kB / 0.7333 GB, free: 69.91 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/1.713, allocations: 2.766 MB / 0.736 GB, free: 67.38 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001348/1.714, allocations: 0.8383 MB / 0.7368 GB, free: 66.62 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006875/1.715, allocations: 0 / 0.7368 GB, free: 66.62 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004473/1.715, allocations: 0.5618 MB / 0.7374 GB, free: 66.12 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005618/1.721, allocations: 2.532 MB / 0.7398 GB, free: 63.85 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007695/1.729, allocations: 5.743 MB / 0.7454 GB, free: 56.87 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008024/1.737, allocations: 3.814 MB / 0.7492 GB, free: 53.62 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000105/1.737, allocations: 36 kB / 0.7492 GB, free: 53.59 MB / 475.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.1177/1.855, allocations: 18.43 MB / 0.7672 GB, free: 35.55 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/1.855, allocations: 59.95 kB / 0.7672 GB, free: 35.5 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08456/1.939, allocations: 11.88 MB / 0.7789 GB, free: 23.59 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09383/2.033, allocations: 10.31 MB / 0.7889 GB, free: 13.25 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008488/2.042, allocations: 1.33 MB / 0.7902 GB, free: 11.92 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04372/2.086, allocations: 15.1 MB / 0.805 GB, free: 12.59 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007345/2.093, allocations: 347.5 kB / 0.8053 GB, free: 12.25 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001831/2.095, allocations: 337.5 kB / 0.8056 GB, free: 11.92 MB / 491.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 (696): * Single equations (assignments): 685 * 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.002091/2.097, allocations: 396.2 kB / 0.806 GB, free: 11.52 MB / 491.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01514/2.112, allocations: 4.46 MB / 0.8104 GB, free: 7.039 MB / 491.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/2.114, allocations: 276.4 kB / 0.8106 GB, free: 6.766 MB / 491.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01728/2.131, allocations: 4.96 MB / 0.8155 GB, free: 1.77 MB / 491.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0151/2.146, allocations: 4.27 MB / 0.8196 GB, free: 13.48 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/2.146, allocations: 0 / 0.8196 GB, free: 13.48 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-05/2.146, allocations: 7.969 kB / 0.8196 GB, free: 13.48 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04053/2.187, allocations: 11.97 MB / 0.8313 GB, free: 1.375 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-05/2.187, allocations: 8 kB / 0.8313 GB, free: 1.367 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00385/2.191, allocations: 411.3 kB / 0.8317 GB, free: 0.9648 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005725/2.196, allocations: 0.927 MB / 0.8326 GB, free: 28 kB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000636/2.197, allocations: 23.97 kB / 0.8327 GB, free: 4 kB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3679/2.565, allocations: 5.278 MB / 0.8378 GB, free: 129.2 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001331/2.566, allocations: 1.402 MB / 0.8392 GB, free: 127.9 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02271/2.589, allocations: 8.249 MB / 0.8472 GB, free: 126.5 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/2.59, allocations: 333.8 kB / 0.8476 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/2.592, allocations: 15.39 kB / 0.8476 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003655/2.595, allocations: 170.6 kB / 0.8477 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009285/2.596, allocations: 142.8 kB / 0.8479 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003807/2.597, allocations: 77.92 kB / 0.8479 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.004693/2.601, allocations: 1.579 MB / 0.8495 GB, free: 126.2 MB / 0.4952 GB Notification: Performance of sort global known variables: time 9.32e-07/2.601, allocations: 0 / 0.8495 GB, free: 126.2 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.008128/2.61, allocations: 1.01 MB / 0.8505 GB, free: 126.2 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (172): * Single equations (assignments): 163 * 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.02214/2.632, allocations: 10.94 MB / 0.8612 GB, free: 122.4 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01646/2.648, allocations: 6.333 MB / 0.8673 GB, free: 121.9 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/2.648, allocations: 3.875 kB / 0.8673 GB, free: 121.9 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.006326/2.655, allocations: 2.453 MB / 0.8697 GB, free: 121 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003113/2.658, allocations: 249 kB / 0.87 GB, free: 120.9 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03209/2.69, allocations: 10.16 MB / 0.8799 GB, free: 117.3 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006732/2.697, allocations: 3.246 MB / 0.8831 GB, free: 116 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004813/2.702, allocations: 1.732 MB / 0.8848 GB, free: 114.7 MB / 0.4952 GB Notification: Performance of SimCode: time 2.294e-06/2.702, allocations: 3.75 kB / 0.8848 GB, free: 114.7 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.459/7.161, allocations: 129.4 MB / 1.011 GB, free: 6.227 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat