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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 102.4 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001946/0.001946, allocations: 205.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.0002833, allocations: 4 kB / 306.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1041, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2294/0.3336, allocations: 48.76 MB / 407 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02729/0.3609, allocations: 11.59 MB / 418.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01465/0.3756, allocations: 243.4 kB / 418.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009315/0.385, allocations: 2.434 MB / 421.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02612/0.4111, allocations: 7.072 MB / 428.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003583/0.4147, allocations: 0.6124 MB / 428.9 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.03612/0.4509, allocations: 25.14 MB / 454 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006275/0.4572, allocations: 4.956 MB / 459 MB, free: 6.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001469/0.4587, allocations: 1.047 MB / 460 MB, free: 5.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.4602, allocations: 1.331 MB / 461.4 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003247/0.4605, allocations: 147.9 kB / 461.5 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00155/0.4621, allocations: 0.9168 MB / 462.4 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001332/0.4634, allocations: 1.668 MB / 464.1 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007614/0.4642, allocations: 0.8817 MB / 465 MB, free: 500 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005697/0.4699, allocations: 5.904 MB / 470.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.4699, allocations: 0 / 470.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4699, allocations: 0 / 470.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001517/0.4701, allocations: 0 / 470.9 MB, free: 10.57 MB / 382.1 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.009542/0.4796, allocations: 4.567 MB / 475.5 MB, free: 5.934 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.4797, allocations: 8.031 kB / 475.5 MB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001774/0.4815, allocations: 0.7607 MB / 476.2 MB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02468/0.5061, allocations: 5.064 MB / 481.3 MB, free: 76 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006619/0.5128, allocations: 2.831 MB / 484.1 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.513, allocations: 246.3 kB / 484.4 MB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007029/0.5137, allocations: 323.9 kB / 484.7 MB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01795/0.5317, allocations: 10.89 MB / 495.6 MB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/0.5318, allocations: 43.67 kB / 495.6 MB, free: 1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000425/0.5323, allocations: 155.8 kB / 495.8 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00338/0.5356, allocations: 2.15 MB / 497.9 MB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01745/0.5531, allocations: 9.242 MB / 0.4953 GB, free: 5.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2758/0.829, allocations: 41.74 MB / 0.536 GB, free: 121.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.8412, allocations: 4.574 MB / 0.5405 GB, free: 121.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01405/0.8553, allocations: 7.29 MB / 0.5476 GB, free: 119.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.8554, allocations: 58.22 kB / 0.5477 GB, free: 119.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.188e-06/0.8554, allocations: 4.219 kB / 0.5477 GB, free: 119.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04187/0.8973, allocations: 18.65 MB / 0.5659 GB, free: 112.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.8974, allocations: 177.4 kB / 0.5661 GB, free: 112.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005211/0.9026, allocations: 4.711 MB / 0.5707 GB, free: 109.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003357/0.9029, allocations: 57.2 kB / 0.5707 GB, free: 109.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001429/0.9044, allocations: 3.227 MB / 0.5739 GB, free: 106.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006517/0.905, allocations: 0.7638 MB / 0.5746 GB, free: 105.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/0.9053, allocations: 125.2 kB / 0.5747 GB, free: 105.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002211/0.9055, allocations: 0.5625 MB / 0.5753 GB, free: 105.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.9079, allocations: 2.257 MB / 0.5775 GB, free: 102.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003746/0.9117, allocations: 5.96 MB / 0.5833 GB, free: 95.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003776/0.9155, allocations: 3.606 MB / 0.5868 GB, free: 91.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.667e-05/0.9155, allocations: 40 kB / 0.5869 GB, free: 91.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=808) (initialization): time 0.01115/0.9267, allocations: 8.791 MB / 0.5954 GB, free: 83.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.529e-05/0.9268, allocations: 64.97 kB / 0.5955 GB, free: 83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/0.9269, allocations: 128 kB / 0.5956 GB, free: 82.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/0.9289, allocations: 0.9619 MB / 0.5966 GB, free: 81.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003991/0.9329, allocations: 1.415 MB / 0.598 GB, free: 80.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00632/0.9392, allocations: 6.266 MB / 0.6041 GB, free: 74.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004928/0.9442, allocations: 350 kB / 0.6044 GB, free: 73.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008604/0.945, allocations: 379.3 kB / 0.6048 GB, free: 73.39 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 597 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,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.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (750): * Single equations (assignments): 744 * Array equations: 5 * 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.003529/0.9486, allocations: 2.23 MB / 0.6069 GB, free: 71.15 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007406/0.9493, allocations: 394.8 kB / 0.6073 GB, free: 70.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005141/0.9545, allocations: 3.684 MB / 0.6109 GB, free: 67.06 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.813e-05/0.9545, allocations: 23.95 kB / 0.6109 GB, free: 67.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.9545, allocations: 4 kB / 0.6109 GB, free: 67.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.9546, allocations: 11.97 kB / 0.611 GB, free: 67.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/0.9708, allocations: 9.249 MB / 0.62 GB, free: 57.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-05/0.9708, allocations: 8.125 kB / 0.62 GB, free: 57.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/0.9722, allocations: 319.5 kB / 0.6203 GB, free: 57.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001755/0.974, allocations: 0.7716 MB / 0.6211 GB, free: 56.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001897/0.9742, allocations: 36 kB / 0.6211 GB, free: 56.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006384/0.9806, allocations: 5.794 MB / 0.6267 GB, free: 50.63 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.9806, allocations: 8 kB / 0.6268 GB, free: 50.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007976/0.9886, allocations: 7.331 MB / 0.6339 GB, free: 42.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/0.9899, allocations: 491.6 kB / 0.6344 GB, free: 42.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004649/0.9904, allocations: 32 kB / 0.6344 GB, free: 42.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.9918, allocations: 120.4 kB / 0.6345 GB, free: 42.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000269/0.9921, allocations: 125.8 kB / 0.6346 GB, free: 42.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.9923, allocations: 56 kB / 0.6347 GB, free: 42.15 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003571/0.9958, allocations: 3.027 MB / 0.6377 GB, free: 39.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9958, allocations: 0 / 0.6377 GB, free: 39.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004716/1.001, allocations: 1.075 MB / 0.6387 GB, free: 38.05 MB / 446.1 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 () * Number of clocked 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.007977/1.009, allocations: 9.169 MB / 0.6477 GB, free: 28.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00776/1.016, allocations: 5.504 MB / 0.653 GB, free: 23.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.016, allocations: 0 / 0.653 GB, free: 23.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002814/1.019, allocations: 1.967 MB / 0.655 GB, free: 21.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/1.022, allocations: 477.2 kB / 0.6554 GB, free: 20.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.22/1.242, allocations: 111.4 MB / 0.7642 GB, free: 104.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004616/1.247, allocations: 3.546 MB / 0.7676 GB, free: 104.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00548/1.252, allocations: 2.049 MB / 0.7696 GB, free: 104 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002571/1.255, allocations: 2.058 MB / 0.7716 GB, free: 103.7 MB / 478.1 MB Notification: Performance of SimCode: time 2.064e-06/1.255, allocations: 0 / 0.7716 GB, free: 103.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1071/1.362, allocations: 84.13 MB / 0.8538 GB, free: 35.17 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/1.362, allocations: 226.6 kB / 0.854 GB, free: 34.92 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.029/5.39, allocations: 0 / 0.854 GB, free: 34.92 MB / 478.1 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