Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 178.4 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000985/0.0009849, allocations: 96.06 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3975/0.3975, allocations: 44.21 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003611, allocations: 11.98 kB / 460 MB, free: 1.422 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4652/0.4656, allocations: 61.9 MB / 0.5096 GB, free: 38.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.6236, allocations: 108 MB / 0.6152 GB, free: 3.023 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.6239, allocations: 87.88 kB / 0.6152 GB, free: 2.945 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6042/1.228, allocations: 121.9 MB / 0.7343 GB, free: 92.42 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.228, allocations: 0 / 0.7343 GB, free: 92.42 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000381/1.229, allocations: 120.6 kB / 0.7344 GB, free: 92.41 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2137 * Number of variables: 2137 Notification: Performance of Generate backend data structure: time 0.02029/1.249, allocations: 6.386 MB / 0.7407 GB, free: 89.25 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/1.249, allocations: 7.438 kB / 0.7407 GB, free: 89.25 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003952/1.253, allocations: 1.079 MB / 0.7417 GB, free: 88.69 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02586/1.279, allocations: 6.991 MB / 0.7486 GB, free: 87.63 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01794/1.297, allocations: 6.685 MB / 0.7551 GB, free: 84.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005389/1.297, allocations: 464.6 kB / 0.7555 GB, free: 84.48 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003223/1.301, allocations: 0.6018 MB / 0.7561 GB, free: 84.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0368/1.337, allocations: 15.2 MB / 0.771 GB, free: 73.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004835/1.338, allocations: 83.17 kB / 0.771 GB, free: 73.44 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002871/1.341, allocations: 291.9 kB / 0.7713 GB, free: 73.15 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001974/1.343, allocations: 1.361 MB / 0.7727 GB, free: 71.79 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02584/1.369, allocations: 12.55 MB / 0.7849 GB, free: 59.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07457/1.443, allocations: 64.81 MB / 0.8482 GB, free: 8.453 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01864/1.462, allocations: 7.11 MB / 0.8551 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002142/1.462, allocations: 37.41 kB / 0.8552 GB, free: 1.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/1.462, allocations: 59.88 kB / 0.8552 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=218): time 6.642e-06/1.462, allocations: 0 / 0.8552 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of matching and sorting (n=260): time 0.389/1.851, allocations: 29.56 MB / 0.8841 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.705e-05/1.851, allocations: 204.6 kB / 0.8843 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008783/1.86, allocations: 5.376 MB / 0.8896 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006463/1.861, allocations: 68.98 kB / 0.8896 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002776/1.864, allocations: 4.215 MB / 0.8937 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001197/1.865, allocations: 0.9906 MB / 0.8947 GB, free: 109 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003692/1.865, allocations: 151.6 kB / 0.8948 GB, free: 109 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003589/1.866, allocations: 0.627 MB / 0.8955 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004493/1.87, allocations: 3.187 MB / 0.8986 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007103/1.877, allocations: 7.648 MB / 0.906 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007047/1.884, allocations: 4.828 MB / 0.9108 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001183/1.884, allocations: 46.16 kB / 0.9108 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=990) (initialization): time 0.02528/1.91, allocations: 12.12 MB / 0.9226 GB, free: 96.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002738/1.91, allocations: 74.47 kB / 0.9227 GB, free: 96.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003677/1.91, allocations: 157.5 kB / 0.9229 GB, free: 96.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004451/1.915, allocations: 1.677 MB / 0.9245 GB, free: 96.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006794/1.922, allocations: 1.821 MB / 0.9263 GB, free: 95.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01425/1.936, allocations: 11.68 MB / 0.9377 GB, free: 89.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009887/1.946, allocations: 469.5 kB / 0.9381 GB, free: 89.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002376/1.948, allocations: 461.9 kB / 0.9386 GB, free: 89.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 719 * Number of states: 0 () * Number of discrete variables: 62 (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.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceArrow.arrowLine.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,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 (918): * Single equations (assignments): 913 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009824/1.958, allocations: 2.881 MB / 0.9414 GB, free: 88.14 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002231/1.961, allocations: 0.5058 MB / 0.9419 GB, free: 87.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01316/1.974, allocations: 6.212 MB / 0.9479 GB, free: 85.62 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.543e-05/1.974, allocations: 31.28 kB / 0.948 GB, free: 85.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.342e-05/1.974, allocations: 10.41 kB / 0.948 GB, free: 85.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.283e-05/1.974, allocations: 15.16 kB / 0.948 GB, free: 85.62 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03371/2.008, allocations: 13.73 MB / 0.9614 GB, free: 80.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.052e-05/2.008, allocations: 4 kB / 0.9614 GB, free: 80.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00275/2.01, allocations: 0.491 MB / 0.9619 GB, free: 80.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003602/2.014, allocations: 1.411 MB / 0.9633 GB, free: 80.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000476/2.015, allocations: 45.95 kB / 0.9633 GB, free: 80.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/2.027, allocations: 10.91 MB / 0.974 GB, free: 71.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/2.027, allocations: 4 kB / 0.974 GB, free: 71.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/2.041, allocations: 10.21 MB / 0.9839 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001868/2.043, allocations: 0.5883 MB / 0.9845 GB, free: 62.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001552/2.045, allocations: 44 kB / 0.9845 GB, free: 62.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003282/2.048, allocations: 216.7 kB / 0.9848 GB, free: 62.17 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006058/2.049, allocations: 150.2 kB / 0.9849 GB, free: 62.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003075/2.049, allocations: 70.25 kB / 0.985 GB, free: 62.01 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007304/2.056, allocations: 3.827 MB / 0.9887 GB, free: 58.86 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.51e-07/2.056, allocations: 0 / 0.9887 GB, free: 58.86 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008842/2.065, allocations: 1.47 MB / 0.9901 GB, free: 57.39 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (202): * Single equations (assignments): 197 * 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.01492/2.08, allocations: 11.02 MB / 1.001 GB, free: 47.77 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01205/2.092, allocations: 7.897 MB / 1.009 GB, free: 40.83 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/2.092, allocations: 0 / 1.009 GB, free: 40.83 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005213/2.097, allocations: 3.222 MB / 1.012 GB, free: 38.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004991/2.102, allocations: 0.6572 MB / 1.012 GB, free: 37.47 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4764/2.579, allocations: 164.5 MB / 1.173 GB, free: 58.45 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01278/2.592, allocations: 4.546 MB / 1.178 GB, free: 57.6 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01008/2.602, allocations: 2.589 MB / 1.18 GB, free: 57.55 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00565/2.607, allocations: 2.822 MB / 1.183 GB, free: 56.87 MB / 0.5417 GB Notification: Performance of SimCode: time 7.995e-06/2.608, allocations: 2.781 kB / 1.183 GB, free: 56.87 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4639/3.071, allocations: 117.8 MB / 1.298 GB, free: 122.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/3.072, allocations: 205.6 kB / 1.298 GB, free: 122.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.559/9.631, allocations: 0 / 1.298 GB, free: 122.5 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat does not exist to compare? outputFormat=mat