Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.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.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",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.001776/0.001776, allocations: 181.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.3/2.3, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001659/0.001658, allocations: 90.69 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2963/0.2963, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.182e-05/4.192e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1308, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5854/0.7162, allocations: 114.6 MB / 0.5848 GB, free: 5.262 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/0.7165, allocations: 84.11 kB / 0.5849 GB, free: 5.223 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6383/1.355, allocations: 123.6 MB / 0.7056 GB, free: 1.137 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.005e-06/1.355, allocations: 4 kB / 0.7056 GB, free: 1.133 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004422/1.355, allocations: 108 kB / 0.7057 GB, free: 1.027 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.387/1.742, allocations: 5.643 MB / 0.7112 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/1.743, allocations: 9.781 kB / 0.7112 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005452/1.748, allocations: 0.969 MB / 0.7122 GB, free: 107 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03874/1.787, allocations: 4.734 MB / 0.7168 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0285/1.815, allocations: 6.639 MB / 0.7233 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009229/1.816, allocations: 448.5 kB / 0.7237 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003829/1.82, allocations: 0.543 MB / 0.7243 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04941/1.87, allocations: 14.07 MB / 0.738 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000505/1.87, allocations: 70.78 kB / 0.7381 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00336/1.874, allocations: 263.7 kB / 0.7383 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003124/1.877, allocations: 1.296 MB / 0.7396 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03856/1.915, allocations: 11.66 MB / 0.751 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09907/2.015, allocations: 59.34 MB / 0.8089 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02155/2.036, allocations: 4.641 MB / 0.8135 GB, free: 59.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005869/2.042, allocations: 2.705 MB / 0.8161 GB, free: 58.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03153/2.074, allocations: 12.62 MB / 0.8284 GB, free: 50.11 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.644e-05/2.074, allocations: 55.81 kB / 0.8285 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=191): time 7.244e-06/2.074, allocations: 0 / 0.8285 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=242): time 0.1811/2.255, allocations: 32.85 MB / 0.8605 GB, free: 23.82 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.892e-05/2.255, allocations: 239.6 kB / 0.8608 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/2.266, allocations: 4.202 MB / 0.8649 GB, free: 19.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000714/2.267, allocations: 61.7 kB / 0.8649 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003382/2.271, allocations: 3.794 MB / 0.8686 GB, free: 16.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001586/2.272, allocations: 0.9158 MB / 0.8695 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/2.274, allocations: 148 kB / 0.8697 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007717/2.274, allocations: 0.6062 MB / 0.8703 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008068/2.283, allocations: 3.159 MB / 0.8734 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0109/2.294, allocations: 7.43 MB / 0.8806 GB, free: 2.453 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/2.306, allocations: 4.752 MB / 0.8853 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000173/2.306, allocations: 44 kB / 0.8853 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=942) (initialization): time 0.05274/2.359, allocations: 13.51 MB / 0.8985 GB, free: 140 kB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/2.359, allocations: 72 kB / 0.8986 GB, free: 68 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3887/2.747, allocations: 153.1 kB / 0.8987 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02332/2.771, allocations: 3.795 MB / 0.9024 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01139/2.782, allocations: 1.616 MB / 0.904 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04796/2.83, allocations: 18 MB / 0.9216 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01004/2.84, allocations: 493.6 kB / 0.922 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002083/2.843, allocations: 430.2 kB / 0.9224 GB, free: 109.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 689 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (859): * Single equations (assignments): 855 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003397/2.846, allocations: 0.6481 MB / 0.9231 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/2.847, allocations: 433.2 kB / 0.9235 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03281/2.88, allocations: 8.087 MB / 0.9314 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.292e-05/2.88, allocations: 23.25 kB / 0.9314 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-05/2.88, allocations: 16.84 kB / 0.9314 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.726e-05/2.88, allocations: 15.75 kB / 0.9314 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06192/2.942, allocations: 17.39 MB / 0.9484 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.165e-05/2.943, allocations: 6.25 kB / 0.9484 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003911/2.946, allocations: 385.6 kB / 0.9488 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02143/2.968, allocations: 3.849 MB / 0.9526 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006981/2.969, allocations: 41.89 kB / 0.9526 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04086/3.01, allocations: 16.45 MB / 0.9687 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/3.01, allocations: 0 / 0.9687 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04029/3.05, allocations: 12.55 MB / 0.9809 GB, free: 93.42 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003781/3.054, allocations: 0.9446 MB / 0.9818 GB, free: 92.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001888/3.056, allocations: 35.66 kB / 0.9819 GB, free: 92.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005418/3.061, allocations: 218.2 kB / 0.9821 GB, free: 92.91 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001207/3.062, allocations: 142.4 kB / 0.9822 GB, free: 92.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005197/3.063, allocations: 66.55 kB / 0.9823 GB, free: 92.87 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008425/3.071, allocations: 2.921 MB / 0.9851 GB, free: 91.84 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.663e-06/3.072, allocations: 0 / 0.9851 GB, free: 91.84 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01019/3.082, allocations: 1.45 MB / 0.9866 GB, free: 91.69 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04113/3.123, allocations: 13.46 MB / 0.9997 GB, free: 82.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01789/3.141, allocations: 7.739 MB / 1.007 GB, free: 75.65 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/3.141, allocations: 3 kB / 1.007 GB, free: 75.65 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007008/3.148, allocations: 2.913 MB / 1.01 GB, free: 73.01 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004801/3.153, allocations: 0.4897 MB / 1.011 GB, free: 72.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04439/3.197, allocations: 13.07 MB / 1.023 GB, free: 61.35 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009897/3.207, allocations: 4.223 MB / 1.027 GB, free: 58.21 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006592/3.214, allocations: 2.538 MB / 1.03 GB, free: 55.85 MB / 0.5105 GB Notification: Performance of SimCode: time 1.433e-06/3.214, allocations: 0 / 1.03 GB, free: 55.85 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.35/8.564, allocations: 129.9 MB / 1.157 GB, free: 93.4 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat