Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json 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/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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0007815/0.0007814, allocations: 91 kB / 16.31 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008524/0.0008525, allocations: 179.6 kB / 17.21 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 223.2 MB / 241.2 MB, free: 312 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002612/0.0002613, allocations: 4 kB / 300.9 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 50.42 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.293/0.4144, allocations: 51.57 MB / 402.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02924/0.4437, allocations: 11.08 MB / 414 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01421/0.4579, allocations: 240.1 kB / 414.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.4682, allocations: 2.695 MB / 416.9 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0268/0.4951, allocations: 8.006 MB / 424.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004043/0.4991, allocations: 0.6287 MB / 425.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.04142/0.5406, allocations: 32.7 MB / 458.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008195/0.5488, allocations: 5.023 MB / 463.3 MB, free: 4.406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00284/0.5517, allocations: 1.304 MB / 464.6 MB, free: 3.098 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003325/0.555, allocations: 1.955 MB / 466.5 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.5561, allocations: 147.9 kB / 466.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.5587, allocations: 0.948 MB / 467.6 MB, free: 44 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002537/0.5613, allocations: 1.804 MB / 469.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001689/0.563, allocations: 0.8894 MB / 470.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006545/0.5695, allocations: 5.912 MB / 476.2 MB, free: 7.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.5696, allocations: 0 / 476.2 MB, free: 7.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.5696, allocations: 0 / 476.2 MB, free: 7.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002024/0.5698, allocations: 3.938 kB / 476.2 MB, free: 7.406 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.008847/0.5786, allocations: 4.4 MB / 480.6 MB, free: 2.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.5787, allocations: 8.031 kB / 480.6 MB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001081/0.5798, allocations: 0.7607 MB / 481.4 MB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01859/0.5984, allocations: 3.988 MB / 485.4 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006561/0.605, allocations: 3.01 MB / 488.4 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.6052, allocations: 246.3 kB / 488.6 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008044/0.606, allocations: 327.8 kB / 489 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01847/0.6245, allocations: 10.75 MB / 499.7 MB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001151/0.6246, allocations: 43.53 kB / 499.8 MB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003905/0.625, allocations: 159.8 kB / 499.9 MB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003246/0.6283, allocations: 2.154 MB / 0.4903 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/0.6456, allocations: 9.059 MB / 0.4991 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2862/0.9318, allocations: 41.7 MB / 0.5399 GB, free: 128.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0124/0.9443, allocations: 4.432 MB / 0.5442 GB, free: 127.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003964/0.9483, allocations: 2.428 MB / 0.5466 GB, free: 127.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01208/0.9605, allocations: 7.236 MB / 0.5536 GB, free: 125 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.9605, allocations: 44.97 kB / 0.5537 GB, free: 124.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.338e-06/0.9605, allocations: 4.844 kB / 0.5537 GB, free: 124.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04063/1.001, allocations: 17.89 MB / 0.5712 GB, free: 117.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/1.001, allocations: 182.7 kB / 0.5713 GB, free: 117.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006053/1.007, allocations: 4.595 MB / 0.5758 GB, free: 113.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004328/1.008, allocations: 53.7 kB / 0.5759 GB, free: 113.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001962/1.01, allocations: 3.243 MB / 0.579 GB, free: 109.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008775/1.011, allocations: 0.7559 MB / 0.5798 GB, free: 109.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00024/1.011, allocations: 127.9 kB / 0.5799 GB, free: 109 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002831/1.011, allocations: 0.5665 MB / 0.5804 GB, free: 108.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002957/1.014, allocations: 2.268 MB / 0.5827 GB, free: 106.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005121/1.019, allocations: 5.998 MB / 0.5885 GB, free: 98.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005998/1.025, allocations: 3.62 MB / 0.5921 GB, free: 95.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.877e-05/1.025, allocations: 36 kB / 0.5921 GB, free: 95.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01454/1.04, allocations: 8.819 MB / 0.6007 GB, free: 86.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.488e-05/1.04, allocations: 64.25 kB / 0.6008 GB, free: 86.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/1.04, allocations: 132 kB / 0.6009 GB, free: 86.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002074/1.042, allocations: 0.963 MB / 0.6018 GB, free: 85.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004423/1.047, allocations: 1.419 MB / 0.6032 GB, free: 83.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006962/1.054, allocations: 6.1 MB / 0.6092 GB, free: 77.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005307/1.059, allocations: 343.5 kB / 0.6095 GB, free: 77.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00122/1.06, allocations: 388.2 kB / 0.6099 GB, free: 76.77 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (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.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (753): * Single equations (assignments): 747 * 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.004749/1.065, allocations: 2.228 MB / 0.612 GB, free: 74.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/1.066, allocations: 390.8 kB / 0.6124 GB, free: 74.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006424/1.073, allocations: 3.684 MB / 0.616 GB, free: 70.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-05/1.073, allocations: 21.48 kB / 0.616 GB, free: 70.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/1.073, allocations: 4 kB / 0.616 GB, free: 70.42 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.41e-05/1.073, allocations: 7.969 kB / 0.616 GB, free: 70.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02035/1.093, allocations: 9.262 MB / 0.6251 GB, free: 61.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.569e-05/1.093, allocations: 4 kB / 0.6251 GB, free: 61.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/1.095, allocations: 315.5 kB / 0.6254 GB, free: 60.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001924/1.097, allocations: 0.7697 MB / 0.6261 GB, free: 59.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002765/1.097, allocations: 37.75 kB / 0.6262 GB, free: 59.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007249/1.104, allocations: 5.619 MB / 0.6317 GB, free: 54.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/1.105, allocations: 15.97 kB / 0.6317 GB, free: 54.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009644/1.114, allocations: 6.569 MB / 0.6381 GB, free: 47.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/1.116, allocations: 475.8 kB / 0.6386 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006913/1.117, allocations: 36.88 kB / 0.6386 GB, free: 47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/1.118, allocations: 115.8 kB / 0.6387 GB, free: 46.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003225/1.119, allocations: 129 kB / 0.6388 GB, free: 46.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/1.119, allocations: 55.05 kB / 0.6389 GB, free: 46.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005748/1.125, allocations: 2.942 MB / 0.6417 GB, free: 43.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/1.125, allocations: 480 / 0.6418 GB, free: 43.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008385/1.133, allocations: 1.053 MB / 0.6428 GB, free: 42.71 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.009335/1.142, allocations: 7.224 MB / 0.6498 GB, free: 35.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008993/1.151, allocations: 5.522 MB / 0.6552 GB, free: 29.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/1.152, allocations: 4 kB / 0.6552 GB, free: 29.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002882/1.154, allocations: 1.963 MB / 0.6571 GB, free: 27.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003663/1.158, allocations: 0.5041 MB / 0.6576 GB, free: 27.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07597/1.234, allocations: 39.39 MB / 0.6961 GB, free: 15.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006133/1.24, allocations: 3.453 MB / 0.6995 GB, free: 12.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006233/1.247, allocations: 2.049 MB / 0.7015 GB, free: 10.36 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004261/1.251, allocations: 2.061 MB / 0.7035 GB, free: 8.297 MB / 478.1 MB Notification: Performance of SimCode: time 1.182e-06/1.251, allocations: 3.938 kB / 0.7035 GB, free: 8.293 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3477/1.599, allocations: 84.95 MB / 0.7865 GB, free: 115.2 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/1.599, allocations: 224.1 kB / 0.7867 GB, free: 114.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.319/5.918, allocations: 4 kB / 0.7867 GB, free: 114.9 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat