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.002123/0.002123, allocations: 180.1 kB / 8.362 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 2.077/2.077, 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.001088/0.001088, allocations: 92.44 kB / 262.1 MB, free: 13.88 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.3003/0.3003, allocations: 43.5 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 3e-05/3.026e-05, allocations: 4 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.418/0.418, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2069/0.625, allocations: 104.7 MB / 0.5682 GB, free: 10.47 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/0.6254, allocations: 75.97 kB / 0.5683 GB, free: 10.4 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9695/1.595, allocations: 126.7 MB / 0.6921 GB, free: 107.8 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.635e-06/1.595, allocations: 3.938 kB / 0.6921 GB, free: 107.8 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004068/1.595, allocations: 111.6 kB / 0.6922 GB, free: 107.8 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.02791/1.623, allocations: 6.247 MB / 0.6983 GB, free: 104.4 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/1.623, allocations: 11.38 kB / 0.6983 GB, free: 104.4 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04851/1.672, allocations: 6.464 MB / 0.7046 GB, free: 101.3 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03074/1.703, allocations: 8.585 MB / 0.713 GB, free: 95.59 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004429/1.703, allocations: 188 kB / 0.7132 GB, free: 95.41 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004238/1.707, allocations: 339.9 kB / 0.7135 GB, free: 95.07 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02706/1.735, allocations: 10.54 MB / 0.7238 GB, free: 84.53 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04098/1.776, allocations: 13.72 MB / 0.7372 GB, free: 70.1 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006922/1.776, allocations: 63.48 kB / 0.7372 GB, free: 70.04 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004217/1.781, allocations: 23.95 kB / 0.7373 GB, free: 70.01 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004407/1.785, allocations: 1.698 MB / 0.7389 GB, free: 68.32 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1201/1.905, allocations: 53.37 MB / 0.791 GB, free: 14.33 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/1.917, allocations: 6.619 MB / 0.7975 GB, free: 7.48 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009166/1.926, allocations: 4.613 MB / 0.802 GB, free: 2.863 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002848/1.929, allocations: 2.201 MB / 0.8042 GB, free: 300 kB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.773e-05/1.93, allocations: 73.08 kB / 0.8042 GB, free: 216 kB / 475.1 MB Notification: Performance of pre-optimization done (n=369): time 9.057e-06/1.93, allocations: 0 / 0.8042 GB, free: 216 kB / 475.1 MB Notification: Performance of matching and sorting (n=431): time 0.5166/2.446, allocations: 35.8 MB / 0.8392 GB, free: 125.2 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.217e-05/2.446, allocations: 117.2 kB / 0.8393 GB, free: 125.1 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01178/2.458, allocations: 3.541 MB / 0.8428 GB, free: 124.9 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001327/2.46, allocations: 25.7 kB / 0.8428 GB, free: 124.8 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.00417/2.464, allocations: 3.912 MB / 0.8466 GB, free: 123.5 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.003171/2.467, allocations: 1.488 MB / 0.8481 GB, free: 122.5 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002003/2.469, allocations: 0 / 0.8481 GB, free: 122.5 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001132/2.47, allocations: 0.6582 MB / 0.8487 GB, free: 122.2 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01143/2.482, allocations: 3.828 MB / 0.8524 GB, free: 122.2 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01499/2.497, allocations: 7.863 MB / 0.8601 GB, free: 117 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/2.51, allocations: 5.486 MB / 0.8655 GB, free: 116.7 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002953/2.511, allocations: 43.53 kB / 0.8655 GB, free: 116.7 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1077) (initialization): time 0.04404/2.555, allocations: 13.33 MB / 0.8785 GB, free: 113.1 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001354/2.555, allocations: 65.59 kB / 0.8786 GB, free: 113.1 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002368/2.555, allocations: 141.7 kB / 0.8787 GB, free: 113.1 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01326/2.569, allocations: 2.61 MB / 0.8813 GB, free: 112.7 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01476/2.583, allocations: 2.063 MB / 0.8833 GB, free: 112.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02887/2.612, allocations: 12.9 MB / 0.8959 GB, free: 106.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/2.623, allocations: 342.9 kB / 0.8962 GB, free: 106.4 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002586/2.625, allocations: 463.7 kB / 0.8967 GB, free: 106.4 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (980): * Single equations (assignments): 972 * 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.00423/2.63, allocations: 489.5 kB / 0.8971 GB, free: 106 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02959/2.659, allocations: 9.236 MB / 0.9062 GB, free: 103.3 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002308/2.662, allocations: 457.1 kB / 0.9066 GB, free: 103 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03455/2.696, allocations: 10.25 MB / 0.9166 GB, free: 99.36 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001587/2.696, allocations: 64.59 kB / 0.9167 GB, free: 99.3 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.448e-05/2.696, allocations: 10 kB / 0.9167 GB, free: 99.29 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001069/2.697, allocations: 24.66 kB / 0.9167 GB, free: 99.29 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05777/2.754, allocations: 19.73 MB / 0.936 GB, free: 83.33 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.813e-05/2.754, allocations: 12 kB / 0.936 GB, free: 83.32 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007296/2.762, allocations: 0.8091 MB / 0.9368 GB, free: 82.7 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01212/2.774, allocations: 2.38 MB / 0.9391 GB, free: 81.16 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001155/2.775, allocations: 31.84 kB / 0.9391 GB, free: 81.14 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02411/2.799, allocations: 11.68 MB / 0.9505 GB, free: 69.67 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.569e-05/2.799, allocations: 23.94 kB / 0.9505 GB, free: 69.64 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03829/2.838, allocations: 16.15 MB / 0.9663 GB, free: 52.75 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005163/2.843, allocations: 1.162 MB / 0.9674 GB, free: 51.57 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001862/2.845, allocations: 16 kB / 0.9675 GB, free: 51.55 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006107/2.851, allocations: 243.6 kB / 0.9677 GB, free: 51.32 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0017/2.853, allocations: 266 kB / 0.9679 GB, free: 51.05 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006007/2.853, allocations: 120 kB / 0.9681 GB, free: 50.94 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.00611/2.859, allocations: 2.38 MB / 0.9704 GB, free: 48.55 MB / 0.4952 GB Notification: Performance of sort global known variables: time 9.32e-07/2.859, allocations: 0 / 0.9704 GB, free: 48.55 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01154/2.871, allocations: 1.458 MB / 0.9718 GB, free: 47.1 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 338 * 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.04171/2.913, allocations: 19.47 MB / 0.9908 GB, free: 27.18 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02229/2.935, allocations: 9.475 MB / 1 GB, free: 17.7 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-05/2.935, allocations: 0 / 1 GB, free: 17.7 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.01037/2.946, allocations: 4.189 MB / 1.004 GB, free: 13.5 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005596/2.951, allocations: 489.8 kB / 1.005 GB, free: 13.02 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05516/3.006, allocations: 15.82 MB / 1.02 GB, free: 13.01 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01399/3.02, allocations: 4.787 MB / 1.025 GB, free: 8.207 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3853/3.406, allocations: 2.991 MB / 1.028 GB, free: 132.2 MB / 0.5108 GB Notification: Performance of SimCode: time 1.714e-06/3.406, allocations: 0 / 1.028 GB, free: 132.2 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.09/8.496, allocations: 172.8 MB / 1.196 GB, free: 14.54 MB / 0.5108 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