Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.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.Sensors.CutForce,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForce,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForce",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.00157/0.001569, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.00115/0.00115, allocations: 98.84 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2938/0.2938, allocations: 43.55 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000479/0.0004791, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1293, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutForce): time 0.4678/0.5971, allocations: 86.57 MB / 0.5634 GB, free: 13.29 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0571/0.6543, allocations: 19.22 MB / 0.5821 GB, free: 14.21 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02099/0.6753, allocations: 446.9 kB / 0.5826 GB, free: 13.78 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01675/0.6921, allocations: 4.405 MB / 0.5869 GB, free: 9.352 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05055/0.7427, allocations: 12.42 MB / 0.599 GB, free: 12.91 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007967/0.7507, allocations: 1.237 MB / 0.6002 GB, free: 11.67 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01232/0.7631, allocations: 4.56 MB / 0.6046 GB, free: 7.098 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01976/0.7829, allocations: 9.112 MB / 0.6135 GB, free: 13.91 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005407/0.7884, allocations: 2.091 MB / 0.6156 GB, free: 11.81 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006057/0.7945, allocations: 2.672 MB / 0.6182 GB, free: 9.129 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002021/0.7966, allocations: 287.9 kB / 0.6185 GB, free: 8.848 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004106/0.8007, allocations: 0.9557 MB / 0.6194 GB, free: 7.891 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005856/0.8066, allocations: 3.133 MB / 0.6225 GB, free: 4.75 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003362/0.81, allocations: 1.54 MB / 0.624 GB, free: 3.199 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01701/0.827, allocations: 10.05 MB / 0.6338 GB, free: 9.125 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.8271, allocations: 0 / 0.6338 GB, free: 9.125 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.8271, allocations: 0 / 0.6338 GB, free: 9.125 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000471/0.8276, allocations: 0 / 0.6338 GB, free: 9.125 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2799 * Number of variables: 2799 Notification: Performance of Generate backend data structure: time 0.02619/0.8538, allocations: 7.943 MB / 0.6415 GB, free: 1.098 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.8539, allocations: 11.97 kB / 0.6415 GB, free: 1.086 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004659/0.8585, allocations: 1.314 MB / 0.6428 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02213/0.8807, allocations: 3.085 MB / 0.6458 GB, free: 12.66 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02142/0.9022, allocations: 5.647 MB / 0.6514 GB, free: 6.938 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001025/0.9033, allocations: 472.1 kB / 0.6518 GB, free: 6.477 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004074/0.9074, allocations: 0.5855 MB / 0.6524 GB, free: 5.891 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05711/0.9645, allocations: 18.89 MB / 0.6708 GB, free: 1.84 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000395/0.965, allocations: 75.33 kB / 0.6709 GB, free: 1.766 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002522/0.9675, allocations: 287.7 kB / 0.6712 GB, free: 1.484 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009916/0.9775, allocations: 3.441 MB / 0.6745 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05255/1.03, allocations: 14.76 MB / 0.6889 GB, free: 15.27 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8003/1.83, allocations: 70.76 MB / 0.758 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02992/1.86, allocations: 6.145 MB / 0.7641 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03102/1.892, allocations: 10.98 MB / 0.7748 GB, free: 128 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.336e-05/1.892, allocations: 66.11 kB / 0.7748 GB, free: 128 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=238): time 6.833e-06/1.892, allocations: 0 / 0.7748 GB, free: 128 MB / 0.5105 GB Notification: Performance of matching and sorting (n=262): time 0.07079/1.962, allocations: 16.41 MB / 0.7909 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.627e-05/1.963, allocations: 158.8 kB / 0.791 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01481/1.977, allocations: 7.088 MB / 0.7979 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005378/1.978, allocations: 67.33 kB / 0.798 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004341/1.982, allocations: 5.334 MB / 0.8032 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001353/1.984, allocations: 1.007 MB / 0.8042 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008931/1.985, allocations: 179.5 kB / 0.8044 GB, free: 108 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006035/1.985, allocations: 0.6954 MB / 0.805 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007313/1.993, allocations: 2.592 MB / 0.8076 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01093/2.004, allocations: 8.264 MB / 0.8156 GB, free: 93.79 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/2.014, allocations: 4.477 MB / 0.82 GB, free: 89.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001886/2.014, allocations: 60 kB / 0.8201 GB, free: 89.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1203) (initialization): time 0.02632/2.041, allocations: 10.33 MB / 0.8302 GB, free: 78.92 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001362/2.041, allocations: 93.56 kB / 0.8303 GB, free: 78.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002561/2.041, allocations: 200 kB / 0.8304 GB, free: 78.63 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003154/2.042, allocations: 300 kB / 0.8307 GB, free: 78.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01258/2.054, allocations: 2.121 MB / 0.8328 GB, free: 76.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003663/2.055, allocations: 394.5 kB / 0.8332 GB, free: 75.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009503/2.064, allocations: 453.4 kB / 0.8336 GB, free: 75.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001625/2.066, allocations: 0.5576 MB / 0.8342 GB, free: 74.83 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 923 * Number of states: 0 () * Number of discrete variables: 60 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1139): * Single equations (assignments): 1128 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008534/2.074, allocations: 3.612 MB / 0.8377 GB, free: 71.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001351/2.076, allocations: 0.5823 MB / 0.8382 GB, free: 70.62 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00779/2.083, allocations: 2.784 MB / 0.841 GB, free: 67.82 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.13e-05/2.084, allocations: 28 kB / 0.841 GB, free: 67.79 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/2.084, allocations: 0 / 0.841 GB, free: 67.79 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.049e-05/2.084, allocations: 11.95 kB / 0.841 GB, free: 67.78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05706/2.141, allocations: 26.57 MB / 0.867 GB, free: 40.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001296/2.141, allocations: 60.25 kB / 0.867 GB, free: 40.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003529/2.144, allocations: 0.5302 MB / 0.8675 GB, free: 39.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.257e-05/2.145, allocations: 76 kB / 0.8676 GB, free: 39.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004148/2.145, allocations: 112 kB / 0.8677 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.881e-05/2.145, allocations: 103.6 kB / 0.8678 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.326e-05/2.145, allocations: 87.62 kB / 0.8679 GB, free: 39.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/2.156, allocations: 14.81 MB / 0.8824 GB, free: 22.51 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002164/2.158, allocations: 0.6964 MB / 0.883 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001864/2.16, allocations: 124 kB / 0.8831 GB, free: 21.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004845/2.165, allocations: 146.3 kB / 0.8833 GB, free: 21.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008642/2.166, allocations: 354.5 kB / 0.8836 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003467/2.166, allocations: 152.7 kB / 0.8838 GB, free: 21.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01057/2.177, allocations: 4.499 MB / 0.8882 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.82e-07/2.177, allocations: 0 / 0.8882 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01085/2.188, allocations: 1.523 MB / 0.8897 GB, free: 15.03 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 270 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01709/2.205, allocations: 25.46 MB / 0.9145 GB, free: 3.828 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.3514/2.556, allocations: 6.05 MB / 0.9204 GB, free: 184.9 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 4.333e-05/2.556, allocations: 9.656 kB / 0.9204 GB, free: 184.9 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.003902/2.56, allocations: 1.491 MB / 0.9219 GB, free: 184.7 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006931/2.567, allocations: 0.8566 MB / 0.9227 GB, free: 184.7 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09438/2.662, allocations: 175.3 MB / 1.094 GB, free: 15.49 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01272/2.675, allocations: 5.744 MB / 1.1 GB, free: 13.65 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007469/2.682, allocations: 3.735 MB / 1.103 GB, free: 10.61 MB / 0.5262 GB Notification: Performance of SimCode: time 7.41e-07/2.682, allocations: 0 / 1.103 GB, free: 10.61 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.574/8.256, allocations: 137.1 MB / 1.237 GB, free: 78.77 MB / 0.5262 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForce_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForce.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForce_res.mat does not exist to compare? outputFormat=mat