Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.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.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques",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.001473/0.001473, allocations: 181.5 kB / 15.76 MB, free: 6.367 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.533/1.533, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008552/0.0008551, allocations: 98.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1983/0.1983, allocations: 43.56 MB / 362 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003701, allocations: 8 kB / 431.5 MB, free: 19.49 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 58.85 MB / 490.3 MB, free: 8.566 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3821/0.5083, allocations: 107 MB / 0.5834 GB, free: 8.941 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.5086, allocations: 84.39 kB / 0.5834 GB, free: 8.898 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3055/0.8141, allocations: 115 MB / 0.6957 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.945e-06/0.8141, allocations: 8 kB / 0.6957 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004484/0.8146, allocations: 111.9 kB / 0.6958 GB, free: 13.48 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: 1959 * Number of variables: 1959 Notification: Performance of Generate backend data structure: time 0.02085/0.8354, allocations: 5.944 MB / 0.7016 GB, free: 7.461 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.8355, allocations: 8.031 kB / 0.7016 GB, free: 7.453 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004725/0.8402, allocations: 0.9768 MB / 0.7026 GB, free: 6.465 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2639/1.104, allocations: 6.954 MB / 0.7094 GB, free: 105 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02443/1.129, allocations: 6.91 MB / 0.7161 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000533/1.129, allocations: 416.4 kB / 0.7165 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002625/1.132, allocations: 0.5462 MB / 0.7171 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03181/1.164, allocations: 13.37 MB / 0.7301 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003663/1.164, allocations: 78.41 kB / 0.7302 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001735/1.166, allocations: 263.9 kB / 0.7305 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001654/1.168, allocations: 1.258 MB / 0.7317 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02208/1.19, allocations: 10.68 MB / 0.7421 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06387/1.254, allocations: 59.77 MB / 0.8005 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/1.264, allocations: 4.64 MB / 0.805 GB, free: 58.03 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01256/1.277, allocations: 6.489 MB / 0.8113 GB, free: 54.97 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/1.277, allocations: 56.59 kB / 0.8114 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=183): time 4.498e-06/1.277, allocations: 0 / 0.8114 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195): time 0.04232/1.319, allocations: 16.94 MB / 0.8279 GB, free: 47.34 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/1.319, allocations: 233.2 kB / 0.8282 GB, free: 47.08 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009092/1.329, allocations: 5.228 MB / 0.8333 GB, free: 45.26 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004965/1.329, allocations: 55.33 kB / 0.8333 GB, free: 45.21 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002969/1.332, allocations: 4.142 MB / 0.8374 GB, free: 41.53 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001202/1.333, allocations: 0.7613 MB / 0.8381 GB, free: 40.86 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004756/1.334, allocations: 146.7 kB / 0.8383 GB, free: 40.72 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003248/1.334, allocations: 0.6144 MB / 0.8389 GB, free: 40.19 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003005/1.337, allocations: 2.306 MB / 0.8411 GB, free: 38.26 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005101/1.342, allocations: 6.804 MB / 0.8477 GB, free: 29.82 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005163/1.347, allocations: 3.893 MB / 0.8515 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.843e-05/1.348, allocations: 44 kB / 0.8516 GB, free: 26.28 MB / 0.4948 GB Notification: Performance of matching and sorting (n=937) (initialization): time 0.0175/1.365, allocations: 9.281 MB / 0.8607 GB, free: 18.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002626/1.365, allocations: 72 kB / 0.8607 GB, free: 17.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003994/1.366, allocations: 164 kB / 0.8609 GB, free: 17.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/1.368, allocations: 0.6108 MB / 0.8615 GB, free: 17.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005713/1.373, allocations: 1.643 MB / 0.8631 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006226/1.38, allocations: 5.834 MB / 0.8688 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01014/1.39, allocations: 379.6 kB / 0.8691 GB, free: 10 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002263/1.392, allocations: 450.9 kB / 0.8696 GB, free: 9.57 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 731 * Number of states: 0 () * Number of discrete variables: 45 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (885): * Single equations (assignments): 880 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007933/1.4, allocations: 2.696 MB / 0.8722 GB, free: 7.199 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001452/1.401, allocations: 493.6 kB / 0.8727 GB, free: 6.711 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005958/1.407, allocations: 3.072 MB / 0.8757 GB, free: 4.152 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-05/1.408, allocations: 20 kB / 0.8757 GB, free: 4.133 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/1.408, allocations: 4 kB / 0.8757 GB, free: 4.129 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/1.408, allocations: 10.7 kB / 0.8757 GB, free: 4.125 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01814/1.426, allocations: 8.545 MB / 0.8841 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-05/1.426, allocations: 4 kB / 0.8841 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/1.427, allocations: 318.1 kB / 0.8844 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001066/1.429, allocations: 367.3 kB / 0.8847 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001724/1.429, allocations: 32 kB / 0.8847 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005669/1.434, allocations: 5.182 MB / 0.8898 GB, free: 7.801 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.434, allocations: 4 kB / 0.8898 GB, free: 7.797 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00846/1.443, allocations: 6.151 MB / 0.8958 GB, free: 2.125 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003431/1.446, allocations: 0.7909 MB / 0.8966 GB, free: 1.371 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001271/1.448, allocations: 36 kB / 0.8966 GB, free: 1.336 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002039/1.45, allocations: 95.03 kB / 0.8967 GB, free: 1.273 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002874/1.45, allocations: 122.5 kB / 0.8968 GB, free: 1.195 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/1.45, allocations: 52 kB / 0.8969 GB, free: 1.145 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.285/1.735, allocations: 3.867 MB / 0.9006 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.21e-07/1.735, allocations: 1.562 kB / 0.9007 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009113/1.744, allocations: 1.228 MB / 0.9018 GB, free: 107.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (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 (154): * Single equations (assignments): 149 * 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 {(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.01285/1.757, allocations: 7.348 MB / 0.909 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01161/1.769, allocations: 5.718 MB / 0.9146 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/1.769, allocations: 1.125 kB / 0.9146 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002685/1.772, allocations: 1.715 MB / 0.9163 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003953/1.776, allocations: 0.605 MB / 0.9169 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1173/1.893, allocations: 158 MB / 1.071 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006555/1.9, allocations: 4.256 MB / 1.075 GB, free: 16.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006709/1.906, allocations: 2.327 MB / 1.078 GB, free: 16.51 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005214/1.912, allocations: 2.579 MB / 1.08 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of SimCode: time 2.785e-06/1.912, allocations: 0 / 1.08 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3995/2.311, allocations: 100.2 MB / 1.178 GB, free: 151.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001284/2.311, allocations: 191.2 kB / 1.178 GB, free: 151.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.703/8.015, allocations: 0 / 1.178 GB, free: 151.1 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat