Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2",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.001522/0.001526, allocations: 186 kB / 16.4 MB, free: 5.699 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.127/2.127, 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.001107/0.001106, allocations: 91.39 kB / 270.9 MB, free: 8.375 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.5643/0.5643, allocations: 43.56 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004735/0.0004736, allocations: 16 kB / 431.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1559, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5494/0.7053, allocations: 105.4 MB / 0.5818 GB, free: 12.92 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.7057, allocations: 82.86 kB / 0.5819 GB, free: 12.84 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9081/1.614, allocations: 128.9 MB / 0.7078 GB, free: 90.38 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.857e-06/1.614, allocations: 0 / 0.7078 GB, free: 90.38 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000429/1.614, allocations: 116.2 kB / 0.7079 GB, free: 90.38 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.03156/1.646, allocations: 6.69 MB / 0.7144 GB, free: 87.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.754e-05/1.646, allocations: 8.312 kB / 0.7144 GB, free: 87.73 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00619/1.652, allocations: 1.1 MB / 0.7155 GB, free: 87.63 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05119/1.704, allocations: 6.451 MB / 0.7218 GB, free: 87.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03026/1.734, allocations: 8.617 MB / 0.7302 GB, free: 86.31 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006193/1.735, allocations: 448.6 kB / 0.7306 GB, free: 86.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004196/1.739, allocations: 0.5822 MB / 0.7312 GB, free: 86.29 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05089/1.79, allocations: 15.43 MB / 0.7463 GB, free: 81.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005117/1.79, allocations: 59.05 kB / 0.7463 GB, free: 81.49 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003747/1.794, allocations: 265 kB / 0.7466 GB, free: 81.34 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004506/1.799, allocations: 1.7 MB / 0.7482 GB, free: 81.05 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04659/1.845, allocations: 14.84 MB / 0.7627 GB, free: 76.7 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1333/1.979, allocations: 56.38 MB / 0.8178 GB, free: 27.69 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03043/2.009, allocations: 7.993 MB / 0.8256 GB, free: 19.47 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00265/2.012, allocations: 2.214 MB / 0.8278 GB, free: 16.89 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.472e-05/2.012, allocations: 73.06 kB / 0.8278 GB, free: 16.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 9.478e-06/2.012, allocations: 4 kB / 0.8278 GB, free: 16.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.5829/2.595, allocations: 39.67 MB / 0.8666 GB, free: 93.79 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.116e-05/2.595, allocations: 118.1 kB / 0.8667 GB, free: 93.7 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0116/2.607, allocations: 3.877 MB / 0.8705 GB, free: 93.32 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001246/2.608, allocations: 85.05 kB / 0.8706 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003897/2.612, allocations: 3.796 MB / 0.8743 GB, free: 91.36 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002793/2.615, allocations: 1.487 MB / 0.8757 GB, free: 90.46 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001535/2.616, allocations: 154.2 kB / 0.8759 GB, free: 90.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008277/2.617, allocations: 0.6413 MB / 0.8765 GB, free: 90.13 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01023/2.627, allocations: 3.887 MB / 0.8803 GB, free: 90.12 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01324/2.641, allocations: 7.702 MB / 0.8878 GB, free: 85.35 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01359/2.654, allocations: 5.436 MB / 0.8931 GB, free: 85.29 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002356/2.655, allocations: 42.41 kB / 0.8932 GB, free: 85.29 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1020) (initialization): time 0.04776/2.702, allocations: 13.93 MB / 0.9068 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/2.703, allocations: 61.2 kB / 0.9068 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003232/2.703, allocations: 131.5 kB / 0.9069 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01456/2.717, allocations: 2.638 MB / 0.9095 GB, free: 81.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01431/2.732, allocations: 1.942 MB / 0.9114 GB, free: 81.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03197/2.764, allocations: 14.07 MB / 0.9252 GB, free: 74.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/2.774, allocations: 486 kB / 0.9256 GB, free: 74.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00223/2.776, allocations: 435.7 kB / 0.926 GB, free: 74.71 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 597 * Number of states: 0 () * Number of discrete variables: 48 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (923): * Single equations (assignments): 915 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009658/2.786, allocations: 2.917 MB / 0.9289 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001837/2.788, allocations: 467.6 kB / 0.9293 GB, free: 73.18 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03668/2.825, allocations: 10.43 MB / 0.9395 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001302/2.825, allocations: 66.56 kB / 0.9396 GB, free: 69.76 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.265e-05/2.825, allocations: 12.53 kB / 0.9396 GB, free: 69.76 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001121/2.825, allocations: 17.34 kB / 0.9396 GB, free: 69.76 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06597/2.891, allocations: 21.06 MB / 0.9602 GB, free: 62.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.608e-05/2.891, allocations: 17.27 kB / 0.9602 GB, free: 62.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007401/2.899, allocations: 0.7865 MB / 0.961 GB, free: 62.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01323/2.912, allocations: 2.411 MB / 0.9633 GB, free: 62.28 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00124/2.913, allocations: 82.25 kB / 0.9634 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02866/2.942, allocations: 12.82 MB / 0.9759 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.388e-05/2.942, allocations: 14.94 kB / 0.9759 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04135/2.983, allocations: 16.25 MB / 0.9918 GB, free: 42.84 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005322/2.989, allocations: 1.155 MB / 0.9929 GB, free: 41.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002504/2.991, allocations: 75.84 kB / 0.993 GB, free: 41.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006453/2.998, allocations: 297.5 kB / 0.9933 GB, free: 41.52 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001803/3, allocations: 255.4 kB / 0.9935 GB, free: 41.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006893/3, allocations: 115.9 kB / 0.9936 GB, free: 41.24 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007776/3.008, allocations: 2.725 MB / 0.9963 GB, free: 39.02 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.403e-06/3.008, allocations: 4 kB / 0.9963 GB, free: 39.01 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01162/3.02, allocations: 1.652 MB / 0.9979 GB, free: 37.37 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04351/3.063, allocations: 19.47 MB / 1.017 GB, free: 19.47 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0234/3.087, allocations: 9.72 MB / 1.026 GB, free: 9.734 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.879e-05/3.087, allocations: 4 kB / 1.026 GB, free: 9.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01092/3.098, allocations: 4.24 MB / 1.031 GB, free: 5.465 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006592/3.104, allocations: 0.642 MB / 1.031 GB, free: 4.852 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5565/3.661, allocations: 145.8 MB / 1.174 GB, free: 29.88 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01866/3.68, allocations: 4.758 MB / 1.178 GB, free: 45 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01342/3.693, allocations: 2.968 MB / 1.181 GB, free: 44.99 MB / 0.5573 GB Notification: Performance of SimCode: time 2.014e-06/3.693, allocations: 4 kB / 1.181 GB, free: 44.99 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.504/9.197, allocations: 172.9 MB / 1.35 GB, free: 138 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat