Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.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.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 100.7 kB / 16.99 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 202.6 kB / 17.9 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2078/0.2078, allocations: 45.92 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003626, allocations: 4 kB / 418.1 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1305, allocations: 63.45 MB / 481.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.3394/0.4699, allocations: 85.46 MB / 0.5537 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04645/0.5164, allocations: 19.16 MB / 0.5724 GB, free: 10.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01832/0.5348, allocations: 426.9 kB / 0.5728 GB, free: 9.848 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01595/0.5508, allocations: 4.347 MB / 0.5771 GB, free: 5.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04134/0.5922, allocations: 12.21 MB / 0.589 GB, free: 9.242 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006623/0.5988, allocations: 0.9986 MB / 0.59 GB, free: 8.242 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.1059/0.7048, allocations: 72.22 MB / 0.6605 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01116/0.716, allocations: 7.248 MB / 0.6676 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003497/0.7195, allocations: 1.635 MB / 0.6692 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003598/0.7232, allocations: 2.216 MB / 0.6713 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008309/0.724, allocations: 224 kB / 0.6715 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002406/0.7264, allocations: 1.077 MB / 0.6726 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002489/0.7289, allocations: 2.618 MB / 0.6751 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001553/0.7305, allocations: 1.31 MB / 0.6764 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00954/0.74, allocations: 8.826 MB / 0.685 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.7401, allocations: 0 / 0.685 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.575e-06/0.7401, allocations: 0 / 0.685 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0003284/0.7404, allocations: 0 / 0.685 GB, free: 6.676 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.01612/0.7565, allocations: 6.833 MB / 0.6917 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.7566, allocations: 8.031 kB / 0.6917 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00288/0.7595, allocations: 1.057 MB / 0.6928 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06158/0.8211, allocations: 11.16 MB / 0.7037 GB, free: 3.496 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2813/1.102, allocations: 4.993 MB / 0.7085 GB, free: 187 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005311/1.103, allocations: 368.4 kB / 0.7089 GB, free: 187 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002216/1.105, allocations: 0.4902 MB / 0.7094 GB, free: 187 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0321/1.137, allocations: 14.8 MB / 0.7238 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000265/1.138, allocations: 79.58 kB / 0.7239 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007579/1.138, allocations: 239.7 kB / 0.7241 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004758/1.143, allocations: 2.716 MB / 0.7268 GB, free: 180 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0234/1.167, allocations: 12.08 MB / 0.7386 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06309/1.23, allocations: 56.86 MB / 0.7941 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01079/1.241, allocations: 4.477 MB / 0.7985 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/1.241, allocations: 35.31 kB / 0.7985 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/1.241, allocations: 55.67 kB / 0.7986 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=186): time 5.942e-06/1.241, allocations: 7.875 kB / 0.7986 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=204): time 0.05597/1.297, allocations: 20.83 MB / 0.8189 GB, free: 89.36 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.297, allocations: 260.6 kB / 0.8192 GB, free: 89.05 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01343/1.31, allocations: 7.085 MB / 0.8261 GB, free: 81.97 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000679/1.311, allocations: 57.7 kB / 0.8261 GB, free: 81.91 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003604/1.315, allocations: 4.675 MB / 0.8307 GB, free: 77.24 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001084/1.316, allocations: 0.813 MB / 0.8315 GB, free: 76.43 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004349/1.316, allocations: 156 kB / 0.8316 GB, free: 76.28 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002883/1.317, allocations: 0.6286 MB / 0.8323 GB, free: 75.65 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003184/1.32, allocations: 2.56 MB / 0.8348 GB, free: 73.09 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004978/1.325, allocations: 7.456 MB / 0.842 GB, free: 63.19 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0056/1.33, allocations: 4.263 MB / 0.8462 GB, free: 58.93 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001305/1.331, allocations: 48 kB / 0.8462 GB, free: 58.88 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1005) (initialization): time 0.0192/1.35, allocations: 10.46 MB / 0.8565 GB, free: 48.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/1.35, allocations: 83.95 kB / 0.8565 GB, free: 48.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002094/1.35, allocations: 176 kB / 0.8567 GB, free: 48.15 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002465/1.353, allocations: 1.041 MB / 0.8577 GB, free: 47.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005663/1.358, allocations: 1.778 MB / 0.8595 GB, free: 45.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009224/1.368, allocations: 9.726 MB / 0.869 GB, free: 35.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007882/1.376, allocations: 427.5 kB / 0.8694 GB, free: 34.79 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001474/1.377, allocations: 480 kB / 0.8698 GB, free: 34.32 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (939): * Single equations (assignments): 933 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005491/1.383, allocations: 3.051 MB / 0.8728 GB, free: 31.26 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001289/1.384, allocations: 0.5553 MB / 0.8733 GB, free: 30.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005939/1.39, allocations: 3.762 MB / 0.877 GB, free: 26.91 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.793e-05/1.39, allocations: 24 kB / 0.877 GB, free: 26.88 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/1.39, allocations: 8 kB / 0.877 GB, free: 26.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/1.39, allocations: 7.969 kB / 0.8771 GB, free: 26.87 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01905/1.409, allocations: 10.2 MB / 0.887 GB, free: 16.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.96e-05/1.409, allocations: 4 kB / 0.887 GB, free: 16.64 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/1.41, allocations: 323.5 kB / 0.8873 GB, free: 16.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00185/1.412, allocations: 0.7399 MB / 0.8881 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001826/1.413, allocations: 39.98 kB / 0.8881 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008234/1.421, allocations: 8.851 MB / 0.8967 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/1.421, allocations: 0 / 0.8967 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009501/1.43, allocations: 6.748 MB / 0.9033 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002697/1.433, allocations: 0.6421 MB / 0.904 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/1.434, allocations: 28 kB / 0.904 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002369/1.437, allocations: 127.8 kB / 0.9041 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003691/1.437, allocations: 126 kB / 0.9042 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/1.437, allocations: 59.89 kB / 0.9043 GB, free: 14.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009033/1.446, allocations: 4.57 MB / 0.9087 GB, free: 9.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.446, allocations: 3.938 kB / 0.9087 GB, free: 9.926 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009247/1.456, allocations: 1.421 MB / 0.9101 GB, free: 8.508 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (153): * Single equations (assignments): 147 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0115/1.467, allocations: 7.591 MB / 0.9175 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2708/1.738, allocations: 6.458 MB / 0.9239 GB, free: 186.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/1.738, allocations: 1.062 kB / 0.9239 GB, free: 186.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003258/1.741, allocations: 2.085 MB / 0.9259 GB, free: 185.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004699/1.746, allocations: 0.7511 MB / 0.9266 GB, free: 185.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1261/1.872, allocations: 177.4 MB / 1.1 GB, free: 20.56 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004973/1.877, allocations: 4.804 MB / 1.105 GB, free: 15.72 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005707/1.883, allocations: 2.507 MB / 1.107 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003788/1.887, allocations: 3.026 MB / 1.11 GB, free: 10.18 MB / 0.545 GB Notification: Performance of SimCode: time 1.242e-06/1.887, allocations: 0 / 1.11 GB, free: 10.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4302/2.317, allocations: 117.6 MB / 1.225 GB, free: 95.84 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/2.317, allocations: 198.6 kB / 1.225 GB, free: 95.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.395/7.712, allocations: 7.938 kB / 1.225 GB, free: 95.59 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat does not exist to compare? outputFormat=mat