Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001213, allocations: 181.1 kB / 17.06 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 241 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 95.92 kB / 292.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3358/0.3358, allocations: 44.22 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003491, allocations: 12 kB / 460 MB, free: 1.387 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.384, allocations: 61.9 MB / 0.5096 GB, free: 38.08 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1608/0.5449, allocations: 107.5 MB / 0.6146 GB, free: 3.539 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.5452, allocations: 91.86 kB / 0.6147 GB, free: 3.457 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5698/1.115, allocations: 120 MB / 0.7319 GB, free: 92.88 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.115, allocations: 0 / 0.7319 GB, free: 92.88 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003514/1.115, allocations: 114.1 kB / 0.732 GB, free: 92.88 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: 2101 * Number of variables: 2101 Notification: Performance of Generate backend data structure: time 0.02621/1.142, allocations: 6.305 MB / 0.7382 GB, free: 89.81 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/1.142, allocations: 7.875 kB / 0.7382 GB, free: 89.81 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006692/1.148, allocations: 1.053 MB / 0.7392 GB, free: 89.27 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04515/1.194, allocations: 6.967 MB / 0.746 GB, free: 88.21 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02454/1.218, allocations: 6.692 MB / 0.7525 GB, free: 85.67 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005593/1.219, allocations: 451.8 kB / 0.753 GB, free: 85.46 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003254/1.222, allocations: 0.5894 MB / 0.7535 GB, free: 85.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04251/1.265, allocations: 15.04 MB / 0.7682 GB, free: 75.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003871/1.265, allocations: 73.25 kB / 0.7683 GB, free: 75.89 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002422/1.268, allocations: 282.2 kB / 0.7686 GB, free: 75.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002411/1.27, allocations: 1.378 MB / 0.7699 GB, free: 74.76 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03642/1.306, allocations: 12.67 MB / 0.7823 GB, free: 62.06 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09591/1.402, allocations: 60.83 MB / 0.8417 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02707/1.429, allocations: 6.123 MB / 0.8477 GB, free: 9.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03357/1.463, allocations: 12.86 MB / 0.8602 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.09e-05/1.463, allocations: 60.55 kB / 0.8603 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=228): time 7.003e-06/1.463, allocations: 8 kB / 0.8603 GB, free: 12.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270): time 0.4765/1.94, allocations: 27.2 MB / 0.8869 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.94, allocations: 215 kB / 0.8871 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01192/1.952, allocations: 4.435 MB / 0.8914 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009366/1.953, allocations: 71.39 kB / 0.8915 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003587/1.956, allocations: 4.041 MB / 0.8954 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00179/1.958, allocations: 1.003 MB / 0.8964 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001295/1.96, allocations: 151.9 kB / 0.8965 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008923/1.96, allocations: 0.6124 MB / 0.8971 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00648/1.967, allocations: 3.007 MB / 0.9001 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009706/1.977, allocations: 7.12 MB / 0.907 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009873/1.987, allocations: 4.532 MB / 0.9115 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003991/1.987, allocations: 43.62 kB / 0.9115 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=939) (initialization): time 0.02652/2.014, allocations: 11.44 MB / 0.9227 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002369/2.014, allocations: 67.03 kB / 0.9227 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003075/2.014, allocations: 145 kB / 0.9229 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00405/2.018, allocations: 1.655 MB / 0.9245 GB, free: 97.88 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005916/2.024, allocations: 1.661 MB / 0.9261 GB, free: 97.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01293/2.037, allocations: 11.66 MB / 0.9375 GB, free: 91.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006538/2.044, allocations: 429 kB / 0.9379 GB, free: 91.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/2.045, allocations: 433.6 kB / 0.9383 GB, free: 91.29 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 59 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceArrow.arrowLine.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (867): * Single equations (assignments): 862 * 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.007195/2.052, allocations: 2.805 MB / 0.9411 GB, free: 90 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001533/2.054, allocations: 462.8 kB / 0.9415 GB, free: 89.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01134/2.065, allocations: 6.07 MB / 0.9474 GB, free: 87.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.616e-05/2.065, allocations: 28.03 kB / 0.9475 GB, free: 87.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.119e-05/2.065, allocations: 11.38 kB / 0.9475 GB, free: 87.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.279e-05/2.066, allocations: 11.06 kB / 0.9475 GB, free: 87.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02883/2.094, allocations: 13.5 MB / 0.9607 GB, free: 82.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/2.094, allocations: 0 / 0.9607 GB, free: 82.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002097/2.097, allocations: 448 kB / 0.9611 GB, free: 82.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003257/2.1, allocations: 1.408 MB / 0.9625 GB, free: 82.47 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002885/2.1, allocations: 47.62 kB / 0.9625 GB, free: 82.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0118/2.112, allocations: 10.91 MB / 0.9732 GB, free: 73.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/2.112, allocations: 3.953 kB / 0.9732 GB, free: 73.95 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01372/2.126, allocations: 9.873 MB / 0.9828 GB, free: 65.43 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002892/2.129, allocations: 0.4978 MB / 0.9833 GB, free: 64.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001549/2.13, allocations: 48.73 kB / 0.9833 GB, free: 64.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003204/2.133, allocations: 204.1 kB / 0.9835 GB, free: 64.75 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006434/2.134, allocations: 161.7 kB / 0.9837 GB, free: 64.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000211/2.134, allocations: 67.75 kB / 0.9837 GB, free: 64.59 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005788/2.14, allocations: 3.119 MB / 0.9868 GB, free: 62.03 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.1e-07/2.14, allocations: 0 / 0.9868 GB, free: 62.03 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01184/2.152, allocations: 1.418 MB / 0.9882 GB, free: 60.62 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (212): * Single equations (assignments): 207 * 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.01497/2.167, allocations: 10.7 MB / 0.9986 GB, free: 51.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01256/2.18, allocations: 7.514 MB / 1.006 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/2.18, allocations: 10.78 kB / 1.006 GB, free: 44.67 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005442/2.185, allocations: 3.145 MB / 1.009 GB, free: 41.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004652/2.19, allocations: 0.6206 MB / 1.01 GB, free: 41.42 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4263/2.616, allocations: 149.6 MB / 1.156 GB, free: 76.67 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01039/2.627, allocations: 4.482 MB / 1.16 GB, free: 75.82 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008934/2.635, allocations: 2.335 MB / 1.162 GB, free: 75.78 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006215/2.642, allocations: 2.739 MB / 1.165 GB, free: 75.54 MB / 0.5417 GB Notification: Performance of SimCode: time 1.673e-06/2.642, allocations: 0 / 1.165 GB, free: 75.54 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1637/2.806, allocations: 109.6 MB / 1.272 GB, free: 5.676 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/2.806, allocations: 210.7 kB / 1.272 GB, free: 5.434 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.087/8.893, allocations: 5.859 kB / 1.272 GB, free: 5.43 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat