Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques",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.0009827/0.0009827, allocations: 100.1 kB / 16.99 MB, free: 6.402 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.001337/0.001337, allocations: 178.7 kB / 17.88 MB, free: 5.957 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.43/1.43, allocations: 223.2 MB / 241.8 MB, free: 368 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2147/0.2147, allocations: 44.22 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003296, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1173, allocations: 61.91 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques): time 0.371/0.4884, allocations: 81.82 MB / 0.5404 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05663/0.5451, allocations: 18.42 MB / 0.5584 GB, free: 8.992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0254/0.5705, allocations: 412.4 kB / 0.5588 GB, free: 8.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01756/0.5881, allocations: 4.158 MB / 0.5628 GB, free: 5.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04229/0.6304, allocations: 11.72 MB / 0.5743 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00654/0.637, allocations: 0.9097 MB / 0.5752 GB, free: 9.469 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.07213/0.7092, allocations: 48.96 MB / 0.623 GB, free: 8.461 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01108/0.7203, allocations: 7.164 MB / 0.63 GB, free: 1.23 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003909/0.7243, allocations: 1.51 MB / 0.6315 GB, free: 15.71 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003559/0.7279, allocations: 1.943 MB / 0.6334 GB, free: 13.77 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001004/0.7289, allocations: 208 kB / 0.6335 GB, free: 13.56 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002971/0.7319, allocations: 1.1 MB / 0.6346 GB, free: 12.46 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002883/0.7348, allocations: 2.416 MB / 0.637 GB, free: 10.04 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001822/0.7366, allocations: 1.248 MB / 0.6382 GB, free: 8.781 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.7468, allocations: 8.361 MB / 0.6464 GB, free: 412 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.7468, allocations: 0 / 0.6464 GB, free: 412 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.7468, allocations: 7.938 kB / 0.6464 GB, free: 404 kB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003852/0.7472, allocations: 0 / 0.6464 GB, free: 404 kB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.01913/0.7664, allocations: 6.56 MB / 0.6528 GB, free: 9.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.867e-05/0.7665, allocations: 12.03 kB / 0.6528 GB, free: 9.738 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00618/0.7727, allocations: 1.042 MB / 0.6538 GB, free: 8.684 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04475/0.8175, allocations: 8.218 MB / 0.6618 GB, free: 456 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01158/0.8291, allocations: 4.304 MB / 0.666 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003904/0.8295, allocations: 365.3 kB / 0.6664 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002097/0.8316, allocations: 483.7 kB / 0.6668 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03308/0.8647, allocations: 15.28 MB / 0.6818 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002502/0.865, allocations: 71.38 kB / 0.6818 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000974/0.866, allocations: 227.8 kB / 0.6821 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005266/0.8713, allocations: 2.883 MB / 0.6849 GB, free: 7.809 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02689/0.8982, allocations: 12.92 MB / 0.6975 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.354/1.252, allocations: 57.06 MB / 0.7532 GB, free: 152 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01509/1.267, allocations: 5.869 MB / 0.7589 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01435/1.282, allocations: 8.039 MB / 0.7668 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/1.282, allocations: 58.5 kB / 0.7668 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=227): time 3.957e-06/1.282, allocations: 0 / 0.7668 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=269): time 0.07452/1.356, allocations: 30.26 MB / 0.7964 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.545e-05/1.357, allocations: 239.6 kB / 0.7966 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009388/1.366, allocations: 6.651 MB / 0.8031 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008607/1.367, allocations: 69.7 kB / 0.8032 GB, free: 110.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002498/1.369, allocations: 4.415 MB / 0.8075 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001362/1.371, allocations: 1.02 MB / 0.8085 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004081/1.371, allocations: 157.7 kB / 0.8086 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003212/1.371, allocations: 0.6447 MB / 0.8093 GB, free: 104 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003887/1.375, allocations: 3.205 MB / 0.8124 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005867/1.381, allocations: 7.86 MB / 0.8201 GB, free: 90.56 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006323/1.388, allocations: 4.904 MB / 0.8249 GB, free: 85.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.583e-05/1.388, allocations: 51.28 kB / 0.8249 GB, free: 85.61 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1037) (initialization): time 0.02137/1.409, allocations: 12.4 MB / 0.837 GB, free: 73.19 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/1.409, allocations: 78.19 kB / 0.8371 GB, free: 73.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001734/1.409, allocations: 168 kB / 0.8373 GB, free: 72.95 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004/1.413, allocations: 1.785 MB / 0.839 GB, free: 71.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006522/1.42, allocations: 1.817 MB / 0.8408 GB, free: 69.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01413/1.434, allocations: 12.33 MB / 0.8528 GB, free: 56.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009472/1.444, allocations: 460.6 kB / 0.8533 GB, free: 56.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001733/1.445, allocations: 488.8 kB / 0.8537 GB, free: 55.82 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 750 * Number of states: 0 () * Number of discrete variables: 65 (frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.arrowLine.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (955): * Single equations (assignments): 948 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006187/1.452, allocations: 2.999 MB / 0.8567 GB, free: 52.81 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/1.453, allocations: 0.536 MB / 0.8572 GB, free: 52.27 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009594/1.462, allocations: 6.247 MB / 0.8633 GB, free: 46 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.965e-05/1.463, allocations: 28 kB / 0.8633 GB, free: 45.98 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.835e-05/1.463, allocations: 11.94 kB / 0.8633 GB, free: 45.96 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.924e-05/1.463, allocations: 11.95 kB / 0.8633 GB, free: 45.95 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0253/1.488, allocations: 13.93 MB / 0.8769 GB, free: 31.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.636e-05/1.488, allocations: 0 / 0.8769 GB, free: 31.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002239/1.49, allocations: 447.3 kB / 0.8774 GB, free: 31.55 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003551/1.494, allocations: 1.531 MB / 0.8789 GB, free: 30.01 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004194/1.494, allocations: 49.48 kB / 0.8789 GB, free: 29.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/1.506, allocations: 11.53 MB / 0.8902 GB, free: 18.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/1.506, allocations: 4 kB / 0.8902 GB, free: 18.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/1.52, allocations: 10.66 MB / 0.9006 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/1.523, allocations: 0.6305 MB / 0.9012 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001577/1.524, allocations: 48.92 kB / 0.9012 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002667/1.527, allocations: 175.8 kB / 0.9014 GB, free: 6.445 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004901/1.527, allocations: 167.4 kB / 0.9016 GB, free: 6.281 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001893/1.528, allocations: 75.98 kB / 0.9016 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006673/1.534, allocations: 4.297 MB / 0.9058 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.61e-07/1.534, allocations: 0 / 0.9058 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009226/1.543, allocations: 1.543 MB / 0.9073 GB, free: 392 kB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (211): * Single equations (assignments): 206 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3299/1.873, allocations: 11.84 MB / 0.9189 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01627/1.89, allocations: 7.939 MB / 0.9267 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.89, allocations: 0 / 0.9267 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00531/1.895, allocations: 3.137 MB / 0.9297 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00486/1.9, allocations: 0.7122 MB / 0.9304 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07285/1.973, allocations: 144.4 MB / 1.071 GB, free: 27.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006218/1.979, allocations: 4.742 MB / 1.076 GB, free: 23.61 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006648/1.986, allocations: 2.648 MB / 1.079 GB, free: 20.95 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005855/1.992, allocations: 2.995 MB / 1.082 GB, free: 17.95 MB / 0.5294 GB Notification: Performance of SimCode: time 2.735e-06/1.992, allocations: 8 kB / 1.082 GB, free: 17.95 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4864/2.478, allocations: 122.1 MB / 1.201 GB, free: 121 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/2.478, allocations: 214.5 kB / 1.201 GB, free: 120.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.532/8.01, allocations: 7.594 kB / 1.201 GB, free: 120.8 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques_res.mat does not exist to compare? outputFormat=mat