Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001512/0.001511, allocations: 183.7 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.671/1.671, allocations: 205.2 MB / 218.9 MB, free: 9.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008961/0.0008962, allocations: 98.36 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4353/0.4353, allocations: 43.47 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.775e-05/5.796e-05, allocations: 4 kB / 425.4 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1593, allocations: 58.85 MB / 484.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.497/0.6564, allocations: 105.7 MB / 0.5761 GB, free: 100 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/0.6568, allocations: 82.44 kB / 0.5762 GB, free: 56 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7623/1.419, allocations: 171.1 MB / 0.7433 GB, free: 78.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.515e-06/1.419, allocations: 0 / 0.7433 GB, free: 78.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005174/1.42, allocations: 170.3 kB / 0.7435 GB, free: 78.52 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: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.0298/1.449, allocations: 8.264 MB / 0.7516 GB, free: 75.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/1.45, allocations: 11.44 kB / 0.7516 GB, free: 75.3 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007492/1.457, allocations: 1.472 MB / 0.753 GB, free: 75.19 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04931/1.506, allocations: 12.1 MB / 0.7648 GB, free: 74.58 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03017/1.537, allocations: 10.95 MB / 0.7755 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007287/1.537, allocations: 0.6381 MB / 0.7761 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004667/1.542, allocations: 0.8533 MB / 0.777 GB, free: 73.41 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05195/1.594, allocations: 19.85 MB / 0.7964 GB, free: 64.65 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009075/1.595, allocations: 101.2 kB / 0.7964 GB, free: 64.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005187/1.6, allocations: 403.6 kB / 0.7968 GB, free: 64.36 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003127/1.603, allocations: 1.826 MB / 0.7986 GB, free: 64.02 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03651/1.64, allocations: 16.04 MB / 0.8143 GB, free: 59.01 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.505/2.145, allocations: 82.22 MB / 0.8946 GB, free: 78.46 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02113/2.166, allocations: 8.059 MB / 0.9024 GB, free: 77.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006122/2.172, allocations: 4.081 MB / 0.9064 GB, free: 77.73 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008771/2.173, allocations: 0.6705 MB / 0.9071 GB, free: 77.17 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.258e-05/2.173, allocations: 68.61 kB / 0.9072 GB, free: 77.13 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=311): time 9.738e-06/2.173, allocations: 0.75 kB / 0.9072 GB, free: 77.13 MB / 0.5105 GB Notification: Performance of matching and sorting (n=335): time 0.09036/2.264, allocations: 26.27 MB / 0.9328 GB, free: 71.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002084/2.264, allocations: 297.4 kB / 0.9331 GB, free: 70.89 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0235/2.288, allocations: 6.833 MB / 0.9398 GB, free: 70.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001057/2.289, allocations: 79.12 kB / 0.9398 GB, free: 70.27 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.006082/2.295, allocations: 5.865 MB / 0.9456 GB, free: 67.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00227/2.297, allocations: 1.273 MB / 0.9468 GB, free: 66.75 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001618/2.299, allocations: 196.3 kB / 0.947 GB, free: 66.75 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001296/2.3, allocations: 0.7093 MB / 0.9477 GB, free: 66.43 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006792/2.307, allocations: 3.441 MB / 0.951 GB, free: 66.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01135/2.318, allocations: 9.128 MB / 0.96 GB, free: 59.08 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/2.329, allocations: 5.549 MB / 0.9654 GB, free: 58.75 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00046/2.33, allocations: 55.91 kB / 0.9654 GB, free: 58.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1262) (initialization): time 0.02894/2.359, allocations: 13.2 MB / 0.9783 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005294/2.359, allocations: 90.41 kB / 0.9784 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000522/2.36, allocations: 206.2 kB / 0.9786 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002978/2.363, allocations: 1.054 MB / 0.9796 GB, free: 54.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008598/2.372, allocations: 2.255 MB / 0.9818 GB, free: 54.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/2.384, allocations: 11.28 MB / 0.9929 GB, free: 46.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01201/2.396, allocations: 0.5232 MB / 0.9934 GB, free: 46.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002953/2.399, allocations: 0.5692 MB / 0.9939 GB, free: 46.31 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 915 * Number of states: 0 () * Number of discrete variables: 66 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[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 (1182): * Single equations (assignments): 1175 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005198/2.404, allocations: 0.855 MB / 0.9948 GB, free: 45.63 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002868/2.407, allocations: 0.681 MB / 0.9954 GB, free: 45.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/2.422, allocations: 5.952 MB / 1.001 GB, free: 43 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.355e-05/2.422, allocations: 34.59 kB / 1.001 GB, free: 43 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.135e-05/2.422, allocations: 17.67 kB / 1.001 GB, free: 43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-05/2.422, allocations: 14.67 kB / 1.001 GB, free: 43 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04164/2.464, allocations: 15.03 MB / 1.016 GB, free: 37.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.413e-05/2.464, allocations: 3.219 kB / 1.016 GB, free: 37.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00328/2.467, allocations: 0.5608 MB / 1.017 GB, free: 37.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002158/2.469, allocations: 0.7001 MB / 1.017 GB, free: 37.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006693/2.47, allocations: 61.06 kB / 1.017 GB, free: 37.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009744/2.48, allocations: 10.11 MB / 1.027 GB, free: 28.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/2.48, allocations: 7.984 kB / 1.027 GB, free: 28.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01566/2.495, allocations: 10.07 MB / 1.037 GB, free: 19.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0056/2.501, allocations: 1.192 MB / 1.038 GB, free: 18.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003023/2.504, allocations: 59.94 kB / 1.038 GB, free: 18.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0062/2.51, allocations: 195.3 kB / 1.038 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/2.512, allocations: 196.3 kB / 1.039 GB, free: 18.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008233/2.513, allocations: 83.66 kB / 1.039 GB, free: 18.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01296/2.526, allocations: 4.867 MB / 1.043 GB, free: 13.89 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.011e-06/2.526, allocations: 4 kB / 1.043 GB, free: 13.89 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01507/2.541, allocations: 1.865 MB / 1.045 GB, free: 12.03 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02037/2.561, allocations: 11.03 MB / 1.056 GB, free: 2.043 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01858/2.58, allocations: 8.857 MB / 1.065 GB, free: 9.938 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/2.58, allocations: 0 / 1.065 GB, free: 9.938 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006292/2.586, allocations: 3.185 MB / 1.068 GB, free: 7.004 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008693/2.595, allocations: 0.9472 MB / 1.069 GB, free: 6.219 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06332/2.658, allocations: 17.77 MB / 1.086 GB, free: 6.793 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3689/3.027, allocations: 6.274 MB / 1.092 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01142/3.039, allocations: 3.095 MB / 1.095 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008339/3.047, allocations: 4.102 MB / 1.099 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.583e-06/3.047, allocations: 0 / 1.099 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.265/3.312, allocations: 150.3 MB / 1.246 GB, free: 37.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/3.312, allocations: 172 kB / 1.246 GB, free: 37.41 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.27/11.58, allocations: 0 / 1.246 GB, free: 37.41 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat