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.002016/0.002016, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.532/1.532, allocations: 221.3 MB / 236 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009905/0.0009902, allocations: 91.8 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2144/0.2144, allocations: 44.16 MB / 382.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.093e-05/4.11e-05, allocations: 4.219 kB / 451.9 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1459, allocations: 61.92 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4451/0.591, allocations: 108 MB / 0.6072 GB, free: 13.26 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.5914, allocations: 76.92 kB / 0.6073 GB, free: 13.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6429/1.234, allocations: 122.1 MB / 0.7265 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.056e-06/1.234, allocations: 3.844 kB / 0.7265 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004768/1.235, allocations: 120.2 kB / 0.7266 GB, free: 110.9 MB / 0.5105 GB 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.02315/1.258, allocations: 5.938 MB / 0.7324 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/1.258, allocations: 9.875 kB / 0.7324 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005574/1.264, allocations: 1.074 MB / 0.7335 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03025/1.294, allocations: 7.004 MB / 0.7403 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01864/1.313, allocations: 6.648 MB / 0.7468 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004746/1.313, allocations: 464.9 kB / 0.7473 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003131/1.316, allocations: 0.6064 MB / 0.7478 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03566/1.352, allocations: 15.1 MB / 0.7626 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003799/1.352, allocations: 81.92 kB / 0.7627 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002226/1.355, allocations: 292.8 kB / 0.7629 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001977/1.357, allocations: 1.368 MB / 0.7643 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02552/1.382, allocations: 12.37 MB / 0.7764 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07167/1.454, allocations: 64.8 MB / 0.8397 GB, free: 52.68 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01715/1.471, allocations: 7.074 MB / 0.8466 GB, free: 46.98 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003795/1.475, allocations: 3.306 MB / 0.8498 GB, free: 43.95 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001329/1.475, allocations: 44.66 kB / 0.8498 GB, free: 43.93 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/1.475, allocations: 59.81 kB / 0.8499 GB, free: 43.86 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=218): time 6.062e-06/1.475, allocations: 0 / 0.8499 GB, free: 43.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=260): time 0.06952/1.545, allocations: 25.39 MB / 0.8747 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/1.545, allocations: 205.9 kB / 0.8749 GB, free: 22 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008824/1.554, allocations: 5.325 MB / 0.8801 GB, free: 16.65 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008419/1.555, allocations: 65.64 kB / 0.8801 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00269/1.557, allocations: 4.213 MB / 0.8843 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001534/1.559, allocations: 0.9892 MB / 0.8852 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005529/1.559, allocations: 152 kB / 0.8854 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003788/1.56, allocations: 0.6283 MB / 0.886 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004471/1.564, allocations: 3.127 MB / 0.889 GB, free: 7.477 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007023/1.571, allocations: 7.596 MB / 0.8965 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008649/1.58, allocations: 4.82 MB / 0.9012 GB, free: 8.848 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001203/1.58, allocations: 44 kB / 0.9012 GB, free: 8.805 MB / 0.5261 GB Notification: Performance of matching and sorting (n=990) (initialization): time 0.3965/1.977, allocations: 12 MB / 0.9129 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001578/1.977, allocations: 73.14 kB / 0.913 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003074/1.977, allocations: 157.1 kB / 0.9131 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005133/1.982, allocations: 1.662 MB / 0.9148 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008306/1.991, allocations: 1.826 MB / 0.9166 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0184/2.009, allocations: 11.35 MB / 0.9276 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008146/2.017, allocations: 467.8 kB / 0.9281 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002033/2.019, allocations: 464.1 kB / 0.9285 GB, free: 105.6 MB / 0.5261 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 () * 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.001857/2.021, allocations: 0.7007 MB / 0.9292 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001368/2.023, allocations: 0.513 MB / 0.9297 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/2.034, allocations: 6.154 MB / 0.9357 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.815e-05/2.034, allocations: 32.83 kB / 0.9358 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/2.034, allocations: 7.031 kB / 0.9358 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-05/2.034, allocations: 17.17 kB / 0.9358 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02581/2.06, allocations: 13.69 MB / 0.9491 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.671e-05/2.06, allocations: 0 / 0.9491 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002705/2.063, allocations: 498.5 kB / 0.9496 GB, free: 104.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003559/2.066, allocations: 1.423 MB / 0.951 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006633/2.067, allocations: 43 kB / 0.951 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01268/2.08, allocations: 10.58 MB / 0.9614 GB, free: 98.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/2.08, allocations: 0 / 0.9614 GB, free: 98.96 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01576/2.096, allocations: 10.15 MB / 0.9713 GB, free: 95.24 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002322/2.098, allocations: 0.5825 MB / 0.9719 GB, free: 94.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002096/2.1, allocations: 40.94 kB / 0.9719 GB, free: 94.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003842/2.104, allocations: 221.6 kB / 0.9721 GB, free: 94.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009903/2.105, allocations: 152 kB / 0.9722 GB, free: 94.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002798/2.105, allocations: 63.86 kB / 0.9723 GB, free: 94.84 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007644/2.113, allocations: 3.774 MB / 0.976 GB, free: 93.52 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.41e-07/2.113, allocations: 0 / 0.976 GB, free: 93.52 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009187/2.122, allocations: 1.478 MB / 0.9774 GB, free: 93.36 MB / 0.5261 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 () * 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.01579/2.138, allocations: 10.96 MB / 0.9881 GB, free: 88.71 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01286/2.151, allocations: 7.798 MB / 0.9958 GB, free: 86.24 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/2.151, allocations: 3.531 kB / 0.9958 GB, free: 86.24 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005139/2.156, allocations: 3.173 MB / 0.9989 GB, free: 84.99 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004239/2.16, allocations: 0.6597 MB / 0.9995 GB, free: 84.72 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03082/2.191, allocations: 13.68 MB / 1.013 GB, free: 74.43 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004897/2.196, allocations: 4.549 MB / 1.017 GB, free: 71.07 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006392/2.203, allocations: 2.588 MB / 1.02 GB, free: 69.53 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004838/2.207, allocations: 2.823 MB / 1.023 GB, free: 66.92 MB / 0.5261 GB Notification: Performance of SimCode: time 1.182e-06/2.207, allocations: 2.438 kB / 1.023 GB, free: 66.92 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6546/2.862, allocations: 117.5 MB / 1.137 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/2.862, allocations: 178 kB / 1.137 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.57/9.433, allocations: 0 / 1.137 GB, free: 110.6 MB / 0.5417 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