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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009698/0.0009698, allocations: 98.89 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001094/0.001094, allocations: 202.5 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2125/0.2125, allocations: 45.91 MB / 344 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002825/0.0002827, allocations: 8 kB / 418.1 MB, free: 20.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1468, allocations: 63.46 MB / 481.5 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3749/0.5218, allocations: 54.35 MB / 0.5233 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03885/0.5607, allocations: 12.73 MB / 0.5357 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01763/0.5785, allocations: 275 kB / 0.536 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01302/0.5915, allocations: 2.745 MB / 0.5387 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03588/0.6274, allocations: 7.994 MB / 0.5465 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005175/0.6326, allocations: 0.8964 MB / 0.5474 GB, free: 168 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0442/0.6769, allocations: 26.79 MB / 0.5735 GB, free: 9.156 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01216/0.6891, allocations: 4.921 MB / 0.5783 GB, free: 4.191 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004494/0.6937, allocations: 1.569 MB / 0.5799 GB, free: 2.617 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004529/0.6983, allocations: 2.239 MB / 0.5821 GB, free: 380 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001434/0.6997, allocations: 220 kB / 0.5823 GB, free: 160 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003263/0.703, allocations: 0.9559 MB / 0.5832 GB, free: 15.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003224/0.7063, allocations: 2.361 MB / 0.5855 GB, free: 12.83 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002232/0.7085, allocations: 1.178 MB / 0.5867 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0108/0.7193, allocations: 7.677 MB / 0.5942 GB, free: 3.949 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.7194, allocations: 0 / 0.5942 GB, free: 3.949 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.7194, allocations: 0 / 0.5942 GB, free: 3.949 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003794/0.7198, allocations: 4 kB / 0.5942 GB, free: 3.945 MB / 430.1 MB 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.01843/0.7382, allocations: 6.362 MB / 0.6004 GB, free: 13.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.7383, allocations: 12.03 kB / 0.6004 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004081/0.7424, allocations: 1.009 MB / 0.6014 GB, free: 12.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03391/0.7763, allocations: 7.075 MB / 0.6083 GB, free: 5.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.013/0.7894, allocations: 4.355 MB / 0.6125 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004675/0.7899, allocations: 316 kB / 0.6128 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003088/0.793, allocations: 435.6 kB / 0.6132 GB, free: 232 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03379/0.8268, allocations: 15.71 MB / 0.6286 GB, free: 15.79 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002406/0.8271, allocations: 55.5 kB / 0.6286 GB, free: 15.73 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009064/0.828, allocations: 203.7 kB / 0.6288 GB, free: 15.53 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006695/0.8347, allocations: 3.376 MB / 0.6321 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03314/0.8679, allocations: 14.88 MB / 0.6467 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1084/0.9764, allocations: 55.25 MB / 0.7006 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2948/1.271, allocations: 8.183 MB / 0.7086 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002205/1.273, allocations: 2.214 MB / 0.7108 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.176e-05/1.274, allocations: 68.33 kB / 0.7108 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 8.786e-06/1.274, allocations: 0 / 0.7108 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.106/1.38, allocations: 40.55 MB / 0.7504 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.692e-05/1.38, allocations: 112 kB / 0.7505 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006839/1.387, allocations: 4.742 MB / 0.7552 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001231/1.388, allocations: 82.88 kB / 0.7553 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00233/1.39, allocations: 3.831 MB / 0.759 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002426/1.393, allocations: 1.483 MB / 0.7604 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004401/1.393, allocations: 154.8 kB / 0.7606 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004829/1.394, allocations: 0.6325 MB / 0.7612 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006011/1.4, allocations: 3.908 MB / 0.765 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007587/1.407, allocations: 7.639 MB / 0.7725 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006964/1.414, allocations: 5.433 MB / 0.7778 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001709/1.414, allocations: 40 kB / 0.7778 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.0272/1.442, allocations: 14.12 MB / 0.7916 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001804/1.442, allocations: 60 kB / 0.7917 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002396/1.442, allocations: 128 kB / 0.7918 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007467/1.45, allocations: 2.706 MB / 0.7944 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006962/1.457, allocations: 1.755 MB / 0.7961 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01853/1.475, allocations: 14.55 MB / 0.8104 GB, free: 96.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007946/1.483, allocations: 499.6 kB / 0.8108 GB, free: 95.78 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002234/1.485, allocations: 428.2 kB / 0.8112 GB, free: 95.36 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (911): * Single equations (assignments): 903 * 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.008071/1.494, allocations: 2.874 MB / 0.814 GB, free: 92.48 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/1.495, allocations: 466 kB / 0.8145 GB, free: 92.02 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02106/1.516, allocations: 10.54 MB / 0.8248 GB, free: 81.42 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/1.517, allocations: 67.92 kB / 0.8249 GB, free: 81.36 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.811e-05/1.517, allocations: 8 kB / 0.8249 GB, free: 81.35 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000103/1.517, allocations: 15.94 kB / 0.8249 GB, free: 81.33 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04538/1.562, allocations: 21.33 MB / 0.8457 GB, free: 59.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.681e-05/1.562, allocations: 12 kB / 0.8457 GB, free: 59.76 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003669/1.566, allocations: 0.6904 MB / 0.8464 GB, free: 59.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0074/1.573, allocations: 2.471 MB / 0.8488 GB, free: 56.59 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001417/1.575, allocations: 77.92 kB / 0.8489 GB, free: 56.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01662/1.591, allocations: 13.33 MB / 0.8619 GB, free: 42.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/1.591, allocations: 15.94 kB / 0.8619 GB, free: 42.89 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02648/1.618, allocations: 16.44 MB / 0.878 GB, free: 25.75 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/1.62, allocations: 0.5069 MB / 0.8785 GB, free: 25.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001857/1.622, allocations: 76 kB / 0.8785 GB, free: 25.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003847/1.625, allocations: 308.1 kB / 0.8788 GB, free: 24.85 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001494/1.627, allocations: 266 kB / 0.8791 GB, free: 24.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008831/1.628, allocations: 109.2 kB / 0.8792 GB, free: 24.48 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005718/1.634, allocations: 3.038 MB / 0.8821 GB, free: 21.44 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.01e-07/1.634, allocations: 0 / 0.8821 GB, free: 21.44 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009571/1.643, allocations: 1.656 MB / 0.8838 GB, free: 19.79 MB / 0.5294 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.34/1.983, allocations: 19.66 MB / 0.903 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0199/2.003, allocations: 9.773 MB / 0.9125 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/2.003, allocations: 6.188 kB / 0.9125 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008045/2.011, allocations: 4.29 MB / 0.9167 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004049/2.015, allocations: 0.6343 MB / 0.9173 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1211/2.136, allocations: 143.6 MB / 1.058 GB, free: 32.83 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007793/2.144, allocations: 4.667 MB / 1.062 GB, free: 28.63 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007561/2.152, allocations: 2.734 MB / 1.065 GB, free: 25.89 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005386/2.157, allocations: 2.854 MB / 1.068 GB, free: 23.04 MB / 0.5294 GB Notification: Performance of SimCode: time 2.324e-06/2.157, allocations: 0 / 1.068 GB, free: 23.04 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5091/2.666, allocations: 122.2 MB / 1.187 GB, free: 120.6 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002317/2.667, allocations: 187.3 kB / 1.187 GB, free: 120.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.199/7.866, allocations: 0 / 1.187 GB, free: 120.4 MB / 0.545 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