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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.001501, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 221.5 MB / 230.7 MB, free: 7.59 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.001024/0.001024, allocations: 97.34 kB / 281.6 MB, free: 5.336 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.2094/0.2094, allocations: 44.14 MB / 376.5 MB, free: 3.07 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.085e-05/2.1e-05, allocations: 7.984 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1356, allocations: 61.91 MB / 0.4948 GB, free: 1.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.463/0.5986, allocations: 108.9 MB / 0.6011 GB, free: 3.477 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.5989, allocations: 75.97 kB / 0.6012 GB, free: 3.402 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6604/1.259, allocations: 124.8 MB / 0.723 GB, free: 105 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.184e-06/1.259, allocations: 0 / 0.723 GB, free: 105 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000458/1.26, allocations: 129.2 kB / 0.7231 GB, free: 105 MB / 0.4948 GB 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.02352/1.283, allocations: 6.296 MB / 0.7293 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.42e-05/1.284, allocations: 11.55 kB / 0.7293 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02892/1.312, allocations: 7.059 MB / 0.7362 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01792/1.33, allocations: 6.932 MB / 0.7429 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003433/1.331, allocations: 207.3 kB / 0.7431 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002906/1.334, allocations: 367.1 kB / 0.7435 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01743/1.351, allocations: 8.718 MB / 0.752 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02752/1.379, allocations: 13.41 MB / 0.7651 GB, free: 94.61 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003538/1.379, allocations: 81.69 kB / 0.7652 GB, free: 94.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002156/1.381, allocations: 42.12 kB / 0.7652 GB, free: 94.6 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00174/1.383, allocations: 1.416 MB / 0.7666 GB, free: 94.36 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06027/1.443, allocations: 64.67 MB / 0.8298 GB, free: 40.74 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005137/1.449, allocations: 4.86 MB / 0.8345 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003005/1.452, allocations: 3.192 MB / 0.8376 GB, free: 33.29 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001148/1.452, allocations: 40.44 kB / 0.8377 GB, free: 33.26 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/1.452, allocations: 63.69 kB / 0.8377 GB, free: 33.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=224): time 5.58e-06/1.452, allocations: 0 / 0.8377 GB, free: 33.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=268): time 0.04988/1.502, allocations: 26.06 MB / 0.8632 GB, free: 7.797 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/1.502, allocations: 235.7 kB / 0.8634 GB, free: 7.52 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007538/1.509, allocations: 4.253 MB / 0.8675 GB, free: 3.273 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008297/1.51, allocations: 25.7 kB / 0.8676 GB, free: 3.242 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003325/1.514, allocations: 4.524 MB / 0.872 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001917/1.515, allocations: 0.9946 MB / 0.873 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009835/1.517, allocations: 0 / 0.873 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000698/1.517, allocations: 0.6491 MB / 0.8736 GB, free: 12.99 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005792/1.523, allocations: 2.984 MB / 0.8765 GB, free: 9.996 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01017/1.533, allocations: 7.775 MB / 0.8841 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008905/1.542, allocations: 4.759 MB / 0.8887 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001729/1.542, allocations: 48 kB / 0.8888 GB, free: 11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1064) (initialization): time 0.3988/1.941, allocations: 11.16 MB / 0.8997 GB, free: 115 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001822/1.941, allocations: 81.47 kB / 0.8998 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004193/1.942, allocations: 171.9 kB / 0.8999 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005096/1.947, allocations: 1.69 MB / 0.9016 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008019/1.955, allocations: 1.912 MB / 0.9035 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/1.972, allocations: 10.77 MB / 0.914 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007859/1.98, allocations: 308.8 kB / 0.9143 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002233/1.982, allocations: 0.4897 MB / 0.9147 GB, free: 112.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 65 (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.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 (992): * Single equations (assignments): 987 * 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%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002022/1.984, allocations: 0.5406 MB / 0.9153 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01121/1.995, allocations: 5.859 MB / 0.921 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/1.996, allocations: 470 kB / 0.9214 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009718/2.006, allocations: 5.745 MB / 0.9271 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.893e-05/2.006, allocations: 28.05 kB / 0.9271 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-05/2.006, allocations: 14.33 kB / 0.9271 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.048e-05/2.006, allocations: 10.03 kB / 0.9271 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0221/2.028, allocations: 12.45 MB / 0.9393 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/2.028, allocations: 3.625 kB / 0.9393 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/2.031, allocations: 465.2 kB / 0.9397 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003305/2.034, allocations: 1.403 MB / 0.9411 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002812/2.034, allocations: 3.469 kB / 0.9411 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/2.046, allocations: 9.938 MB / 0.9508 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/2.046, allocations: 2.188 kB / 0.9508 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/2.059, allocations: 9.634 MB / 0.9602 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001537/2.06, allocations: 490.1 kB / 0.9607 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006477/2.061, allocations: 9.484 kB / 0.9607 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/2.063, allocations: 144.2 kB / 0.9608 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000436/2.063, allocations: 155.7 kB / 0.961 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/2.064, allocations: 69.09 kB / 0.961 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004619/2.068, allocations: 2.854 MB / 0.9638 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.2e-07/2.068, allocations: 0 / 0.9638 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00752/2.076, allocations: 1.295 MB / 0.9651 GB, free: 100.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (210): * Single equations (assignments): 205 * 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.01255/2.088, allocations: 10.48 MB / 0.9753 GB, free: 95.57 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01267/2.101, allocations: 7.617 MB / 0.9827 GB, free: 93.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/2.101, allocations: 0 / 0.9827 GB, free: 93.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004474/2.106, allocations: 3.005 MB / 0.9857 GB, free: 92.04 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00393/2.11, allocations: 0.559 MB / 0.9862 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03285/2.142, allocations: 13.66 MB / 0.9996 GB, free: 82.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005232/2.148, allocations: 4.749 MB / 1.004 GB, free: 79.28 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006847/2.155, allocations: 2.64 MB / 1.007 GB, free: 77.74 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004821/2.159, allocations: 2.955 MB / 1.01 GB, free: 75.01 MB / 0.5261 GB Notification: Performance of SimCode: time 1.052e-06/2.159, allocations: 0 / 1.01 GB, free: 75.01 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5221/2.682, allocations: 107.2 MB / 1.114 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/2.682, allocations: 144.7 kB / 1.114 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.463/8.145, allocations: 0 / 1.114 GB, free: 108.3 MB / 0.5417 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