Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008993/0.0008993, allocations: 91.42 kB / 17 MB, free: 6.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008806/0.0008807, allocations: 194.2 kB / 17.91 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1936/0.1936, allocations: 45.91 MB / 344.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003007, allocations: 7.938 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1407, allocations: 63.46 MB / 481.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.3677/0.5085, allocations: 90.55 MB / 0.5588 GB, free: 6.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05199/0.5605, allocations: 18.27 MB / 0.5766 GB, free: 6.816 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02578/0.5863, allocations: 430.9 kB / 0.577 GB, free: 6.395 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01605/0.6024, allocations: 4.802 MB / 0.5817 GB, free: 1.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0402/0.6427, allocations: 13.9 MB / 0.5953 GB, free: 3.625 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006045/0.6487, allocations: 1.014 MB / 0.5963 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.1171/0.7658, allocations: 91.77 MB / 0.6859 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01167/0.7776, allocations: 7.271 MB / 0.693 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005003/0.7826, allocations: 2.016 MB / 0.695 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006346/0.789, allocations: 3.193 MB / 0.6981 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001885/0.7909, allocations: 220 kB / 0.6983 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00416/0.7951, allocations: 1.104 MB / 0.6994 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.00501/0.8002, allocations: 2.821 MB / 0.7021 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.003408/0.8036, allocations: 1.306 MB / 0.7034 GB, free: 4.68 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.3067/1.11, allocations: 8.804 MB / 0.712 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/1.11, allocations: 1.219 kB / 0.712 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.188e-06/1.11, allocations: 0.7812 kB / 0.712 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0005478/1.111, allocations: 0 / 0.712 GB, free: 100.1 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2214 * Number of variables: 2214 Notification: Performance of Generate backend data structure: time 0.02322/1.134, allocations: 6.655 MB / 0.7185 GB, free: 97.27 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/1.134, allocations: 9.344 kB / 0.7185 GB, free: 97.27 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005754/1.14, allocations: 1.052 MB / 0.7195 GB, free: 97.18 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05029/1.19, allocations: 8.462 MB / 0.7278 GB, free: 96.64 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01314/1.204, allocations: 5.274 MB / 0.733 GB, free: 95.82 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003272/1.204, allocations: 373.6 kB / 0.7333 GB, free: 95.81 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002664/1.207, allocations: 0.4914 MB / 0.7338 GB, free: 95.8 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02955/1.236, allocations: 14.62 MB / 0.7481 GB, free: 92.48 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003034/1.236, allocations: 72.5 kB / 0.7481 GB, free: 92.48 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001159/1.238, allocations: 229.9 kB / 0.7484 GB, free: 92.48 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004455/1.242, allocations: 2.726 MB / 0.751 GB, free: 91.89 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02426/1.266, allocations: 11.84 MB / 0.7626 GB, free: 85.46 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06806/1.334, allocations: 56.49 MB / 0.8177 GB, free: 37.78 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01043/1.345, allocations: 4.507 MB / 0.8221 GB, free: 34.12 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003061/1.348, allocations: 2.75 MB / 0.8248 GB, free: 32.39 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/1.348, allocations: 36.62 kB / 0.8249 GB, free: 32.37 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/1.348, allocations: 58.28 kB / 0.8249 GB, free: 32.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=190): time 4.117e-06/1.348, allocations: 1.641 kB / 0.8249 GB, free: 32.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=208): time 0.04799/1.396, allocations: 20.48 MB / 0.8449 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.867e-05/1.396, allocations: 258.5 kB / 0.8452 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008152/1.405, allocations: 6.755 MB / 0.8518 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004743/1.405, allocations: 59.02 kB / 0.8518 GB, free: 4.59 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002505/1.408, allocations: 4.676 MB / 0.8564 GB, free: 15.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001082/1.409, allocations: 0.8203 MB / 0.8572 GB, free: 15.12 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003312/1.409, allocations: 156 kB / 0.8573 GB, free: 14.97 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000467/1.409, allocations: 0.6325 MB / 0.858 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004114/1.414, allocations: 2.549 MB / 0.8604 GB, free: 11.79 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008457/1.422, allocations: 7.476 MB / 0.8677 GB, free: 1.953 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007325/1.429, allocations: 4.266 MB / 0.8719 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001466/1.43, allocations: 53.53 kB / 0.872 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1009) (initialization): time 0.02451/1.454, allocations: 10.43 MB / 0.8821 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002503/1.454, allocations: 80 kB / 0.8822 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003526/1.455, allocations: 176.2 kB / 0.8824 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003026/1.458, allocations: 1.02 MB / 0.8834 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006829/1.465, allocations: 1.858 MB / 0.8852 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/1.477, allocations: 9.395 MB / 0.8944 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006706/1.484, allocations: 419.3 kB / 0.8948 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001711/1.486, allocations: 484 kB / 0.8952 GB, free: 6.891 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 63 (worldForce2.arrow.arrowLine.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce1.arrow.arrowLine.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (946): * Single equations (assignments): 940 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00923/1.495, allocations: 3.051 MB / 0.8982 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001605/1.496, allocations: 0.5515 MB / 0.8988 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008461/1.505, allocations: 3.727 MB / 0.9024 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-05/1.505, allocations: 24 kB / 0.9024 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.501e-05/1.505, allocations: 8 kB / 0.9024 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.638e-05/1.505, allocations: 10.16 kB / 0.9024 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02229/1.527, allocations: 10.14 MB / 0.9123 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/1.527, allocations: 4 kB / 0.9123 GB, free: 5.523 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/1.529, allocations: 401.6 kB / 0.9127 GB, free: 5.148 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002129/1.531, allocations: 0.7145 MB / 0.9134 GB, free: 4.426 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002826/1.532, allocations: 39.91 kB / 0.9135 GB, free: 4.391 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01051/1.542, allocations: 8.482 MB / 0.9217 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.241e-06/1.542, allocations: 6.375 kB / 0.9217 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/1.554, allocations: 6.545 MB / 0.9281 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002102/1.556, allocations: 0.6266 MB / 0.9288 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001579/1.558, allocations: 35.75 kB / 0.9288 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002578/1.56, allocations: 111.9 kB / 0.9289 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003836/1.561, allocations: 116.4 kB / 0.929 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/1.561, allocations: 55.98 kB / 0.9291 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.2879/1.849, allocations: 4.309 MB / 0.9333 GB, free: 245.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 6.51e-07/1.849, allocations: 0 / 0.9333 GB, free: 245.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009853/1.859, allocations: 1.411 MB / 0.9346 GB, free: 245.8 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,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 (160): * Single equations (assignments): 154 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01154/1.87, allocations: 7.211 MB / 0.9417 GB, free: 244.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01165/1.882, allocations: 6.455 MB / 0.948 GB, free: 242.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/1.882, allocations: 0 / 0.948 GB, free: 242.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002516/1.884, allocations: 2.066 MB / 0.95 GB, free: 241.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007263/1.892, allocations: 0.7933 MB / 0.9508 GB, free: 241.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09321/1.985, allocations: 57.4 MB / 1.007 GB, free: 193 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007191/1.992, allocations: 4.636 MB / 1.011 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006298/1.999, allocations: 2.532 MB / 1.014 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003787/2.002, allocations: 3.038 MB / 1.017 GB, free: 183.6 MB / 0.6075 GB Notification: Performance of SimCode: time 9.92e-07/2.002, allocations: 0 / 1.017 GB, free: 183.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.166/2.168, allocations: 117 MB / 1.131 GB, free: 67.02 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/2.169, allocations: 203.6 kB / 1.131 GB, free: 66.78 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.743/7.912, allocations: 0 / 1.131 GB, free: 66.78 MB / 0.6075 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldForces2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat