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.0009883/0.0009885, allocations: 93.38 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001207/0.001207, allocations: 199.9 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.3 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002272/0.0002272, allocations: 8 kB / 306.8 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 51.49 MB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2926/0.4115, allocations: 51.6 MB / 409.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03073/0.4423, allocations: 11.11 MB / 421 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01439/0.4567, allocations: 243.4 kB / 421.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01052/0.4673, allocations: 2.698 MB / 423.9 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02924/0.4966, allocations: 7.992 MB / 431.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005107/0.5017, allocations: 0.6209 MB / 432.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0465/0.5483, allocations: 32.78 MB / 465.3 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01044/0.5588, allocations: 4.997 MB / 470.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003789/0.5626, allocations: 1.304 MB / 471.6 MB, free: 10.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00425/0.5669, allocations: 1.955 MB / 473.6 MB, free: 8.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001444/0.5684, allocations: 144 kB / 473.7 MB, free: 8.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004096/0.5725, allocations: 0.9401 MB / 474.7 MB, free: 7.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003422/0.576, allocations: 1.8 MB / 476.5 MB, free: 5.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002148/0.5781, allocations: 0.8739 MB / 477.4 MB, free: 4.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007414/0.5856, allocations: 5.912 MB / 483.3 MB, free: 14.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.5856, allocations: 0 / 483.3 MB, free: 14.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5856, allocations: 0 / 483.3 MB, free: 14.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003227/0.586, allocations: 0 / 483.3 MB, free: 14.52 MB / 398.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.0115/0.5975, allocations: 4.43 MB / 487.7 MB, free: 10.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.5975, allocations: 8.031 kB / 487.7 MB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002447/0.6, allocations: 0.7568 MB / 488.5 MB, free: 9.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0195/0.6195, allocations: 3.988 MB / 492.4 MB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007544/0.6271, allocations: 2.917 MB / 495.4 MB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/0.6273, allocations: 250.3 kB / 495.6 MB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009091/0.6282, allocations: 331.8 kB / 495.9 MB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01977/0.648, allocations: 10.74 MB / 0.4948 GB, free: 6.258 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001227/0.6482, allocations: 39.59 kB / 0.4948 GB, free: 6.219 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004693/0.6487, allocations: 159.8 kB / 0.495 GB, free: 6.062 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003501/0.6522, allocations: 2.15 MB / 0.4971 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01808/0.6703, allocations: 9.063 MB / 0.5059 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2998/0.9702, allocations: 41.61 MB / 0.5466 GB, free: 122.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/0.9829, allocations: 4.441 MB / 0.5509 GB, free: 122.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00415/0.9871, allocations: 2.428 MB / 0.5533 GB, free: 121.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0143/1.001, allocations: 7.238 MB / 0.5603 GB, free: 118.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/1.002, allocations: 52.03 kB / 0.5604 GB, free: 118.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.902e-06/1.002, allocations: 1.125 kB / 0.5604 GB, free: 118.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04209/1.044, allocations: 17.9 MB / 0.5779 GB, free: 110.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/1.044, allocations: 174.3 kB / 0.578 GB, free: 110 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00562/1.049, allocations: 4.589 MB / 0.5825 GB, free: 105.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004271/1.05, allocations: 57.7 kB / 0.5826 GB, free: 105.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/1.052, allocations: 3.239 MB / 0.5857 GB, free: 102.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007686/1.052, allocations: 0.7603 MB / 0.5865 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002581/1.053, allocations: 120 kB / 0.5866 GB, free: 101.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002436/1.053, allocations: 0.5625 MB / 0.5871 GB, free: 100.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002918/1.056, allocations: 2.265 MB / 0.5894 GB, free: 98.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005014/1.061, allocations: 5.978 MB / 0.5952 GB, free: 91.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004996/1.066, allocations: 3.609 MB / 0.5987 GB, free: 87.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.655e-05/1.066, allocations: 36 kB / 0.5988 GB, free: 87.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=808) (initialization): time 0.01513/1.081, allocations: 8.797 MB / 0.6073 GB, free: 78.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.78e-05/1.081, allocations: 60 kB / 0.6074 GB, free: 78.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00014/1.081, allocations: 132 kB / 0.6075 GB, free: 78.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001977/1.083, allocations: 0.9624 MB / 0.6085 GB, free: 77.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004222/1.088, allocations: 1.415 MB / 0.6099 GB, free: 76.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007217/1.095, allocations: 6.101 MB / 0.6158 GB, free: 69.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006107/1.101, allocations: 343.5 kB / 0.6161 GB, free: 69.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001591/1.103, allocations: 381.2 kB / 0.6165 GB, free: 69.14 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.005887/1.109, allocations: 2.224 MB / 0.6187 GB, free: 66.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/1.11, allocations: 386.9 kB / 0.619 GB, free: 66.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007151/1.117, allocations: 3.691 MB / 0.6226 GB, free: 62.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.441e-05/1.117, allocations: 29.17 kB / 0.6227 GB, free: 62.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/1.117, allocations: 4 kB / 0.6227 GB, free: 62.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.184e-05/1.117, allocations: 7.969 kB / 0.6227 GB, free: 62.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02058/1.138, allocations: 9.25 MB / 0.6317 GB, free: 53.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.681e-05/1.138, allocations: 4 kB / 0.6317 GB, free: 53.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/1.14, allocations: 323.5 kB / 0.632 GB, free: 53.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/1.142, allocations: 0.7691 MB / 0.6328 GB, free: 52.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003472/1.142, allocations: 40 kB / 0.6328 GB, free: 52.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006927/1.149, allocations: 5.631 MB / 0.6383 GB, free: 46.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/1.149, allocations: 8 kB / 0.6383 GB, free: 46.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01008/1.159, allocations: 6.559 MB / 0.6447 GB, free: 39.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/1.161, allocations: 475.8 kB / 0.6452 GB, free: 39.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001579/1.162, allocations: 43.95 kB / 0.6452 GB, free: 39.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00257/1.165, allocations: 111.8 kB / 0.6453 GB, free: 39.24 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005157/1.166, allocations: 126.4 kB / 0.6455 GB, free: 39.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/1.166, allocations: 63.56 kB / 0.6455 GB, free: 39.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005899/1.172, allocations: 2.933 MB / 0.6484 GB, free: 36.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.172, allocations: 0 / 0.6484 GB, free: 36.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006883/1.179, allocations: 1.053 MB / 0.6494 GB, free: 35.08 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.009953/1.189, allocations: 7.226 MB / 0.6565 GB, free: 27.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009781/1.198, allocations: 5.508 MB / 0.6618 GB, free: 22.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/1.198, allocations: 4 kB / 0.6618 GB, free: 22.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00286/1.201, allocations: 1.958 MB / 0.6638 GB, free: 20.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003218/1.205, allocations: 0.4931 MB / 0.6642 GB, free: 19.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06755/1.272, allocations: 39.34 MB / 0.7027 GB, free: 8.367 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003946/1.276, allocations: 3.457 MB / 0.706 GB, free: 4.871 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004984/1.281, allocations: 2.038 MB / 0.708 GB, free: 2.828 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002749/1.284, allocations: 2.057 MB / 0.71 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/1.284, allocations: 0 / 0.71 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3367/1.621, allocations: 84.83 MB / 0.7929 GB, free: 103 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/1.621, allocations: 231.1 kB / 0.7931 GB, free: 102.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.027/5.648, allocations: 0 / 0.7931 GB, free: 102.7 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