Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_UniversalSpherical",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.002222, allocations: 181.2 kB / 16.4 MB, free: 5.723 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.048/2.048, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001137/0.001136, allocations: 89.25 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5251/0.5251, allocations: 43.55 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000495/0.000495, allocations: 16 kB / 431.5 MB, free: 6.047 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1357, allocations: 58.84 MB / 490.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5371/0.6728, allocations: 121.6 MB / 0.5976 GB, free: 12.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.6732, allocations: 77.05 kB / 0.5977 GB, free: 12.77 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.232/1.905, allocations: 230.6 MB / 0.8229 GB, free: 26.63 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.849e-06/1.905, allocations: 4 kB / 0.8229 GB, free: 26.63 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0008909/1.906, allocations: 283.9 kB / 0.8232 GB, free: 26.35 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: 4701 * Number of variables: 4701 Notification: Performance of Generate backend data structure: time 0.08857/1.995, allocations: 15.22 MB / 0.838 GB, free: 11.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/1.995, allocations: 12.02 kB / 0.838 GB, free: 11 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01426/2.009, allocations: 2.844 MB / 0.8408 GB, free: 8.145 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0781/2.087, allocations: 10.51 MB / 0.8511 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4698/2.557, allocations: 14.07 MB / 0.8648 GB, free: 50.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001742/2.559, allocations: 1.087 MB / 0.8659 GB, free: 50.15 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008463/2.568, allocations: 1.443 MB / 0.8673 GB, free: 50.15 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1184/2.686, allocations: 33 MB / 0.8995 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001235/2.687, allocations: 151.9 kB / 0.8997 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007173/2.695, allocations: 0.6573 MB / 0.9003 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006516/2.701, allocations: 2.541 MB / 0.9028 GB, free: 44.06 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09335/2.794, allocations: 27.3 MB / 0.9295 GB, free: 42.91 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2469/3.041, allocations: 131.5 MB / 1.058 GB, free: 14.84 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06738/3.109, allocations: 13 MB / 1.071 GB, free: 4.648 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5035/3.612, allocations: 30.99 MB / 1.101 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.611e-05/3.613, allocations: 82.34 kB / 1.101 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=424): time 7.224e-06/3.613, allocations: 0 / 1.101 GB, free: 110.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=554): time 0.7182/4.331, allocations: 126.9 MB / 1.225 GB, free: 72.51 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05369/4.385, allocations: 24.19 MB / 1.249 GB, free: 47.62 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02321/4.408, allocations: 8.361 MB / 1.257 GB, free: 39.33 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001941/4.41, allocations: 113.5 kB / 1.257 GB, free: 39.21 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007609/4.418, allocations: 8.676 MB / 1.265 GB, free: 30.55 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004335/4.422, allocations: 2.14 MB / 1.267 GB, free: 28.42 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003806/4.426, allocations: 319.7 kB / 1.268 GB, free: 28.11 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001987/4.428, allocations: 0.9966 MB / 1.269 GB, free: 27.11 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4868/4.915, allocations: 9.389 MB / 1.278 GB, free: 100.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03139/4.946, allocations: 18.67 MB / 1.296 GB, free: 88.53 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03032/4.976, allocations: 12.87 MB / 1.309 GB, free: 88.42 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004835/4.977, allocations: 101.9 kB / 1.309 GB, free: 88.42 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2096) (initialization): time 0.1249/5.102, allocations: 35.01 MB / 1.343 GB, free: 86.87 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004531/5.102, allocations: 148 kB / 1.343 GB, free: 86.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08696/5.189, allocations: 22.07 MB / 1.365 GB, free: 79.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06309/5.253, allocations: 9.327 MB / 1.374 GB, free: 78.09 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02523/5.278, allocations: 3.938 MB / 1.378 GB, free: 77.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08434/5.362, allocations: 48.41 MB / 1.425 GB, free: 50.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02747/5.39, allocations: 1.703 MB / 1.426 GB, free: 49.19 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00452/5.394, allocations: 0.9851 MB / 1.427 GB, free: 48.28 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1488 * Number of states: 0 () * Number of discrete variables: 72 (init2.arrowColor[3],init2.arrowColor[2],init2.arrowColor[1],init.arrowColor[3],init.arrowColor[2],init.arrowColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],universalSpherical1.cylinderColor[3],universalSpherical1.cylinderColor[2],universalSpherical1.cylinderColor[1],universalSpherical1.sphereColor[3],universalSpherical1.sphereColor[2],universalSpherical1.sphereColor[1],universalSpherical1.rodColor[3],universalSpherical1.rodColor[2],universalSpherical1.rodColor[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1961): * Single equations (assignments): 1934 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 5 {1,1,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 8,(8,76.6%) 20,(1,100.0%) 3,(1,100.0%) 9,(4,87.5%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01891/5.413, allocations: 6.291 MB / 1.434 GB, free: 42.92 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002904/5.416, allocations: 0.868 MB / 1.434 GB, free: 42.52 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1175/5.534, allocations: 27.64 MB / 1.461 GB, free: 22.32 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.5496/6.083, allocations: 25.8 MB / 1.487 GB, free: 81.28 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001194/6.084, allocations: 19.78 kB / 1.487 GB, free: 81.28 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001536/6.084, allocations: 26.81 kB / 1.487 GB, free: 81.28 MB / 0.5573 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2064/6.29, allocations: 58.7 MB / 1.544 GB, free: 77.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001052/6.29, allocations: 3.875 kB / 1.544 GB, free: 77.44 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01091/6.301, allocations: 1.089 MB / 1.545 GB, free: 77.44 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08881/6.39, allocations: 14.01 MB / 1.559 GB, free: 76.85 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002427/6.393, allocations: 172.1 kB / 1.559 GB, free: 76.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1255/6.518, allocations: 61.81 MB / 1.619 GB, free: 47.14 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05388/6.572, allocations: 23.92 MB / 1.643 GB, free: 34.05 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1375/6.71, allocations: 39.5 MB / 1.681 GB, free: 13.14 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01089/6.721, allocations: 2.479 MB / 1.684 GB, free: 11.12 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004152/6.725, allocations: 126.9 kB / 1.684 GB, free: 11 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01606/6.741, allocations: 0.8537 MB / 1.685 GB, free: 10.14 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003835/6.745, allocations: 412.9 kB / 1.685 GB, free: 9.746 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0018/6.747, allocations: 179.8 kB / 1.685 GB, free: 9.57 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01855/6.765, allocations: 5.788 MB / 1.691 GB, free: 3.832 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.61e-07/6.765, allocations: 1.875 kB / 1.691 GB, free: 3.832 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.479/7.244, allocations: 4.287 MB / 1.695 GB, free: 97.65 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 30 ($STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[6],$STATESET3.x[5],$STATESET3.x[4],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[2],$STATESET1.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (435): * Single equations (assignments): 420 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {3,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(4,87.5%) 6,(1,100.0%) 4,(4,93.8%) 8,(8,76.6%) 20,(7,93.9%) 12} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.1455/7.39, allocations: 40.56 MB / 1.735 GB, free: 95.48 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.05695/7.447, allocations: 23.5 MB / 1.758 GB, free: 93.96 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/7.447, allocations: 0 / 1.758 GB, free: 93.96 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.03169/7.479, allocations: 11.23 MB / 1.769 GB, free: 92.01 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0118/7.491, allocations: 1.28 MB / 1.77 GB, free: 91.54 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6502/8.141, allocations: 297.6 MB / 2.06 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02949/8.17, allocations: 9.485 MB / 2.07 GB, free: 10.4 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02041/8.191, allocations: 6.74 MB / 2.076 GB, free: 10.39 MB / 0.6355 GB Notification: Performance of SimCode: time 1.814e-06/8.191, allocations: 0 / 2.076 GB, free: 10.39 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.48/19.67, allocations: 0.9399 GB / 3.016 GB, free: 41.18 MB / 0.6355 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_UniversalSpherical_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_UniversalSpherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat