Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009026/0.0009026, allocations: 92.44 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3661/0.3661, allocations: 45.22 MB / 394.6 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003002/0.0003004, allocations: 8.219 kB / 468.5 MB, free: 7.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.3992, allocations: 63.24 MB / 0.5193 GB, free: 43.82 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1567/0.556, allocations: 109.9 MB / 0.6266 GB, free: 11.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003224/0.5564, allocations: 83.92 kB / 0.6267 GB, free: 11.62 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6612/1.218, allocations: 128.3 MB / 0.752 GB, free: 95.43 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.436e-06/1.218, allocations: 0 / 0.752 GB, free: 95.43 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005948/1.218, allocations: 125.3 kB / 0.7521 GB, free: 95.42 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.02953/1.248, allocations: 6.956 MB / 0.7589 GB, free: 92.47 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/1.248, allocations: 6.406 kB / 0.7589 GB, free: 92.47 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005468/1.253, allocations: 1.115 MB / 0.76 GB, free: 91.93 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02855/1.282, allocations: 7.068 MB / 0.7669 GB, free: 90.83 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01891/1.301, allocations: 6.347 MB / 0.7731 GB, free: 88.38 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005635/1.302, allocations: 480.5 kB / 0.7735 GB, free: 88.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003756/1.305, allocations: 0.6211 MB / 0.7742 GB, free: 88.01 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04545/1.351, allocations: 15.28 MB / 0.7891 GB, free: 79.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006609/1.352, allocations: 88.83 kB / 0.7892 GB, free: 79.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003906/1.355, allocations: 308.5 kB / 0.7895 GB, free: 79.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002524/1.358, allocations: 1.427 MB / 0.7908 GB, free: 78.83 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02582/1.384, allocations: 12.29 MB / 0.8029 GB, free: 69.91 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08163/1.466, allocations: 69.89 MB / 0.8711 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01546/1.481, allocations: 6.149 MB / 0.8771 GB, free: 7.977 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01868/1.5, allocations: 8.322 MB / 0.8852 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.737e-05/1.5, allocations: 60.16 kB / 0.8853 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=236): time 4.929e-06/1.5, allocations: 0 / 0.8853 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=278): time 0.4082/1.908, allocations: 28.23 MB / 0.9129 GB, free: 114 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.908, allocations: 238.5 kB / 0.9131 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01153/1.92, allocations: 5.967 MB / 0.9189 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009153/1.921, allocations: 65.14 kB / 0.919 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004656/1.925, allocations: 4.586 MB / 0.9235 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001838/1.927, allocations: 1.057 MB / 0.9245 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007933/1.928, allocations: 170.7 kB / 0.9247 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000499/1.929, allocations: 0.6676 MB / 0.9253 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005167/1.934, allocations: 3.238 MB / 0.9285 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01299/1.947, allocations: 8.314 MB / 0.9366 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01484/1.962, allocations: 5.071 MB / 0.9415 GB, free: 101 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005259/1.962, allocations: 54.03 kB / 0.9416 GB, free: 101 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.04804/2.01, allocations: 12.79 MB / 0.9541 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00055/2.011, allocations: 80.56 kB / 0.9542 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007115/2.012, allocations: 181.3 kB / 0.9543 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005566/2.017, allocations: 1.695 MB / 0.956 GB, free: 96.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008209/2.026, allocations: 1.992 MB / 0.9579 GB, free: 95.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01488/2.041, allocations: 11.65 MB / 0.9693 GB, free: 89.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/2.052, allocations: 0.498 MB / 0.9698 GB, free: 89.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002886/2.055, allocations: 0.5094 MB / 0.9703 GB, free: 89.54 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * Number of states: 0 () * Number of discrete variables: 67 (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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1031): * Single equations (assignments): 1026 * 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.01121/2.066, allocations: 3.049 MB / 0.9733 GB, free: 88.12 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0025/2.069, allocations: 0.5669 MB / 0.9738 GB, free: 87.81 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01356/2.082, allocations: 6.116 MB / 0.9798 GB, free: 85.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.814e-05/2.082, allocations: 31.69 kB / 0.9798 GB, free: 85.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-05/2.082, allocations: 11.38 kB / 0.9798 GB, free: 85.61 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.577e-05/2.082, allocations: 13.92 kB / 0.9798 GB, free: 85.61 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03411/2.117, allocations: 13.95 MB / 0.9935 GB, free: 80.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.923e-05/2.117, allocations: 7.625 kB / 0.9935 GB, free: 80.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002677/2.119, allocations: 0.4944 MB / 0.994 GB, free: 80.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003654/2.123, allocations: 1.419 MB / 0.9953 GB, free: 80.27 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007674/2.124, allocations: 49.34 kB / 0.9954 GB, free: 80.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/2.137, allocations: 10.86 MB / 1.006 GB, free: 74.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/2.137, allocations: 11.64 kB / 1.006 GB, free: 74.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/2.152, allocations: 10.81 MB / 1.017 GB, free: 65.21 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002811/2.155, allocations: 0.6365 MB / 1.017 GB, free: 64.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00261/2.158, allocations: 52 kB / 1.017 GB, free: 64.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004465/2.162, allocations: 185.9 kB / 1.017 GB, free: 64.41 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001151/2.163, allocations: 172 kB / 1.018 GB, free: 64.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002594/2.164, allocations: 75.89 kB / 1.018 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009669/2.173, allocations: 4.271 MB / 1.022 GB, free: 60.73 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.062e-06/2.173, allocations: 4 kB / 1.022 GB, free: 60.73 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01126/2.185, allocations: 1.552 MB / 1.023 GB, free: 59.19 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 215 * 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.01615/2.201, allocations: 12.18 MB / 1.035 GB, free: 48.21 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01355/2.214, allocations: 8.06 MB / 1.043 GB, free: 41.12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/2.215, allocations: 0 / 1.043 GB, free: 41.12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00499/2.22, allocations: 3.132 MB / 1.046 GB, free: 38.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005898/2.225, allocations: 0.6989 MB / 1.047 GB, free: 37.79 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5112/2.737, allocations: 185.3 MB / 1.228 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01458/2.751, allocations: 4.758 MB / 1.232 GB, free: 40.13 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01299/2.764, allocations: 2.791 MB / 1.235 GB, free: 40.07 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00822/2.773, allocations: 2.989 MB / 1.238 GB, free: 39.38 MB / 0.5573 GB Notification: Performance of SimCode: time 2.445e-06/2.773, allocations: 3.875 kB / 1.238 GB, free: 39.38 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5838/3.357, allocations: 126 MB / 1.361 GB, free: 142 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/3.357, allocations: 197.4 kB / 1.361 GB, free: 141.7 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.389/10.75, allocations: 0 / 1.361 GB, free: 141.7 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat