Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForces2.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.FrameForces2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForces2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForces2",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.002247/0.002247, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.039/2.039, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001134/0.001134, allocations: 96.42 kB / 270.9 MB, free: 8.383 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.5229/0.5229, allocations: 43.55 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004748/0.0004749, allocations: 12 kB / 431.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1363, allocations: 58.85 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.515/0.6514, allocations: 105.6 MB / 0.582 GB, free: 12.95 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/0.6517, allocations: 79.97 kB / 0.582 GB, free: 12.87 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.022/1.674, allocations: 163.5 MB / 0.7417 GB, free: 81.74 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.674, allocations: 0 / 0.7417 GB, free: 81.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006565/1.674, allocations: 167.4 kB / 0.7419 GB, free: 81.74 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2809 * Number of variables: 2809 Notification: Performance of Generate backend data structure: time 0.04024/1.715, allocations: 8.79 MB / 0.7505 GB, free: 77.55 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/1.715, allocations: 9.438 kB / 0.7505 GB, free: 77.55 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007631/1.722, allocations: 1.407 MB / 0.7519 GB, free: 76.88 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08892/1.811, allocations: 12.03 MB / 0.7636 GB, free: 74.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03856/1.85, allocations: 10.87 MB / 0.7742 GB, free: 68.73 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007774/1.851, allocations: 0.604 MB / 0.7748 GB, free: 68.49 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005126/1.856, allocations: 0.8137 MB / 0.7756 GB, free: 68.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06314/1.919, allocations: 19.29 MB / 0.7944 GB, free: 51.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008034/1.92, allocations: 103.1 kB / 0.7945 GB, free: 51.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004523/1.925, allocations: 391.7 kB / 0.7949 GB, free: 51.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00391/1.928, allocations: 1.728 MB / 0.7966 GB, free: 49.54 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05206/1.981, allocations: 15.72 MB / 0.8119 GB, free: 33.81 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5526/2.533, allocations: 79.73 MB / 0.8898 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03652/2.57, allocations: 8.252 MB / 0.8979 GB, free: 52.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00115/2.571, allocations: 0.6606 MB / 0.8985 GB, free: 52.25 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.148e-05/2.571, allocations: 72.09 kB / 0.8986 GB, free: 52.21 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=307): time 7.454e-06/2.571, allocations: 0 / 0.8986 GB, free: 52.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=331): time 0.1453/2.716, allocations: 30.28 MB / 0.9281 GB, free: 45.66 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/2.717, allocations: 295.7 kB / 0.9284 GB, free: 45.34 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01944/2.736, allocations: 6.739 MB / 0.935 GB, free: 44.84 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009707/2.737, allocations: 78.67 kB / 0.9351 GB, free: 44.81 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005551/2.743, allocations: 5.317 MB / 0.9403 GB, free: 41.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002276/2.745, allocations: 1.247 MB / 0.9415 GB, free: 41.18 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001793/2.747, allocations: 188.9 kB / 0.9417 GB, free: 41.18 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001143/2.748, allocations: 0.7066 MB / 0.9424 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009959/2.758, allocations: 3.459 MB / 0.9457 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01422/2.772, allocations: 8.969 MB / 0.9545 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/2.786, allocations: 5.43 MB / 0.9598 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002617/2.786, allocations: 56.09 kB / 0.9599 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1228) (initialization): time 0.03674/2.823, allocations: 12.74 MB / 0.9723 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000158/2.823, allocations: 88 kB / 0.9724 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000365/2.824, allocations: 193 kB / 0.9726 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004194/2.828, allocations: 1.016 MB / 0.9736 GB, free: 24.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01372/2.842, allocations: 2.167 MB / 0.9757 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01885/2.861, allocations: 11.2 MB / 0.9866 GB, free: 16.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01338/2.874, allocations: 0.5077 MB / 0.9871 GB, free: 16.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003572/2.878, allocations: 0.5511 MB / 0.9876 GB, free: 16.46 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 885 * Number of states: 0 () * Number of discrete variables: 66 (frameForce4.color[3],frameForce4.color[2],frameForce4.color[1],BodyCylinder4.color[3],BodyCylinder4.color[2],BodyCylinder4.color[1],BodyCylinder4.body.sphereColor[3],BodyCylinder4.body.sphereColor[2],BodyCylinder4.body.sphereColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameForce3.color[3],frameForce3.color[2],frameForce3.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],frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1152): * Single equations (assignments): 1145 * 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%) 13,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01605/2.894, allocations: 3.746 MB / 0.9913 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003313/2.897, allocations: 0.6641 MB / 0.992 GB, free: 14.37 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02299/2.92, allocations: 5.935 MB / 0.9977 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.715e-05/2.92, allocations: 38.94 kB / 0.9978 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.494e-05/2.92, allocations: 14.86 kB / 0.9978 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001011/2.921, allocations: 16.73 kB / 0.9978 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05227/2.973, allocations: 14.72 MB / 1.012 GB, free: 2.531 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.697e-05/2.973, allocations: 0 / 1.012 GB, free: 2.531 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00576/2.979, allocations: 0.5256 MB / 1.013 GB, free: 2.102 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003777/2.983, allocations: 0.6799 MB / 1.013 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001013/2.984, allocations: 59.19 kB / 1.013 GB, free: 1.535 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02082/3.004, allocations: 10.08 MB / 1.023 GB, free: 7.883 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/3.005, allocations: 4.031 kB / 1.023 GB, free: 7.879 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05166/3.056, allocations: 10.43 MB / 1.033 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007097/3.063, allocations: 1.178 MB / 1.035 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003486/3.067, allocations: 59.78 kB / 1.035 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009157/3.076, allocations: 195.7 kB / 1.035 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001354/3.078, allocations: 187.3 kB / 1.035 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005812/3.078, allocations: 83.33 kB / 1.035 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01864/3.097, allocations: 4.83 MB / 1.04 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.71e-07/3.097, allocations: 3.938 kB / 1.04 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01411/3.111, allocations: 1.811 MB / 1.042 GB, free: 8.695 MB / 0.5417 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 () * Number of clocked 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%) 10,(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.03642/3.147, allocations: 11.41 MB / 1.053 GB, free: 15.84 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.02428/3.172, allocations: 8.803 MB / 1.061 GB, free: 8.086 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/3.172, allocations: 0 / 1.061 GB, free: 8.086 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.00887/3.181, allocations: 3.195 MB / 1.064 GB, free: 4.879 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008516/3.189, allocations: 0.9134 MB / 1.065 GB, free: 4.008 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6617/3.851, allocations: 207.7 MB / 1.268 GB, free: 21.03 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01927/3.87, allocations: 5.909 MB / 1.274 GB, free: 19.63 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01086/3.881, allocations: 3.997 MB / 1.278 GB, free: 16.38 MB / 0.6042 GB Notification: Performance of SimCode: time 1.674e-06/3.881, allocations: 0 / 1.278 GB, free: 16.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.777/10.66, allocations: 285.9 MB / 1.557 GB, free: 162.1 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForces2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForces2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForces2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForces2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForces2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForces2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForces2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForces2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForces2_res.mat does not exist to compare? outputFormat=mat