Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.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.WorldForceAndTorque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForceAndTorque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForceAndTorque",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.002399/0.002399, allocations: 185.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.406/2.406, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001208/0.001208, allocations: 91.59 kB / 270.9 MB, free: 8.371 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.521/0.521, allocations: 43.55 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005061/0.0005061, allocations: 16 kB / 431.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1399, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5335/0.6734, allocations: 107.7 MB / 0.584 GB, free: 10.61 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003956/0.6739, allocations: 83.95 kB / 0.5841 GB, free: 10.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.206/1.88, allocations: 179.5 MB / 0.7594 GB, free: 77.19 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.048e-06/1.88, allocations: 0 / 0.7594 GB, free: 77.19 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009101/1.881, allocations: 181.1 kB / 0.7596 GB, free: 77.18 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3271 * Number of variables: 3271 Notification: Performance of Generate backend data structure: time 0.05556/1.937, allocations: 9.458 MB / 0.7688 GB, free: 71.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001001/1.937, allocations: 9.062 kB / 0.7688 GB, free: 71.29 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01005/1.947, allocations: 1.622 MB / 0.7704 GB, free: 70.22 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1061/2.053, allocations: 9.867 MB / 0.7801 GB, free: 65.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04995/2.103, allocations: 9.892 MB / 0.7897 GB, free: 58.61 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001321/2.105, allocations: 0.6963 MB / 0.7904 GB, free: 57.94 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006727/2.111, allocations: 0.9291 MB / 0.7913 GB, free: 57.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09436/2.206, allocations: 22.35 MB / 0.8131 GB, free: 32.99 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001017/2.207, allocations: 111 kB / 0.8132 GB, free: 32.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00521/2.212, allocations: 439.8 kB / 0.8137 GB, free: 32.45 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004616/2.217, allocations: 2.081 MB / 0.8157 GB, free: 30.36 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06053/2.277, allocations: 18.71 MB / 0.834 GB, free: 11.61 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5752/2.853, allocations: 91.6 MB / 0.9234 GB, free: 55.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03973/2.892, allocations: 9.435 MB / 0.9326 GB, free: 54.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006483/2.893, allocations: 84.06 kB / 0.9327 GB, free: 54.48 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.661e-05/2.893, allocations: 79.47 kB / 0.9328 GB, free: 54.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=412): time 8.406e-06/2.893, allocations: 2.406 kB / 0.9328 GB, free: 54.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=475): time 0.2018/3.095, allocations: 45.18 MB / 0.9769 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/3.095, allocations: 287.5 kB / 0.9772 GB, free: 43.83 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02039/3.116, allocations: 7.409 MB / 0.9844 GB, free: 41.38 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001496/3.117, allocations: 97.39 kB / 0.9845 GB, free: 41.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005729/3.123, allocations: 5.787 MB / 0.9902 GB, free: 36.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003157/3.126, allocations: 1.749 MB / 0.9919 GB, free: 35.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002546/3.129, allocations: 225.4 kB / 0.9921 GB, free: 35.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001362/3.13, allocations: 0.7808 MB / 0.9928 GB, free: 34.72 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01395/3.144, allocations: 5.05 MB / 0.9978 GB, free: 33 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0184/3.163, allocations: 11.11 MB / 1.009 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01786/3.18, allocations: 7.343 MB / 1.016 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002501/3.181, allocations: 61.44 kB / 1.016 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1461) (initialization): time 0.0532/3.234, allocations: 17.99 MB / 1.033 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002171/3.234, allocations: 96.19 kB / 1.034 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004962/3.235, allocations: 215.2 kB / 1.034 GB, free: 11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/3.247, allocations: 2.477 MB / 1.036 GB, free: 9.188 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02004/3.267, allocations: 2.677 MB / 1.039 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04057/3.307, allocations: 17.47 MB / 1.056 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01533/3.323, allocations: 0.6768 MB / 1.056 GB, free: 6.961 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003432/3.326, allocations: 0.6441 MB / 1.057 GB, free: 6.344 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 966 * Number of states: 0 () * Number of discrete variables: 75 (forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.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],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],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 (1365): * Single equations (assignments): 1359 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01483/3.341, allocations: 4.2 MB / 1.061 GB, free: 2.652 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003735/3.345, allocations: 0.7482 MB / 1.062 GB, free: 1.895 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4514/3.796, allocations: 11.32 MB / 1.073 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/3.797, allocations: 50.44 kB / 1.073 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-05/3.797, allocations: 10.84 kB / 1.073 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001439/3.797, allocations: 25.5 kB / 1.073 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07607/3.873, allocations: 22.98 MB / 1.096 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.575e-05/3.873, allocations: 6.125 kB / 1.096 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0095/3.882, allocations: 0.8762 MB / 1.096 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01132/3.894, allocations: 2.133 MB / 1.098 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001531/3.895, allocations: 91.5 kB / 1.099 GB, free: 120.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03703/3.933, allocations: 16.19 MB / 1.114 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.669e-06/3.933, allocations: 4.094 kB / 1.114 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04883/3.981, allocations: 17.79 MB / 1.132 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006782/3.988, allocations: 1.607 MB / 1.133 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003783/3.992, allocations: 91.11 kB / 1.133 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009099/4.001, allocations: 353.7 kB / 1.134 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002148/4.003, allocations: 291.5 kB / 1.134 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001231/4.005, allocations: 124.4 kB / 1.134 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01488/4.02, allocations: 5.286 MB / 1.139 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.42e-07/4.02, allocations: 0 / 1.139 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01607/4.036, allocations: 2.272 MB / 1.141 GB, free: 104.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (406): * Single equations (assignments): 400 * 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 {(4,75.0%) 18,(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.04985/4.086, allocations: 19.12 MB / 1.16 GB, free: 96.01 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03174/4.117, allocations: 12.55 MB / 1.172 GB, free: 91.87 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/4.117, allocations: 0 / 1.172 GB, free: 91.87 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01527/4.133, allocations: 5.357 MB / 1.178 GB, free: 87.18 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00981/4.143, allocations: 0.9275 MB / 1.179 GB, free: 86.41 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6648/4.808, allocations: 239.2 MB / 1.412 GB, free: 22.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01965/4.827, allocations: 6.597 MB / 1.419 GB, free: 21.37 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01318/4.84, allocations: 4.543 MB / 1.423 GB, free: 20.57 MB / 0.5573 GB Notification: Performance of SimCode: time 1.482e-06/4.841, allocations: 0 / 1.423 GB, free: 20.57 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.495/12.34, allocations: 293 MB / 1.709 GB, free: 127.6 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForceAndTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForceAndTorque.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque_res.mat does not exist to compare? outputFormat=mat