Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 225.6 MB / 234.8 MB, free: 3.191 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008556/0.0008557, allocations: 100.4 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2253/0.2253, allocations: 45.15 MB / 383.8 MB, free: 236 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.76e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1285, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4592/0.5877, allocations: 107.1 MB / 0.6091 GB, free: 11.39 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.588, allocations: 78.27 kB / 0.6091 GB, free: 11.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3397/0.9277, allocations: 131.7 MB / 0.7378 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.824e-06/0.9278, allocations: 0 / 0.7378 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004522/0.9282, allocations: 112 kB / 0.7379 GB, free: 15.48 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02429/0.9525, allocations: 6.246 MB / 0.744 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.555e-05/0.9526, allocations: 8.031 kB / 0.744 GB, free: 9.16 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02783/0.9805, allocations: 6.434 MB / 0.7503 GB, free: 2.707 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3527/1.333, allocations: 7.046 MB / 0.7572 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004043/1.334, allocations: 184.2 kB / 0.7573 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003698/1.337, allocations: 342 kB / 0.7577 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02019/1.358, allocations: 10.43 MB / 0.7678 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02937/1.387, allocations: 13.56 MB / 0.7811 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002347/1.387, allocations: 58.61 kB / 0.7811 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001003/1.388, allocations: 25.31 kB / 0.7812 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001917/1.39, allocations: 1.661 MB / 0.7828 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07498/1.465, allocations: 52.59 MB / 0.8341 GB, free: 89.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007593/1.473, allocations: 6.616 MB / 0.8406 GB, free: 85.81 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005019/1.478, allocations: 4.604 MB / 0.8451 GB, free: 83.97 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001542/1.479, allocations: 2.214 MB / 0.8473 GB, free: 81.91 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/1.479, allocations: 63.84 kB / 0.8473 GB, free: 81.85 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=369): time 6.061e-06/1.479, allocations: 3.281 kB / 0.8473 GB, free: 81.85 MB / 0.5261 GB Notification: Performance of matching and sorting (n=431): time 0.06642/1.546, allocations: 35.58 MB / 0.8821 GB, free: 57.73 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/1.546, allocations: 123.4 kB / 0.8822 GB, free: 57.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004599/1.551, allocations: 3.442 MB / 0.8856 GB, free: 54.56 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001088/1.552, allocations: 25.7 kB / 0.8856 GB, free: 54.53 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002002/1.554, allocations: 3.922 MB / 0.8894 GB, free: 50.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001736/1.555, allocations: 1.48 MB / 0.8909 GB, free: 49.63 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003553/1.556, allocations: 0 / 0.8909 GB, free: 49.63 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003504/1.556, allocations: 0.6496 MB / 0.8915 GB, free: 49.07 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004075/1.56, allocations: 3.823 MB / 0.8952 GB, free: 45.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005444/1.566, allocations: 7.776 MB / 0.9028 GB, free: 36.67 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006023/1.572, allocations: 5.455 MB / 0.9081 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-05/1.572, allocations: 40 kB / 0.9082 GB, free: 32.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1065) (initialization): time 0.02282/1.595, allocations: 13.4 MB / 0.9213 GB, free: 21.08 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.072e-05/1.595, allocations: 68 kB / 0.9213 GB, free: 21.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001566/1.595, allocations: 138.8 kB / 0.9215 GB, free: 20.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007834/1.603, allocations: 2.612 MB / 0.924 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008465/1.611, allocations: 2.036 MB / 0.926 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01546/1.627, allocations: 12.89 MB / 0.9386 GB, free: 6.277 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006124/1.633, allocations: 343.6 kB / 0.9389 GB, free: 5.941 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001397/1.634, allocations: 456 kB / 0.9394 GB, free: 5.496 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * Number of states: 0 () * Number of discrete variables: 50 (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.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (968): * Single equations (assignments): 960 * 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.001301/1.636, allocations: 473 kB / 0.9398 GB, free: 5.031 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01584/1.652, allocations: 9.232 MB / 0.9488 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/1.653, allocations: 450.2 kB / 0.9492 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02274/1.676, allocations: 10.25 MB / 0.9593 GB, free: 1.012 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001092/1.676, allocations: 64 kB / 0.9593 GB, free: 0.9492 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-05/1.676, allocations: 8 kB / 0.9593 GB, free: 0.9414 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-05/1.676, allocations: 19.92 kB / 0.9593 GB, free: 0.9219 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3742/2.05, allocations: 19.65 MB / 0.9785 GB, free: 119.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-05/2.051, allocations: 11.75 kB / 0.9785 GB, free: 119.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003973/2.055, allocations: 0.8096 MB / 0.9793 GB, free: 119.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006805/2.061, allocations: 2.386 MB / 0.9817 GB, free: 119 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001027/2.062, allocations: 25.55 kB / 0.9817 GB, free: 119 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01423/2.077, allocations: 11.7 MB / 0.9931 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.543e-05/2.077, allocations: 21 kB / 0.9931 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02402/2.101, allocations: 16.11 MB / 1.009 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00181/2.103, allocations: 480.4 kB / 1.009 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001981/2.105, allocations: 15.91 kB / 1.009 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003951/2.109, allocations: 242.7 kB / 1.01 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/2.11, allocations: 267.4 kB / 1.01 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006568/2.11, allocations: 119.2 kB / 1.01 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004866/2.115, allocations: 2.314 MB / 1.012 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/2.115, allocations: 0 / 1.012 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01006/2.125, allocations: 1.458 MB / 1.014 GB, free: 113.6 MB / 0.5417 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.02742/2.153, allocations: 19.44 MB / 1.033 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01448/2.167, allocations: 9.45 MB / 1.042 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.65e-05/2.167, allocations: 3.531 kB / 1.042 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006243/2.174, allocations: 4.174 MB / 1.046 GB, free: 99.13 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003797/2.178, allocations: 0.4884 MB / 1.046 GB, free: 98.95 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03934/2.217, allocations: 14.93 MB / 1.061 GB, free: 90.95 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008494/2.225, allocations: 4.697 MB / 1.066 GB, free: 87.44 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007306/2.233, allocations: 2.842 MB / 1.068 GB, free: 85.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005169/2.238, allocations: 2.866 MB / 1.071 GB, free: 83.05 MB / 0.5417 GB Notification: Performance of SimCode: time 7.72e-07/2.238, allocations: 0 / 1.071 GB, free: 83.05 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.458/2.696, allocations: 115.8 MB / 1.184 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/2.696, allocations: 131.4 kB / 1.184 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.043/7.739, allocations: 0 / 1.184 GB, free: 104.6 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat