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.001588/0.001589, allocations: 189.2 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.074/2.074, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001156/0.001156, allocations: 102.8 kB / 270.9 MB, free: 13.37 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.3511/0.3511, allocations: 43.55 MB / 362.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004978, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1229, allocations: 58.86 MB / 490.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForces2): time 0.5094/0.6323, allocations: 106.9 MB / 0.5832 GB, free: 13.12 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.07686/0.7092, allocations: 23.62 MB / 0.6063 GB, free: 5.434 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02856/0.7379, allocations: 0.5222 MB / 0.6068 GB, free: 4.91 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02263/0.7606, allocations: 5.432 MB / 0.6121 GB, free: 15.45 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.06744/0.8281, allocations: 15.21 MB / 0.627 GB, free: 208 kB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009823/0.8379, allocations: 1.217 MB / 0.6282 GB, free: 14.98 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.1445/0.9825, allocations: 52.4 MB / 0.6793 GB, free: 10.53 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02273/1.005, allocations: 9.594 MB / 0.6887 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006357/1.012, allocations: 2.102 MB / 0.6908 GB, free: 14.74 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007106/1.019, allocations: 2.901 MB / 0.6936 GB, free: 11.83 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 0.002391/1.021, allocations: 296 kB / 0.6939 GB, free: 11.54 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005345/1.027, allocations: 1.143 MB / 0.695 GB, free: 10.4 MB / 0.4949 GB Notification: Performance of NFScalarize.scalarize: time 0.006784/1.034, allocations: 3.374 MB / 0.6983 GB, free: 7.02 MB / 0.4949 GB Notification: Performance of NFVerifyModel.verify: time 0.00424/1.038, allocations: 1.657 MB / 0.6999 GB, free: 5.352 MB / 0.4949 GB Notification: Performance of NFConvertDAE.convert: time 0.02096/1.059, allocations: 11.44 MB / 0.7111 GB, free: 9.883 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/1.059, allocations: 0 / 0.7111 GB, free: 9.883 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.557e-06/1.059, allocations: 0 / 0.7111 GB, free: 9.883 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.00059/1.06, allocations: 0 / 0.7111 GB, free: 9.883 MB / 0.5105 GB 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.03476/1.094, allocations: 8.619 MB / 0.7195 GB, free: 1.172 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/1.094, allocations: 12.03 kB / 0.7195 GB, free: 1.16 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.6781/1.773, allocations: 1.32 MB / 0.7208 GB, free: 189.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1681/1.941, allocations: 14.24 MB / 0.7347 GB, free: 186.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02241/1.963, allocations: 7.08 MB / 0.7416 GB, free: 182.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006118/1.964, allocations: 486.5 kB / 0.7421 GB, free: 182.4 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003474/1.967, allocations: 0.6386 MB / 0.7427 GB, free: 182.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05387/2.021, allocations: 19.06 MB / 0.7613 GB, free: 163.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004277/2.022, allocations: 87.2 kB / 0.7614 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002174/2.024, allocations: 304.3 kB / 0.7617 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009551/2.033, allocations: 3.412 MB / 0.765 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04951/2.083, allocations: 15.87 MB / 0.7805 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1234/2.206, allocations: 70.04 MB / 0.8489 GB, free: 72.67 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03454/2.241, allocations: 8.242 MB / 0.857 GB, free: 64.28 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00118/2.242, allocations: 0.667 MB / 0.8576 GB, free: 63.52 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001017/2.242, allocations: 72.8 kB / 0.8577 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=307): time 8.236e-06/2.242, allocations: 0 / 0.8577 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=331): time 0.1469/2.389, allocations: 31.87 MB / 0.8888 GB, free: 31.31 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/2.39, allocations: 303.6 kB / 0.8891 GB, free: 30.95 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01859/2.408, allocations: 8.124 MB / 0.897 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009694/2.409, allocations: 77.7 kB / 0.8971 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004758/2.414, allocations: 5.283 MB / 0.9023 GB, free: 17.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002029/2.416, allocations: 1.248 MB / 0.9035 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001303/2.417, allocations: 191.9 kB / 0.9037 GB, free: 16.08 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007156/2.418, allocations: 0.7075 MB / 0.9044 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009621/2.428, allocations: 3.571 MB / 0.9078 GB, free: 11.78 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01295/2.441, allocations: 9.041 MB / 0.9167 GB, free: 28 kB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3709/2.812, allocations: 5.535 MB / 0.9221 GB, free: 163.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002048/2.812, allocations: 56.89 kB / 0.9221 GB, free: 163.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.03949/2.852, allocations: 13.11 MB / 0.9349 GB, free: 159.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002315/2.852, allocations: 86.44 kB / 0.935 GB, free: 159.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005856/2.852, allocations: 196.5 kB / 0.9352 GB, free: 159.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006683/2.859, allocations: 1.304 MB / 0.9365 GB, free: 159 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01522/2.874, allocations: 2.222 MB / 0.9386 GB, free: 158.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02198/2.896, allocations: 12.7 MB / 0.951 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01126/2.908, allocations: 0.5271 MB / 0.9516 GB, free: 150.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002151/2.91, allocations: 0.5521 MB / 0.9521 GB, free: 150.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 877 * 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 (1144): * Single equations (assignments): 1137 * 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.0103/2.92, allocations: 3.747 MB / 0.9558 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002044/2.922, allocations: 0.6636 MB / 0.9564 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01929/2.942, allocations: 6.388 MB / 0.9626 GB, free: 144.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.036e-05/2.942, allocations: 40.83 kB / 0.9627 GB, free: 144.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.8e-05/2.942, allocations: 8.984 kB / 0.9627 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.165e-05/2.942, allocations: 18.77 kB / 0.9627 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0466/2.989, allocations: 15.53 MB / 0.9779 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.594e-05/2.989, allocations: 4 kB / 0.9779 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006984/2.996, allocations: 0.6006 MB / 0.9785 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007372/3.003, allocations: 0.9671 MB / 0.9794 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001107/3.004, allocations: 60.69 kB / 0.9795 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02862/3.033, allocations: 11.53 MB / 0.9907 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.748e-06/3.033, allocations: 7.938 kB / 0.9907 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03835/3.071, allocations: 10.69 MB / 1.001 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007039/3.079, allocations: 1.243 MB / 1.002 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003169/3.082, allocations: 56 kB / 1.002 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006406/3.088, allocations: 211.7 kB / 1.003 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0014/3.09, allocations: 191.4 kB / 1.003 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008496/3.091, allocations: 83.98 kB / 1.003 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01289/3.104, allocations: 5.274 MB / 1.008 GB, free: 99.56 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.61e-07/3.104, allocations: 7.938 kB / 1.008 GB, free: 99.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01288/3.116, allocations: 1.865 MB / 1.01 GB, free: 97.69 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 () * 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.02756/3.144, allocations: 11.68 MB / 1.021 GB, free: 85.89 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02148/3.166, allocations: 9.062 MB / 1.03 GB, free: 76.83 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/3.166, allocations: 3.938 kB / 1.03 GB, free: 76.82 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007801/3.173, allocations: 3.332 MB / 1.033 GB, free: 73.44 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007735/3.181, allocations: 0.9167 MB / 1.034 GB, free: 72.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5988/3.78, allocations: 208.7 MB / 1.238 GB, free: 68.75 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01394/3.794, allocations: 5.912 MB / 1.244 GB, free: 66.86 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009841/3.804, allocations: 4.008 MB / 1.248 GB, free: 63.61 MB / 0.5262 GB Notification: Performance of SimCode: time 1.794e-06/3.804, allocations: 3.938 kB / 1.248 GB, free: 63.6 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.104/10.91, allocations: 287.2 MB / 1.528 GB, free: 166.7 MB / 0.5574 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