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.000843/0.0008427, allocations: 102.4 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001051/0.001051, allocations: 193.9 kB / 17.9 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2332/0.2332, allocations: 45.92 MB / 344.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003003, allocations: 11.98 kB / 418.2 MB, free: 20.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1414, allocations: 63.46 MB / 481.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3469/0.4884, allocations: 57.61 MB / 0.5266 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03112/0.5195, allocations: 12.19 MB / 0.5385 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01687/0.5365, allocations: 271.8 kB / 0.5388 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01146/0.548, allocations: 2.876 MB / 0.5416 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02965/0.5777, allocations: 8.584 MB / 0.55 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005221/0.5829, allocations: 0.8961 MB / 0.5508 GB, free: 14.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04924/0.6322, allocations: 35.74 MB / 0.5857 GB, free: 13.56 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009281/0.6415, allocations: 4.964 MB / 0.5906 GB, free: 8.555 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004556/0.6461, allocations: 1.868 MB / 0.5924 GB, free: 6.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006009/0.6521, allocations: 3.085 MB / 0.5954 GB, free: 3.586 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002133/0.6543, allocations: 216 kB / 0.5956 GB, free: 3.375 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003922/0.6583, allocations: 0.9753 MB / 0.5966 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004167/0.6625, allocations: 2.552 MB / 0.5991 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002661/0.6652, allocations: 1.178 MB / 0.6002 GB, free: 14.65 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01045/0.6756, allocations: 7.684 MB / 0.6077 GB, free: 6.949 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.6757, allocations: 0 / 0.6077 GB, free: 6.949 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.6757, allocations: 0 / 0.6077 GB, free: 6.949 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004225/0.6761, allocations: 0 / 0.6077 GB, free: 6.949 MB / 446.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.01597/0.6921, allocations: 6.167 MB / 0.6137 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.6922, allocations: 12.03 kB / 0.6138 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003838/0.696, allocations: 1.006 MB / 0.6147 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02829/0.7243, allocations: 5.732 MB / 0.6203 GB, free: 9.922 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01211/0.7365, allocations: 4.729 MB / 0.625 GB, free: 5.133 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003443/0.7369, allocations: 316 kB / 0.6253 GB, free: 4.82 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00249/0.7394, allocations: 431.5 kB / 0.6257 GB, free: 4.398 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03356/0.773, allocations: 15.54 MB / 0.6408 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002527/0.7733, allocations: 55.5 kB / 0.6409 GB, free: 4.07 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009577/0.7742, allocations: 203.7 kB / 0.6411 GB, free: 3.871 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006512/0.7808, allocations: 3.372 MB / 0.6444 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03394/0.8147, allocations: 14.67 MB / 0.6587 GB, free: 1.805 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.441/1.256, allocations: 54.99 MB / 0.7124 GB, free: 153 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01894/1.275, allocations: 8.117 MB / 0.7203 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007915/1.283, allocations: 4.761 MB / 0.725 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001941/1.285, allocations: 2.22 MB / 0.7272 GB, free: 149 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.391e-05/1.285, allocations: 65.45 kB / 0.7272 GB, free: 149 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 7.555e-06/1.285, allocations: 0 / 0.7272 GB, free: 149 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.1075/1.392, allocations: 39.51 MB / 0.7658 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/1.392, allocations: 116 kB / 0.7659 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007389/1.4, allocations: 4.288 MB / 0.7701 GB, free: 122.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001008/1.401, allocations: 85.7 kB / 0.7702 GB, free: 122 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002362/1.403, allocations: 3.825 MB / 0.7739 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002047/1.405, allocations: 1.489 MB / 0.7754 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005709/1.406, allocations: 152.8 kB / 0.7755 GB, free: 116.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000359/1.406, allocations: 0.6325 MB / 0.7761 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004945/1.411, allocations: 3.912 MB / 0.78 GB, free: 112 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006972/1.418, allocations: 7.669 MB / 0.7874 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00741/1.426, allocations: 5.431 MB / 0.7928 GB, free: 97.46 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.184e-05/1.426, allocations: 36 kB / 0.7928 GB, free: 97.43 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02523/1.451, allocations: 14.12 MB / 0.8066 GB, free: 83.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/1.451, allocations: 60 kB / 0.8066 GB, free: 83.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000152/1.451, allocations: 128 kB / 0.8068 GB, free: 83.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00696/1.458, allocations: 2.701 MB / 0.8094 GB, free: 80.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006177/1.464, allocations: 1.759 MB / 0.8111 GB, free: 78.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01611/1.481, allocations: 14.11 MB / 0.8249 GB, free: 64.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006138/1.487, allocations: 498.6 kB / 0.8254 GB, free: 63.78 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001486/1.488, allocations: 425 kB / 0.8258 GB, free: 63.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.005558/1.494, allocations: 2.874 MB / 0.8286 GB, free: 60.48 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/1.495, allocations: 462 kB / 0.829 GB, free: 60.02 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01656/1.512, allocations: 10.54 MB / 0.8393 GB, free: 49.43 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/1.512, allocations: 65.2 kB / 0.8394 GB, free: 49.37 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-05/1.512, allocations: 12 kB / 0.8394 GB, free: 49.36 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.976e-05/1.512, allocations: 23.86 kB / 0.8394 GB, free: 49.33 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03825/1.55, allocations: 21.3 MB / 0.8602 GB, free: 27.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.823e-05/1.55, allocations: 12 kB / 0.8602 GB, free: 27.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0033/1.553, allocations: 0.6833 MB / 0.8609 GB, free: 27.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006324/1.56, allocations: 2.479 MB / 0.8633 GB, free: 24.62 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009802/1.561, allocations: 81 kB / 0.8634 GB, free: 24.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/1.576, allocations: 12.88 MB / 0.876 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/1.576, allocations: 15.94 kB / 0.876 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02217/1.598, allocations: 15.06 MB / 0.8907 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/1.6, allocations: 0.5029 MB / 0.8912 GB, free: 11.52 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009701/1.6, allocations: 79.94 kB / 0.8913 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002386/1.603, allocations: 307.2 kB / 0.8915 GB, free: 11.14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006151/1.604, allocations: 266.3 kB / 0.8918 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002863/1.604, allocations: 108 kB / 0.8919 GB, free: 10.78 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004195/1.608, allocations: 2.671 MB / 0.8945 GB, free: 8.105 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.608, allocations: 7.875 kB / 0.8945 GB, free: 8.098 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007344/1.615, allocations: 1.635 MB / 0.8961 GB, free: 6.465 MB / 0.545 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.03447/1.65, allocations: 15.78 MB / 0.9115 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.3005/1.95, allocations: 9.766 MB / 0.9211 GB, free: 204.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.616e-05/1.951, allocations: 1.375 kB / 0.9211 GB, free: 204.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007822/1.958, allocations: 4.293 MB / 0.9253 GB, free: 204 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004599/1.963, allocations: 0.6996 MB / 0.9259 GB, free: 204 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09215/2.055, allocations: 54.94 MB / 0.9796 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005063/2.06, allocations: 4.544 MB / 0.984 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006269/2.067, allocations: 2.724 MB / 0.9867 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004163/2.071, allocations: 2.838 MB / 0.9895 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.663e-06/2.071, allocations: 4 kB / 0.9895 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1667/2.237, allocations: 121.1 MB / 1.108 GB, free: 34.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/2.238, allocations: 200.2 kB / 1.108 GB, free: 33.82 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.229/7.466, allocations: 4.812 kB / 1.108 GB, free: 33.82 MB / 0.5606 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