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/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.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/Complex trunk/package.mo): time 0.001121/0.001121, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 90.97 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1811/0.1811, allocations: 45.15 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.71e-05/2.713e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 63.24 MB / 0.5115 GB, free: 6.695 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3686/0.4692, allocations: 107.9 MB / 0.6168 GB, free: 2.227 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.4695, allocations: 78.02 kB / 0.6169 GB, free: 2.188 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3222/0.7917, allocations: 136.6 MB / 0.7503 GB, free: 1.332 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.034e-06/0.7917, allocations: 4 kB / 0.7503 GB, free: 1.328 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002927/0.792, allocations: 128 kB / 0.7504 GB, free: 1.203 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: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.2913/1.083, allocations: 6.429 MB / 0.7567 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/1.083, allocations: 14.31 kB / 0.7567 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00299/1.086, allocations: 1.114 MB / 0.7578 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03629/1.123, allocations: 9.453 MB / 0.767 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01963/1.142, allocations: 7.348 MB / 0.7742 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003546/1.143, allocations: 487.6 kB / 0.7747 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002195/1.145, allocations: 0.6483 MB / 0.7753 GB, free: 106 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02341/1.168, allocations: 15.14 MB / 0.7901 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002059/1.169, allocations: 97.31 kB / 0.7902 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007352/1.169, allocations: 311.8 kB / 0.7905 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001342/1.171, allocations: 1.343 MB / 0.7918 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01963/1.19, allocations: 11.86 MB / 0.8034 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05931/1.25, allocations: 67.65 MB / 0.8694 GB, free: 52.92 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/1.26, allocations: 5.191 MB / 0.8745 GB, free: 51.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002362/1.263, allocations: 2.58 MB / 0.877 GB, free: 49.92 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 7.864e-05/1.263, allocations: 31.5 kB / 0.8771 GB, free: 49.91 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/1.263, allocations: 53.22 kB / 0.8771 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 4.058e-06/1.263, allocations: 2.219 kB / 0.8771 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=204): time 0.03715/1.3, allocations: 16.81 MB / 0.8935 GB, free: 37.64 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/1.3, allocations: 259.1 kB / 0.8938 GB, free: 37.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007286/1.307, allocations: 5.876 MB / 0.8995 GB, free: 32.14 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003604/1.308, allocations: 53.7 kB / 0.8996 GB, free: 32.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002226/1.31, allocations: 4.707 MB / 0.9042 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006782/1.311, allocations: 0.8122 MB / 0.905 GB, free: 27.15 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/1.311, allocations: 156 kB / 0.9051 GB, free: 27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002911/1.311, allocations: 0.6346 MB / 0.9057 GB, free: 26.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/1.314, allocations: 2.398 MB / 0.9081 GB, free: 24.31 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004463/1.318, allocations: 7.325 MB / 0.9152 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004337/1.323, allocations: 4.175 MB / 0.9193 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-05/1.323, allocations: 48 kB / 0.9193 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.01314/1.336, allocations: 10.04 MB / 0.9291 GB, free: 2.543 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.893e-05/1.336, allocations: 81 kB / 0.9292 GB, free: 2.465 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001343/1.336, allocations: 176 kB / 0.9294 GB, free: 2.293 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001626/1.338, allocations: 0.8245 MB / 0.9302 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004651/1.343, allocations: 1.761 MB / 0.9319 GB, free: 56 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009473/1.352, allocations: 8.477 MB / 0.9402 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006505/1.359, allocations: 418.7 kB / 0.9406 GB, free: 7.602 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/1.36, allocations: 483.1 kB / 0.9411 GB, free: 7.137 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 801 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.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.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,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.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (945): * Single equations (assignments): 939 * 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.001106/1.361, allocations: 0.7303 MB / 0.9418 GB, free: 6.41 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009166/1.362, allocations: 0.5475 MB / 0.9423 GB, free: 5.855 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005821/1.368, allocations: 3.366 MB / 0.9456 GB, free: 3.07 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.924e-05/1.368, allocations: 27.75 kB / 0.9456 GB, free: 3.047 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/1.368, allocations: 4 kB / 0.9456 GB, free: 3.043 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/1.368, allocations: 14.83 kB / 0.9456 GB, free: 3.039 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0181/1.386, allocations: 9.763 MB / 0.9552 GB, free: 11.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/1.386, allocations: 0 / 0.9552 GB, free: 11.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/1.387, allocations: 307.5 kB / 0.9555 GB, free: 10.75 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/1.389, allocations: 0.5186 MB / 0.956 GB, free: 10.22 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/1.389, allocations: 35.98 kB / 0.956 GB, free: 10.19 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008189/1.397, allocations: 7.567 MB / 0.9634 GB, free: 2.242 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/1.397, allocations: 8.094 kB / 0.9634 GB, free: 2.234 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.299/1.696, allocations: 6.15 MB / 0.9694 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002133/1.698, allocations: 0.6164 MB / 0.97 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000625/1.699, allocations: 31.23 kB / 0.97 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/1.701, allocations: 109.1 kB / 0.9701 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/1.701, allocations: 129.9 kB / 0.9703 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/1.701, allocations: 52.12 kB / 0.9703 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00684/1.708, allocations: 4.178 MB / 0.9744 GB, free: 123 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.61e-07/1.708, allocations: 0.7812 kB / 0.9744 GB, free: 123 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007059/1.715, allocations: 1.394 MB / 0.9758 GB, free: 123 MB / 0.5573 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 () * 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.009586/1.725, allocations: 7.001 MB / 0.9826 GB, free: 121.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008844/1.734, allocations: 6.166 MB / 0.9886 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/1.734, allocations: 0 / 0.9886 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002152/1.736, allocations: 1.942 MB / 0.9905 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003999/1.74, allocations: 0.7436 MB / 0.9912 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02504/1.765, allocations: 13.04 MB / 1.004 GB, free: 118.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004349/1.769, allocations: 4.798 MB / 1.009 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005497/1.775, allocations: 2.514 MB / 1.011 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003252/1.778, allocations: 3.054 MB / 1.014 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of SimCode: time 1.543e-06/1.778, allocations: 2.062 kB / 1.014 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1447/1.923, allocations: 114.8 MB / 1.126 GB, free: 46.71 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001287/1.923, allocations: 179.1 kB / 1.126 GB, free: 46.48 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.235/7.158, allocations: 0 / 1.126 GB, free: 46.48 MB / 0.5573 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