Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",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.001495/0.001494, allocations: 178.3 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.021/2.021, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001522/0.001521, allocations: 81.31 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3039/0.3039, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.423e-05/2.415e-05, allocations: 8.203 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4109, allocations: 58.85 MB / 477.2 MB, free: 5.184 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2043/0.6153, allocations: 105.2 MB / 0.5688 GB, free: 9.926 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002983/0.6157, allocations: 75.95 kB / 0.5688 GB, free: 9.852 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9453/1.561, allocations: 140.7 MB / 0.7062 GB, free: 96.77 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.396e-06/1.561, allocations: 0 / 0.7062 GB, free: 96.77 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005242/1.562, allocations: 138.2 kB / 0.7063 GB, free: 96.76 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2473 * Number of variables: 2473 Notification: Performance of Generate backend data structure: time 0.02876/1.59, allocations: 6.844 MB / 0.713 GB, free: 92.29 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/1.59, allocations: 7.5 kB / 0.713 GB, free: 92.29 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06791/1.658, allocations: 9.533 MB / 0.7223 GB, free: 84.65 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03077/1.689, allocations: 8.857 MB / 0.731 GB, free: 75.79 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003835/1.69, allocations: 228 kB / 0.7312 GB, free: 75.57 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003652/1.693, allocations: 427.8 kB / 0.7316 GB, free: 75.15 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02887/1.722, allocations: 9.424 MB / 0.7408 GB, free: 65.73 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05642/1.779, allocations: 14.6 MB / 0.7551 GB, free: 49.66 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004901/1.779, allocations: 103.1 kB / 0.7552 GB, free: 49.55 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003057/1.782, allocations: 44 kB / 0.7552 GB, free: 49.51 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003214/1.786, allocations: 1.522 MB / 0.7567 GB, free: 47.99 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1079/1.894, allocations: 69.52 MB / 0.8246 GB, free: 8.93 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/1.904, allocations: 4.635 MB / 0.8291 GB, free: 4.141 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007169/1.911, allocations: 3.004 MB / 0.832 GB, free: 1.129 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003249/1.912, allocations: 47.78 kB / 0.8321 GB, free: 1.098 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.729e-05/1.912, allocations: 60.44 kB / 0.8322 GB, free: 1.027 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=249): time 6.823e-06/1.912, allocations: 0 / 0.8322 GB, free: 1.027 MB / 0.4952 GB Notification: Performance of matching and sorting (n=268): time 0.5041/2.416, allocations: 24.43 MB / 0.856 GB, free: 115.3 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/2.416, allocations: 263.2 kB / 0.8563 GB, free: 115 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01398/2.43, allocations: 4.939 MB / 0.8611 GB, free: 114.6 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0007589/2.431, allocations: 25.7 kB / 0.8611 GB, free: 114.5 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004737/2.436, allocations: 4.997 MB / 0.866 GB, free: 111.6 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.001873/2.438, allocations: 1.006 MB / 0.867 GB, free: 111 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001306/2.439, allocations: 0 / 0.867 GB, free: 111 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0008506/2.44, allocations: 0.6943 MB / 0.8676 GB, free: 110.7 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007165/2.447, allocations: 2.784 MB / 0.8704 GB, free: 110.6 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01099/2.458, allocations: 8.251 MB / 0.8784 GB, free: 102.8 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/2.469, allocations: 4.737 MB / 0.883 GB, free: 101.4 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002425/2.469, allocations: 55.59 kB / 0.8831 GB, free: 101.4 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.02881/2.498, allocations: 10.23 MB / 0.8931 GB, free: 98.27 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001562/2.498, allocations: 87.06 kB / 0.8932 GB, free: 98.27 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003332/2.498, allocations: 200.9 kB / 0.8934 GB, free: 98.26 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003329/2.502, allocations: 0.8413 MB / 0.8942 GB, free: 98.1 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01327/2.515, allocations: 2.074 MB / 0.8962 GB, free: 97.84 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0131/2.528, allocations: 8.196 MB / 0.9042 GB, free: 92.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01098/2.539, allocations: 315.5 kB / 0.9045 GB, free: 92.16 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002431/2.542, allocations: 0.5427 MB / 0.9051 GB, free: 92.09 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 894 * Number of states: 0 () * Number of discrete variables: 57 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1102): * Single equations (assignments): 1096 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003607/2.545, allocations: 0.5933 MB / 0.9056 GB, free: 91.6 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01268/2.558, allocations: 4.367 MB / 0.9099 GB, free: 90 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002382/2.561, allocations: 0.5198 MB / 0.9104 GB, free: 89.71 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/2.574, allocations: 4.213 MB / 0.9145 GB, free: 87.84 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.35e-05/2.574, allocations: 28.62 kB / 0.9145 GB, free: 87.81 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.106e-05/2.574, allocations: 8 kB / 0.9146 GB, free: 87.8 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-05/2.574, allocations: 13.55 kB / 0.9146 GB, free: 87.8 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03237/2.606, allocations: 10.3 MB / 0.9246 GB, free: 79.43 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-05/2.606, allocations: 2.672 kB / 0.9246 GB, free: 79.43 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004529/2.611, allocations: 449.4 kB / 0.9251 GB, free: 79.07 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002557/2.614, allocations: 0.5123 MB / 0.9256 GB, free: 78.68 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006229/2.614, allocations: 10.86 kB / 0.9256 GB, free: 78.67 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/2.625, allocations: 7.273 MB / 0.9327 GB, free: 71.7 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/2.625, allocations: 4.031 kB / 0.9327 GB, free: 71.7 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01782/2.643, allocations: 7.619 MB / 0.9401 GB, free: 64.85 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004078/2.647, allocations: 0.896 MB / 0.941 GB, free: 64 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002014/2.649, allocations: 3.609 kB / 0.941 GB, free: 64 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005254/2.655, allocations: 111.5 kB / 0.9411 GB, free: 63.93 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001133/2.656, allocations: 165.8 kB / 0.9413 GB, free: 63.82 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004845/2.656, allocations: 71.14 kB / 0.9413 GB, free: 63.76 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.009305/2.666, allocations: 3.337 MB / 0.9446 GB, free: 60.85 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.062e-06/2.666, allocations: 0 / 0.9446 GB, free: 60.85 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.0125/2.678, allocations: 1.351 MB / 0.9459 GB, free: 59.51 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 214 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.01861/2.697, allocations: 8.439 MB / 0.9541 GB, free: 51.88 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01619/2.713, allocations: 7.025 MB / 0.961 GB, free: 45.5 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/2.713, allocations: 0 / 0.961 GB, free: 45.5 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.005397/2.719, allocations: 2.407 MB / 0.9634 GB, free: 43.29 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006039/2.725, allocations: 0.6057 MB / 0.9639 GB, free: 42.79 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05232/2.777, allocations: 15.08 MB / 0.9787 GB, free: 29.76 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01278/2.79, allocations: 5.225 MB / 0.9838 GB, free: 25.92 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008923/2.799, allocations: 3.415 MB / 0.9871 GB, free: 22.75 MB / 0.4952 GB Notification: Performance of SimCode: time 1.924e-06/2.799, allocations: 4 kB / 0.9871 GB, free: 22.74 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.676/8.475, allocations: 215.7 MB / 1.198 GB, free: 5.988 MB / 0.5265 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat does not exist to compare? outputFormat=mat