Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00207/0.00207, allocations: 183 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.802/1.802, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000872/0.0008722, allocations: 88.34 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.445/0.445, allocations: 43.47 MB / 358.6 MB, free: 51.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.857e-05/3.886e-05, allocations: 4 kB / 425.4 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1408, allocations: 58.85 MB / 484.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5017/0.6426, allocations: 110.1 MB / 0.5804 GB, free: 11.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.643, allocations: 78.48 kB / 0.5805 GB, free: 11.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7248/1.368, allocations: 149.4 MB / 0.7264 GB, free: 80.78 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.925e-06/1.368, allocations: 2.875 kB / 0.7264 GB, free: 80.78 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004244/1.368, allocations: 152.9 kB / 0.7265 GB, free: 80.78 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2763 * Number of variables: 2763 Notification: Performance of Generate backend data structure: time 0.02552/1.394, allocations: 7.391 MB / 0.7337 GB, free: 77.9 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.502e-05/1.394, allocations: 10.58 kB / 0.7338 GB, free: 77.9 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008009/1.402, allocations: 1.374 MB / 0.7351 GB, free: 77.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03216/1.434, allocations: 7.326 MB / 0.7422 GB, free: 77.27 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02766/1.462, allocations: 7.902 MB / 0.75 GB, free: 76.33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001166/1.463, allocations: 0.5839 MB / 0.7505 GB, free: 76.31 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0053/1.468, allocations: 0.7758 MB / 0.7513 GB, free: 76.31 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05905/1.527, allocations: 18.85 MB / 0.7697 GB, free: 71.89 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008363/1.528, allocations: 94.19 kB / 0.7698 GB, free: 71.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004811/1.533, allocations: 374.5 kB / 0.7702 GB, free: 71.67 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003158/1.536, allocations: 1.835 MB / 0.7719 GB, free: 71.35 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03753/1.574, allocations: 15.37 MB / 0.787 GB, free: 66.58 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1089/1.683, allocations: 81.83 MB / 0.8669 GB, free: 20.05 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02104/1.704, allocations: 8.663 MB / 0.8753 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006051/1.71, allocations: 4.622 MB / 0.8798 GB, free: 8.742 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3268/2.037, allocations: 11.8 MB / 0.8914 GB, free: 93.22 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.502e-05/2.037, allocations: 69.69 kB / 0.8914 GB, free: 93.18 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=347): time 8.566e-06/2.037, allocations: 0 / 0.8914 GB, free: 93.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=389): time 0.08067/2.118, allocations: 31.52 MB / 0.9222 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.974e-05/2.118, allocations: 244.7 kB / 0.9224 GB, free: 87.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01007/2.128, allocations: 6.513 MB / 0.9288 GB, free: 87.19 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009039/2.129, allocations: 87.66 kB / 0.9289 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004484/2.133, allocations: 5.288 MB / 0.9341 GB, free: 84.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003044/2.136, allocations: 1.442 MB / 0.9355 GB, free: 83.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001513/2.138, allocations: 201.9 kB / 0.9357 GB, free: 83.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006425/2.139, allocations: 0.7246 MB / 0.9364 GB, free: 83.52 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006932/2.146, allocations: 4.02 MB / 0.9403 GB, free: 83.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009785/2.155, allocations: 9.607 MB / 0.9497 GB, free: 76.36 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008743/2.164, allocations: 6.176 MB / 0.9557 GB, free: 76 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000117/2.164, allocations: 57.31 kB / 0.9558 GB, free: 76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1300) (initialization): time 0.02621/2.191, allocations: 14.98 MB / 0.9704 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001894/2.191, allocations: 88.72 kB / 0.9705 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003185/2.191, allocations: 197.5 kB / 0.9707 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004304/2.195, allocations: 1.729 MB / 0.9723 GB, free: 71.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008992/2.204, allocations: 2.425 MB / 0.9747 GB, free: 70.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/2.217, allocations: 11.42 MB / 0.9859 GB, free: 64.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009168/2.226, allocations: 0.5788 MB / 0.9864 GB, free: 64.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00216/2.228, allocations: 0.5783 MB / 0.987 GB, free: 64.42 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 69 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1228): * Single equations (assignments): 1223 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002082/2.231, allocations: 0.858 MB / 0.9878 GB, free: 63.73 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001509/2.232, allocations: 0.6485 MB / 0.9885 GB, free: 63.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/2.245, allocations: 8.127 MB / 0.9964 GB, free: 60.43 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-05/2.245, allocations: 40.36 kB / 0.9964 GB, free: 60.43 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.192e-05/2.245, allocations: 10.03 kB / 0.9965 GB, free: 60.43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.813e-05/2.245, allocations: 20.14 kB / 0.9965 GB, free: 60.43 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03399/2.279, allocations: 18.22 MB / 1.014 GB, free: 52.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.132e-05/2.279, allocations: 8.125 kB / 1.014 GB, free: 52.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003815/2.283, allocations: 0.7656 MB / 1.015 GB, free: 51.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00331/2.286, allocations: 1.435 MB / 1.016 GB, free: 50.53 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005368/2.287, allocations: 68 kB / 1.016 GB, free: 50.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/2.298, allocations: 10.6 MB / 1.027 GB, free: 40.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/2.298, allocations: 16.56 kB / 1.027 GB, free: 40.98 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01767/2.316, allocations: 14.36 MB / 1.041 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00464/2.321, allocations: 1.325 MB / 1.042 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002011/2.323, allocations: 71.94 kB / 1.042 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003812/2.327, allocations: 254.1 kB / 1.042 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007327/2.327, allocations: 246.2 kB / 1.043 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002823/2.328, allocations: 101.9 kB / 1.043 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007823/2.336, allocations: 4.663 MB / 1.047 GB, free: 22.02 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.81e-07/2.336, allocations: 4 kB / 1.047 GB, free: 22.02 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009821/2.345, allocations: 1.873 MB / 1.049 GB, free: 20.15 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (329): * Single equations (assignments): 324 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01848/2.364, allocations: 16.12 MB / 1.065 GB, free: 5.402 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02123/2.385, allocations: 10.33 MB / 1.075 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/2.385, allocations: 4 kB / 1.075 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006613/2.392, allocations: 3.972 MB / 1.079 GB, free: 9.781 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006082/2.398, allocations: 0.7697 MB / 1.08 GB, free: 9.117 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3338/2.732, allocations: 17.7 MB / 1.097 GB, free: 96.22 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009327/2.741, allocations: 5.649 MB / 1.102 GB, free: 95.33 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009814/2.751, allocations: 3.332 MB / 1.106 GB, free: 95.27 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006896/2.758, allocations: 3.695 MB / 1.109 GB, free: 95.26 MB / 0.5261 GB Notification: Performance of SimCode: time 1.794e-06/2.758, allocations: 0 / 1.109 GB, free: 95.26 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1987/2.957, allocations: 146.9 MB / 1.253 GB, free: 17.31 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/2.957, allocations: 191.1 kB / 1.253 GB, free: 17.06 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.605/11.56, allocations: 3.938 kB / 1.253 GB, free: 17.06 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForcesAndTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForcesAndTorques.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat