Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.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.WorldForces2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",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.002146/0.002146, allocations: 179.4 kB / 8.364 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.109/2.109, 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.001083/0.001083, allocations: 91.67 kB / 262.1 MB, free: 13.87 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.2942/0.2942, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.192e-05/2.209e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4055, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.6076, allocations: 105 MB / 0.5686 GB, free: 10.12 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.6079, allocations: 75.97 kB / 0.5687 GB, free: 10.05 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9001/1.508, allocations: 134.9 MB / 0.7004 GB, free: 99.79 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.254e-06/1.508, allocations: 0 / 0.7004 GB, free: 99.79 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005184/1.509, allocations: 139 kB / 0.7005 GB, free: 99.78 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: 2370 * Number of variables: 2370 Notification: Performance of Generate backend data structure: time 0.02704/1.536, allocations: 6.655 MB / 0.707 GB, free: 95.42 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/1.536, allocations: 8.312 kB / 0.707 GB, free: 95.42 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06762/1.603, allocations: 9.497 MB / 0.7163 GB, free: 90.57 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03099/1.634, allocations: 8.727 MB / 0.7248 GB, free: 81.88 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004418/1.635, allocations: 220 kB / 0.7251 GB, free: 81.66 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00385/1.639, allocations: 407.8 kB / 0.7254 GB, free: 81.26 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02408/1.663, allocations: 9.055 MB / 0.7343 GB, free: 72.2 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03763/1.701, allocations: 14.08 MB / 0.748 GB, free: 56.67 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000532/1.701, allocations: 99.11 kB / 0.7481 GB, free: 56.57 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003259/1.704, allocations: 47.95 kB / 0.7482 GB, free: 56.53 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003336/1.708, allocations: 1.467 MB / 0.7496 GB, free: 55.06 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.106/1.814, allocations: 67.7 MB / 0.8157 GB, free: 1.844 MB / 491.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01077/1.825, allocations: 4.619 MB / 0.8202 GB, free: 13.07 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00697/1.832, allocations: 2.975 MB / 0.8231 GB, free: 10.09 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003025/1.832, allocations: 39.78 kB / 0.8232 GB, free: 10.06 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.297e-05/1.832, allocations: 68.33 kB / 0.8232 GB, free: 9.984 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=242): time 7.144e-06/1.832, allocations: 0 / 0.8232 GB, free: 9.984 MB / 0.4952 GB Notification: Performance of matching and sorting (n=263): time 0.4693/2.302, allocations: 25.59 MB / 0.8482 GB, free: 116.5 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/2.302, allocations: 262 kB / 0.8485 GB, free: 116.2 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01635/2.318, allocations: 4.813 MB / 0.8532 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0008208/2.319, allocations: 28.05 kB / 0.8532 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.005339/2.324, allocations: 4.81 MB / 0.8579 GB, free: 113 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002048/2.327, allocations: 0.9883 MB / 0.8589 GB, free: 112.4 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001205/2.328, allocations: 0 / 0.8589 GB, free: 112.4 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001052/2.329, allocations: 0.6746 MB / 0.8595 GB, free: 112.1 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007368/2.336, allocations: 2.703 MB / 0.8622 GB, free: 112 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0109/2.347, allocations: 7.992 MB / 0.87 GB, free: 105.2 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/2.358, allocations: 4.606 MB / 0.8745 GB, free: 105 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002674/2.358, allocations: 54.5 kB / 0.8745 GB, free: 105 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.02942/2.388, allocations: 9.924 MB / 0.8842 GB, free: 102 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001722/2.388, allocations: 88.69 kB / 0.8843 GB, free: 102 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003133/2.388, allocations: 194.4 kB / 0.8845 GB, free: 102 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003338/2.392, allocations: 0.7998 MB / 0.8853 GB, free: 101.9 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0129/2.405, allocations: 1.999 MB / 0.8872 GB, free: 101.6 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01326/2.418, allocations: 8.02 MB / 0.8951 GB, free: 96.03 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01117/2.429, allocations: 298.3 kB / 0.8953 GB, free: 96 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002548/2.432, allocations: 0.5224 MB / 0.8958 GB, free: 95.93 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * Number of states: 0 () * Number of discrete variables: 57 (worldForce2.color[3],worldForce2.color[2],worldForce2.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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.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],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 (1072): * Single equations (assignments): 1066 * 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%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003553/2.435, allocations: 0.5749 MB / 0.8964 GB, free: 95.46 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01269/2.448, allocations: 4.244 MB / 0.9006 GB, free: 93.9 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002404/2.451, allocations: 0.5037 MB / 0.901 GB, free: 93.62 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/2.464, allocations: 4.074 MB / 0.905 GB, free: 92.11 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.745e-05/2.464, allocations: 25.97 kB / 0.905 GB, free: 92.11 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.613e-05/2.464, allocations: 7.719 kB / 0.9051 GB, free: 92.11 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.12e-05/2.464, allocations: 14.7 kB / 0.9051 GB, free: 92.11 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03428/2.498, allocations: 9.987 MB / 0.9148 GB, free: 88.4 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.372e-05/2.498, allocations: 3.875 kB / 0.9148 GB, free: 88.4 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004291/2.503, allocations: 414.6 kB / 0.9152 GB, free: 88.37 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002626/2.505, allocations: 0.4929 MB / 0.9157 GB, free: 88.23 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007233/2.506, allocations: 11.17 kB / 0.9157 GB, free: 88.22 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01109/2.517, allocations: 7.087 MB / 0.9226 GB, free: 82.35 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/2.517, allocations: 0 / 0.9226 GB, free: 82.35 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01721/2.534, allocations: 7.421 MB / 0.9299 GB, free: 75.68 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004007/2.539, allocations: 0.8818 MB / 0.9307 GB, free: 74.85 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001867/2.54, allocations: 7.516 kB / 0.9307 GB, free: 74.84 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005259/2.546, allocations: 107.6 kB / 0.9309 GB, free: 74.79 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001/2.547, allocations: 150.3 kB / 0.931 GB, free: 74.69 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002772/2.547, allocations: 72.22 kB / 0.9311 GB, free: 74.62 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.009195/2.556, allocations: 3.256 MB / 0.9342 GB, free: 71.82 MB / 0.4952 GB Notification: Performance of sort global known variables: time 9.82e-07/2.556, allocations: 0 / 0.9342 GB, free: 71.82 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01299/2.569, allocations: 1.309 MB / 0.9355 GB, free: 70.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,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 (218): * Single equations (assignments): 212 * 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%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01899/2.588, allocations: 8.238 MB / 0.9436 GB, free: 63.04 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01616/2.605, allocations: 6.813 MB / 0.9502 GB, free: 56.86 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/2.605, allocations: 0 / 0.9502 GB, free: 56.86 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.005294/2.61, allocations: 2.346 MB / 0.9525 GB, free: 54.7 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006224/2.616, allocations: 0.5998 MB / 0.9531 GB, free: 54.2 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05153/2.668, allocations: 14.63 MB / 0.9674 GB, free: 41.6 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01257/2.681, allocations: 5.047 MB / 0.9723 GB, free: 37.9 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008302/2.689, allocations: 3.282 MB / 0.9755 GB, free: 34.85 MB / 0.4952 GB Notification: Performance of SimCode: time 1.402e-06/2.689, allocations: 7.938 kB / 0.9755 GB, free: 34.84 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.884/8.573, allocations: 208 MB / 1.179 GB, free: 7.945 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat