Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000967/0.000967, allocations: 91.33 kB / 292.1 MB, free: 5.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.082e-05/3.114e-05, allocations: 0 / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.337/0.4429, allocations: 101.1 MB / 0.4914 GB, free: 4.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.4432, allocations: 82.89 kB / 0.4915 GB, free: 4.277 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4708/0.9141, allocations: 93.5 MB / 0.5828 GB, free: 76.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.9141, allocations: 0 / 0.5828 GB, free: 76.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001753/0.9143, allocations: 92.11 kB / 0.5829 GB, free: 76.44 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01189/0.9262, allocations: 4.47 MB / 0.5873 GB, free: 74.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.9263, allocations: 6.5 kB / 0.5873 GB, free: 74.66 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002058/0.9283, allocations: 0.8106 MB / 0.5881 GB, free: 74.58 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01771/0.946, allocations: 4.438 MB / 0.5924 GB, free: 74.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01173/0.9578, allocations: 4.244 MB / 0.5966 GB, free: 73.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/0.9582, allocations: 337.7 kB / 0.5969 GB, free: 73.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001568/0.9597, allocations: 449.1 kB / 0.5973 GB, free: 73.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02144/0.9812, allocations: 11.2 MB / 0.6082 GB, free: 70.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001807/0.9814, allocations: 64.38 kB / 0.6083 GB, free: 70.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000733/0.9822, allocations: 212.1 kB / 0.6085 GB, free: 70.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001544/0.9837, allocations: 1.099 MB / 0.6096 GB, free: 70.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02038/1.004, allocations: 9.129 MB / 0.6185 GB, free: 70.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0514/1.056, allocations: 50.31 MB / 0.6676 GB, free: 35.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/1.066, allocations: 4.764 MB / 0.6723 GB, free: 34.31 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002514/1.069, allocations: 2.305 MB / 0.6745 GB, free: 33.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009337/1.078, allocations: 7.262 MB / 0.6816 GB, free: 29.63 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/1.078, allocations: 63.02 kB / 0.6817 GB, free: 29.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=177): time 4.789e-06/1.078, allocations: 0 / 0.6817 GB, free: 29.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=198): time 0.03947/1.118, allocations: 15.23 MB / 0.6965 GB, free: 24.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/1.118, allocations: 182.1 kB / 0.6967 GB, free: 24.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005169/1.123, allocations: 4.039 MB / 0.7007 GB, free: 22.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002835/1.123, allocations: 52.95 kB / 0.7007 GB, free: 22.47 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00152/1.125, allocations: 3.248 MB / 0.7039 GB, free: 19.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006544/1.125, allocations: 0.7502 MB / 0.7046 GB, free: 19.41 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000228/1.126, allocations: 125.1 kB / 0.7047 GB, free: 19.31 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002402/1.126, allocations: 0.5639 MB / 0.7053 GB, free: 18.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002536/1.128, allocations: 2.156 MB / 0.7074 GB, free: 17.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003729/1.132, allocations: 5.865 MB / 0.7131 GB, free: 9.801 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003947/1.136, allocations: 3.547 MB / 0.7166 GB, free: 6.762 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.967e-05/1.136, allocations: 37.22 kB / 0.7166 GB, free: 6.727 MB / 442.7 MB Notification: Performance of matching and sorting (n=801) (initialization): time 0.01425/1.15, allocations: 8.585 MB / 0.725 GB, free: 15.26 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001211/1.151, allocations: 63.84 kB / 0.7251 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/1.151, allocations: 132.8 kB / 0.7252 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/1.153, allocations: 0.9068 MB / 0.7261 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005123/1.158, allocations: 1.465 MB / 0.7275 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007673/1.166, allocations: 5.757 MB / 0.7331 GB, free: 7.941 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006055/1.172, allocations: 351.5 kB / 0.7335 GB, free: 7.641 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001283/1.173, allocations: 372.1 kB / 0.7338 GB, free: 7.285 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 46 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 749 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001274/1.174, allocations: 0.5944 MB / 0.7344 GB, free: 6.699 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008962/1.175, allocations: 390.9 kB / 0.7348 GB, free: 6.312 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006678/1.182, allocations: 3.561 MB / 0.7383 GB, free: 3.414 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.265e-05/1.182, allocations: 20 kB / 0.7383 GB, free: 3.395 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-05/1.182, allocations: 8 kB / 0.7383 GB, free: 3.387 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/1.182, allocations: 7.172 kB / 0.7383 GB, free: 3.387 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.283/1.465, allocations: 9.094 MB / 0.7472 GB, free: 81.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.961e-05/1.465, allocations: 6.062 kB / 0.7472 GB, free: 81.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/1.467, allocations: 388.7 kB / 0.7475 GB, free: 81.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00178/1.469, allocations: 0.7129 MB / 0.7482 GB, free: 81.63 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000189/1.469, allocations: 44.28 kB / 0.7483 GB, free: 81.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006127/1.475, allocations: 5.301 MB / 0.7535 GB, free: 80.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/1.475, allocations: 11.44 kB / 0.7535 GB, free: 80.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007888/1.483, allocations: 7.146 MB / 0.7605 GB, free: 78.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/1.485, allocations: 472.1 kB / 0.7609 GB, free: 78.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004115/1.485, allocations: 41.36 kB / 0.7609 GB, free: 78.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/1.486, allocations: 118.6 kB / 0.7611 GB, free: 78.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/1.487, allocations: 127.7 kB / 0.7612 GB, free: 78.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/1.487, allocations: 54.31 kB / 0.7612 GB, free: 78.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003923/1.491, allocations: 2.881 MB / 0.764 GB, free: 78.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.491, allocations: 0 / 0.764 GB, free: 78.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004568/1.495, allocations: 1.059 MB / 0.7651 GB, free: 78.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0098/1.505, allocations: 8.973 MB / 0.7738 GB, free: 75.24 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009779/1.515, allocations: 5.335 MB / 0.7791 GB, free: 75.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/1.515, allocations: 3.469 kB / 0.7791 GB, free: 75.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003399/1.518, allocations: 1.892 MB / 0.7809 GB, free: 74.94 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003525/1.522, allocations: 476.8 kB / 0.7814 GB, free: 74.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02547/1.547, allocations: 9.909 MB / 0.791 GB, free: 72.67 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004434/1.552, allocations: 3.545 MB / 0.7945 GB, free: 71.35 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00537/1.557, allocations: 2.048 MB / 0.7965 GB, free: 71.31 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00281/1.56, allocations: 2.096 MB / 0.7985 GB, free: 69.61 MB / 458.7 MB Notification: Performance of SimCode: time 1.102e-06/1.56, allocations: 0 / 0.7985 GB, free: 69.61 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.288/1.848, allocations: 84.71 MB / 0.8813 GB, free: 23.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003585/1.849, allocations: 190.2 kB / 0.8815 GB, free: 23.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.669/7.518, allocations: 7.438 kB / 0.8815 GB, free: 23.37 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat